BeMyPlan API

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

ParameterMeaning
iataCodeIATA city code, 3 letters.
iataCountryCodeISO 3166-1 alpha-2 country code.
nameThe 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

FieldNotes
idcit_…
iataCode
name
iataCountryCode
timeZoneIANA name.
latitude, longitudeWGS 84 decimal degrees. May be null.
activefalse for a deactivated record.

Errors

  • An id that does not exist: 404 city_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.

On this page