Cities Endpoints
Get Cities by Country
Retrieve all cities within a specific country
GET
Retrieve all cities within a specific country using the country’s ISO2 code. This endpoint is useful for building location selectors and geographical applications.Documentation Index
Fetch the complete documentation index at: https://docs.countrystatecity.in/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
ISO2 code of the country (e.g., “IN” for India, “US” for United States)
Authentication
Your API key for authentication
Query Parameters
Search filter on name. Case-insensitive match on
name and native fields. Minimum 2 characters. Requires Supporter+ plan. Without this parameter, all results are returned (no plan restriction for search).Response
Unique identifier for the city
Official name of the city
City responses on the Basic tier only return
id and name. Upgrading to Supporter+ unlocks state_id, state_code, country_id, country_code, latitude, longitude, timezone, population, type, level, parent_id, and native. Professional+ adds translations and wikiDataId. See Tier-Based Field Availability below.Availability:
/countries/{iso2}/cities (all cities in a country) requires Supporter+. Community/Starter users must use Get Cities by State instead.Common Use Cases
City Autocomplete
City Autocomplete
Implement type-ahead city search for a specific country.
Delivery Zone Setup
Delivery Zone Setup
Group cities for shipping or service area calculations.
Tier-Based Field Availability
| Tier | Plans | Fields |
|---|---|---|
| Basic | Community, Starter, Legacy | id, name |
| Coordinates | Supporter | All Basic + state_id, state_code, country_id, country_code, latitude, longitude, timezone, population, type, level, parent_id, native |
| Full | Professional, Business | All Coordinates + translations, wikiDataId |