Skip to main content

Cities

Returns the cities found by the search, if any.

Getting Started​

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

The query to search

https://api.statsocial.com/platform/v0/location/cities?query=xxx
note

Let's use the data in this section when creating audiences

Let's go to examples​

Query​

You can search for any city, in this example we will search for New York

https://api.statsocial.com/platform/v0/location/cities?query=New%20York

We will receive a json like this

{
"response": {
"data": [
{
"id": "82107",
"name": "East New York",
"kind": "city",
"region": "New York",
"country": "United States"
},
{
"id": "1001500394",
"name": "East New York",
"kind": "city",
"region": "New York",
"country": "United States"
},
{
"id": "82396",
"name": "New York City",
"kind": "city",
"region": "New York",
"country": "United States"
},
{
"id": "1001500400",
"name": "New York City",
"kind": "city",
"region": "New York",
"country": "United States"
},
{
"id": "82397",
"name": "New York Mills",
"kind": "city",
"region": "New York",
"country": "United States"
},
{
"id": "81132",
"name": "New York Mills",
"kind": "city",
"region": "Minnesota",
"country": "United States"
},
{
"id": "81905",
"name": "West New York",
"kind": "city",
"region": "New Jersey",
"country": "United States"
}
]
},
"information": {
"version": "0.0.1"
}
}