Find a city by exact name, typeahead search (?q=), or coordinates. Name lookups pin one city (the largest, if there is a tie). Coordinate lookups return the nearest place plus distance in miles and kilometers.
Every city comes from its official national gazetteer. name is the English catalog name, local_name carries the native form when it differs, Tokyo's local_name reads 東京.
Need the state or postal record itself? Use /state/{code} or /postal/{code}.
Try it
$ curl "https://api.parseapi.com/city/charlotte" \ -H "X-API-Key: YOUR_API_KEY" // 200 · ~17ms · USA { "name": "Charlotte", "local_name": null, "state": "NC", "state_name": "North Carolina", "country": "US", "latitude": 35.2271, "longitude": -80.8431, "population": 874579, "timezone": "America/New_York", "id": "city_mb8mbqrkz8zb" }
Response fields
SPEED
Median time for a /city response to reach a real city, first byte back, measured live from 16 cities. Not a lab benchmark. The whole trip.
US
17ms
EU
24ms
APAC
48ms
LatAm
21ms
ME
125ms
Twenty-seven countries, each from its official national gazetteer.