Cities
Look up cities and IATA metropolitan codes.
Cities carry IATA metropolitan codes. One code can cover several airports: LON, for example, covers all
the airports of London.
Endpoints
GET /data/v1/cities: list cities.GET /data/v1/cities/{cityId}: one city by id (cit_…), including a deactivated one.
Filters
| Parameter | Meaning |
|---|---|
iataCode | IATA city code, 3 letters. |
iataCountryCode | ISO 3166-1 alpha-2 country code. |
name | The start of the name, ignoring case and accents. |
Codes are case-insensitive (?iataCode=ams works). Ids are not: they are lower case only.
Lists also take the pagination parameters.
Fields
| Field | Notes |
|---|---|
id | cit_… |
iataCode | |
name | |
iataCountryCode | |
timeZone | IANA name. |
latitude, longitude | WGS 84 decimal degrees. May be null. |
active | false for a deactivated record. |
Errors
- An id that does not exist:
404city_not_found. - An id that is malformed:
400.
Tip: the airports of a city
A city does not list its airports. List them with /data/v1/airports?iataCityCode=LON (or ?cityId=cit_…): see Airports.
Fields and parameters in full: the API reference.