ENDPOINTS
/cityGet City Data
Get city data (name, state, coordinates, population, capital status) for any city worldwide.
QUERY PARAMS
The city name.
Examples: New York, Los Angeles, Tokyo
Two-letter ISO country code. Use this to disambiguate cities with the same name.
Examples: US, JP, GB
[
{
"state": null,
"city_name": "New York",
"is_capital": false,
"population": 150,
"coordinates": {
"latitude": 53.0788,
"longitude": -0.1401
},
"country_code": "GB"
}
]