📣 this endpoint provides the details usage of the contents of the project across different regions✳ list of request query parameters
start_time
end_time
group_by = country
🔰 this endpoint gives all the analytics information of the project📢 Info message : Here URL is contructed like GET/projects/<project_id>/analytics/geo-distribution?start_time=<time>&end_time=<time>&group_by=countryhere time should be formated in RFC3339
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
projId
stringÂ
required
Example:
66a1084b-4b6b-4001-a4ad-d34d13463068
analyticsType
stringÂ
required
Example:
geo-distribution
Query Params
start_time
stringÂ
optional
Example:
2024-02-22T17:59:59.999Z
end_time
stringÂ
optional
Example:
2024-02-29T17:59:59.999Z
group_by
stringÂ
optional
Example:
country
Body Params application/json
object {0}
Example
{}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'http://localhost:8080/projects/66a1084b-4b6b-4001-a4ad-d34d13463068/analytics/geo-distribution?start_time=2024-02-22T17:59:59.999Z&end_time=2024-02-29T17:59:59.999Z&group_by=country' \
--header'Content-Type: application/json' \
--data-raw'{}'
Responses
🟢200OK
application/json
Body
object {0}
Examples
{"message":"Users by country retrieved successfully","result":[{"name":"BD","value":7451},{"name":"","value":35},{"name":"DE","value":17},{"name":"KW","value":9},{"name":"IQ","value":8},{"name":"GB","value":7},{"name":"US","value":7},{"name":"SE","value":6},{"name":"OM","value":5},{"name":"IN","value":4},{"name":"NL","value":3},{"name":"IT","value":2},{"name":"FR","value":2},{"name":"AU","value":1},{"name":"JP","value":1},{"name":"AF","value":1}]}