World Cities API
150,000+ cities with coordinates, timezones, and parent state/country. Build location search, autocomplete, and city pickers in minutes.
Cities, coordinates, and timezones included in the 14-day trial.
Cities by country — one request
Retrieve all cities for a country, or filter by state. Coordinates included.
# Request
curl https://api.apogeoapi.com/v1/countries/AR/cities \
-H "X-API-Key: your_api_key"
# Response (array)
[
{
"name": "Buenos Aires",
"countryCode": "AR",
"stateCode": "B",
"stateName": "Buenos Aires",
"latitude": "-34.61315000",
"longitude": "-58.37723000",
"timezone": "America/Argentina/Buenos_Aires"
},
{
"name": "Córdoba",
"countryCode": "AR",
"latitude": "-31.41350000",
"longitude": "-64.18110000"
},
...
]
Available fields
Every city record includes the following fields.
| Field | Type | Description |
|---|---|---|
id | number | Stable city ID (safe to store as a reference) |
name | string | City name in English |
countryCode | string | ISO 3166-1 alpha-2 country code (e.g. AR) |
countryName | string | Full country name |
stateCode | string | State or province code within the country |
stateName | string | State or province name |
latitude | string | Geographic latitude in decimal degrees |
longitude | string | Geographic longitude in decimal degrees |
timezone | string | IANA timezone identifier (e.g. America/Argentina/Buenos_Aires) |
What developers build with it
From checkout forms to geospatial applications — city data is everywhere.
City Autocomplete
Power instant search fields. Query by name and get matching cities with their IDs.
Distance Calculator
Use lat/lng coordinates to compute distances between cities in your app or backend.
Store Locator
List all cities in a country or state to build location-aware store or branch finders.
Shipping Forms
Populate city dropdowns dynamically based on country and state selection in checkout forms.
Low competition, high value — very few APIs offer 150K+ cities at this price point, with coordinates, timezones, and country/state context all bundled in.
Start building with the Cities API
14-day full trial. No credit card. All 150K+ cities available immediately.
Start Free TrialFrequently asked questions
How many cities are available?
Over 150,000 cities across 250+ countries, covering major cities, regional capitals, and thousands of smaller localities with coordinates, timezone and parent state/country.
Can I search cities by name?
Yes. GET /v1/search?q=Buenos searches across countries, states and cities at once and returns matching cities with their IDs. To list every city in a country, use GET /v1/countries/{code}/cities.
Are coordinates included?
Yes. Every city record includes latitude and longitude coordinates, making it suitable for distance calculations, map rendering, and geospatial queries.