Skip to main content
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.

Path Parameters

string
required
ISO2 code of the country (e.g., “IN” for India, “US” for United States)
Trim and order results: Add ?fields= to limit columns returned, or ?sort= to order the list. Both are available on Supporter+ plans. See the Field Filtering & Sorting guide for syntax and per-entity sortable fields.

Authentication

string
required
Your API key for authentication

Query Parameters

string
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).
string
Filter by derived place classification. Comma-separated list of settlement, administrative, section, unknown (e.g. ?kind=settlement or ?kind=settlement,section). Free on every plan — no tier restriction. Invalid values return a 400 error listing the accepted values. See City Types for what each value covers and how it’s derived from type.
string
Filter by the raw source type value. Comma-separated list of one or more values from the City Types reference (e.g. ?type=city,adm2). Requires Supporter+ plan — matches the same tier gate as the type response field. On a lower plan the request is rejected with a 400 error rather than being ignored. Unrecognized values simply match zero rows rather than erroring.

Response

integer
Unique identifier for the city
string
Official name of the city
string
Derived classification of the place: one of settlement, administrative, section, or unknown. Computed from type — available on every tier, including Basic. See City Types for the full mapping.
City responses on the Basic tier return id, name, and kind. 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

Implement type-ahead city search for a specific country.
Group cities for shipping or service area calculations.
Large Datasets: Countries like the United States, India, and China have thousands of cities. Consider implementing pagination or using the state-filtered endpoint for better performance.
For better user experience, consider loading cities by state instead of by country for countries with many administrative divisions.

Tier-Based Field Availability

See Pricing for plan details.