Skip to main content

Analytics

GET Analytics#

Gets distribution analytics.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/analytics
HeadersAuthorization
ParametersdistributionId, projectId, version, from, to , intervalType, TermCount
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
analyticsYesstringDirects you to analytics

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
VersionYesstring($uuid)v1Shows the version of API
fromNostring($date-time)"2021-04-26T10:15:32.736Z"Write from which date you want to get analytics data
toNostring($date-time)"2021-04-26T10:15:32.736Z"Write to which date you want to get analytics data
intervalTypeNointeger($int32)2Shows data hourly monthly daily depends on what you have selected
TermCountNointeger($int32)2Choose how many user's devices you want to see. It returns all the devices of users

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "averageServeTime": 0,    "totalBytes": 0,    "hits": 0,    "misses": 0,    "topReferers": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    },    "aggregatesPerInterval": [      {        "time": "2021-04-26T10:15:32.736Z",        "bytes": 0,        "numberOfRequests": 0      }    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
averageServeTimeinteger($int32)0Returns the average of serve time on CDN
totalBytesinteger($int32)0Returns the total bytes
hitsinteger($int32)0Returns cache hits
missesinteger($int32)0Returns cache misses
topReferersarray [object]Returns an object of pages that sended requests
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
aggregatesPerIntervalarray [object]Returns the aggregates per interval on which you chose on CDN
timedate-time"2021-04-26T10:15:32.736Z"Returns time of the interval that used CDN
bytesinteger($int32)0Returns spent bytes of used CDN
numberOfRequestsinteger($int32)0Returns the number of requests of CDN
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Geographical Analytics#

Gets distribution gjeographical analytics.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/analytics/geo
HeadersAuthorization
ParametersdistributionId, projectId, version, from, to , intervalType, TermCount
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
analyticsYesstringDirects you to analytics
geoYesstringDirects you to geographical analytics

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
VersionYesstring($uuid)v1Shows the version of API
fromNostring($date-time)"2021-04-26T10:15:32.736Z"Write from which date you want to get analytics data
toNostring($date-time)"2021-04-26T10:15:32.736Z"Write to which date you want to get analytics data
intervalTypeNointeger($int32)2Shows data hourly monthly daily depends on what you have selected
TermCountNointeger($int32)2Choose how many user's devices you want to see. It returns all the devices of users

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "continents": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    },    "countries": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
continentsarray [object]Returns all continents
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
countriesarray [object]0Returns all the countries
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Path Statistics#

Gets distribution path statistics.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/analytics/path
HeadersAuthorization
ParametersdistributionId, projectId, version, from, to , intervalType, TermCount
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
analyticsYesstringDirects you to analytics
pathYesstringDirects you to path statistics

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
VersionYesstring($uuid)v1Shows the version of API
fromNostring($date-time)"2021-04-26T10:15:32.736Z"Write from which date you want to get analytics data
toNostring($date-time)"2021-04-26T10:15:32.736Z"Write to which date you want to get analytics data
intervalTypeNointeger($int32)2Shows data hourly monthly daily depends on what you have selected
TermCountNointeger($int32)2Choose how many user's devices you want to see. It returns all the devices of users

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "continents": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    },    "countries": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
continentsarray [object]Returns all continents
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
countriesarray [object]0Returns all the countries
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Device Statistics#

Gets distribution device statistics.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/analytics/device
HeadersAuthorization
ParametersdistributionId, projectId, version, from, to , intervalType, TermCount
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
analyticsYesstringDirects you to analytics
pathYesstringDirects you to path statistics

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
VersionYesstring($uuid)v1Shows the version of API
fromNostring($date-time)"2021-04-26T10:15:32.736Z"Write from which date you want to get analytics data
toNostring($date-time)"2021-04-26T10:15:32.736Z"Write to which date you want to get analytics data
intervalTypeNointeger($int32)2Shows data hourly monthly daily depends on what you have selected
TermCountNointeger($int32)2Choose how many user's devices you want to see. It returns all the devices of users

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "continents": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    },    "countries": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
continentsarray [object]Returns all continents
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
countriesarray [object]0Returns all the countries
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Referer Statistics#

Gets distribution referer statistics.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/distributions/{distributionId}/analytics/referers
HeadersAuthorization
ParametersdistributionId, projectId, version, from, to , intervalType, TermCount
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty distribution configuration is returned
{distributionId}Yesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
analyticsYesstringDirects you to analytics
pathYesstringDirects you to path statistics

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
projectIdYesstring3fa85f64-5717-4562-b3fc-2c963f66afa6The project's ID. If the ID is empty, an empty project configuration is returned
distributionIdYesstring"string"The distribution's ID. If the ID is empty, an empty distribution configuration is returned
VersionYesstring($uuid)v1Shows the version of API
fromNostring($date-time)"2021-04-26T10:15:32.736Z"Write from which date you want to get analytics data
toNostring($date-time)"2021-04-26T10:15:32.736Z"Write to which date you want to get analytics data
intervalTypeNointeger($int32)2Shows data hourly monthly daily depends on what you have selected
TermCountNointeger($int32)2Choose how many user's devices you want to see. It returns all the devices of users

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "continents": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    },    "countries": {      "otherCount": 0,      "buckets": [        {          "name": "string",          "count": 0        }      ]    }  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns a behavior object
continentsarray [object]Returns all continents
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
countriesarray [object]0Returns all the countries
otherCountinteger($int32)0Returns all the other pages and their number of refered times
bucketsarray [object]Returns by default 7 buckets of those pages
namestring"string"Returns the bucket name
countinteger($int32)0Returns the number of refered times
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found