Skip to main content

Cities

Returns the geolocation data of the insight by cities.

Getting Started

URL REQUEST (GET)
https://api.statsocial.com/platform/v0/reports/geo/cities

hash: Insight hash

https://api.statsocial.com/platform/v0/reports/geo/cities?hash=xxxx

Can send a default baseline.
Available types: global, global_males, global_females, usa, usa_males, usa_females,UK, Canada, France, Germany, Italy, Spain, or any other insight hash.
If no baseline is specified, it defaults to global.

https://api.statsocial.com/platform/v0/reports/geo/cities?baseline=xxxx

Limit: 100 is default, max is 1000

https://api.statsocial.com/platform/v0/reports/geo/cities?limit=xxxx

Successful return

return response example
{
"information": {
"version": "string"
},
"response": {
"baseline": "string",
"baseline_alias": "string",
"error": "string",
"hashes": [
"string"
],
"metrics": [
{
"baseline": 0,
"children_count": 0,
"has_child_categories": true,
"id": "string",
"indexes": [
0
],
"is_category": true,
"name": "string",
"similarities": [
0
],
"values": [
0
]
}
]
}
}