Skip to main content
GET
Cities Dataset
City data complements airport data. If you need destination functionality that does not depend on a specific airport, you can use cities—or combine both to build richer travel experiences. Cities are especially useful for maps and clustering (grouping multiple airports under a metro area), and for search in booking, hotel, and GDS-like workflows where an IATA city code represents “all airports in a city”.

Authentication

string
required
Your FlyStack API token. You can create one from the dashboard (see Authentication).

Query parameters

string
Filter by IATA city code (e.g., SIN).
string
Filter by country ISO-2 code (e.g., SG).
string
Comma-separated list of fields to return (e.g., name,city_code,lat,lng,country_code).
The response can be shortened for readability when using _fields. Data coverage may vary by city.

Response

The endpoint returns a list of cities.

Cities dataset response fields

string
City name.
string
Metropolitan area IATA code.
string
United Nations location code (when available).
number
Latitude.
number
Longitude.
number
City elevation (meters, when available).
string
IANA timezone (when available).
string
ISO-2 country code.
string
Unique city identifier.

See also