Provides Collection Geo distribution of a project 📣 this endpoint provides geo distribution of a collection in project✳ list of request query parameters
start_time
end_time
group_by = geo_region
🔰 this endpoint gives total geo distributed usage of contents of the contents of a collection in a project📢 Info message : Here URL is contructed like GET/projects/<project_id>/collections/<collection_id>/analytics/geo-distribution?start_time=<time>&end_time=<time>&group_by=geo_regionhere 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
collectionId
stringÂ
required
Example:
c2ffaea1-c967-4672-b5bc-789144d58b3d
analyticsType
stringÂ
required
Example:
geo-distribution
Query Params
start_time
stringÂ
optional
Example:
2024-02-24T17:59:59.999Z
end_time
stringÂ
optional
Example:
2024-03-02T17:59:59.999Z
group_by
stringÂ
optional
Example:
geo_region
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/v1/projects/66a1084b-4b6b-4001-a4ad-d34d13463068/collections/c2ffaea1-c967-4672-b5bc-789144d58b3d/analytics/geo-distribution?start_time=2024-02-24T17:59:59.999Z&end_time=2024-03-02T17:59:59.999Z&group_by=geo_region'
Responses
🟢200OK
application/json
Body
message
stringÂ
required
result
objectÂ
required
message
stringÂ
required
result
objectÂ
required
success
booleanÂ
required
Examples
{"message":"collection analytics was found.","result":{"message":"Dataset retrieved successfully","result":{"filters":[{"field":"media_series","operator":"equal","values":["c2ffaea1-c967-4672-b5bc-789144d58b3d"]}],"group_bys":["media_series"],"metrics":[{"data":[{"media_series":"c2ffaea1-c967-4672-b5bc-789144d58b3d","total_media_views":209}],"filters":null,"group_bys":["media_series"],"name":"total_media_views"}]}},"success":true}