BeMyPlan API

Airports

Look up airports by code, city, country or name.

Endpoints

  • GET /data/v1/airports: list airports.
  • GET /data/v1/airports/{airportId}: one airport by id (arp_…), including a deactivated one.

Filters

ParameterMeaning
iataCodeIATA code, 3 letters. Also finds an airport by one of its alternate or historical codes.
icaoCodeICAO code, 4 characters.
iataCountryCodeISO 3166-1 alpha-2 country code.
cityIdThe id of the city (cit_…) the airport belongs to.
iataCityCodeThe IATA code of the city the airport belongs to, 3 letters: LON lists every London airport.
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
idarp_…
iataCode
icaoCodeMay be null.
name
cityIdMay be null.
iataCityCodeThe IATA code of the metropolitan area.
iataCountryCode
latitude, longitudeWGS 84 decimal degrees.
timeZoneIANA name.
typeThe kind of airport. May be null.
elevationFtElevation in whole feet; negative below sea level (Amsterdam Schiphol is -11). May be null.
regionState or province name, for example North Holland. May be null.
websiteThe airport's website (https). May be null.
wikipediaUrlThe airport's Wikipedia article (https). May be null.
alternateIataCodesOther IATA codes of the same airport, in use today. An empty list when there is none.
historicalIataCodesIATA codes the airport used in the past and no longer uses. An empty list when there is none.
codeAliasesEvery other code with its kind (current or historical) and validFrom / validTo dates. See alternate codes.
activefalse for a deactivated record.

elevationFt, region, website and wikipediaUrl were added to the response without a new major version: a client that ignores unknown fields is unaffected. See the changelog.

Alternate codes

One airport is one record, even when it has more than one IATA code or when its code changed. The record keeps its main code in iataCode and lists the others in alternateIataCodes. EuroAirport Basel-Mulhouse-Freiburg is one record (BSL) with ["MLH"]. A code the airport no longer uses is listed apart, in historicalIataCodes: Chișinău is RMO and lists KIV, its code until January 2024. codeAliases gives the detail of both lists, one entry per code with its kind (current or historical) and the validFrom / validTo dates when they are known (YYYY-MM-DD, else null). The iataCode filter matches the main, alternate and historical codes, so ?iataCode=MLH returns the Basel record. Look at iataCode in the response, not at the code you asked for, to see the code to use. Fares and schedules can differ by code (a domestic and an international code of the same airport), so keep the code your own data uses.

Errors

  • An id that does not exist: 404 airport_not_found.
  • An id that is malformed: 400.

Example: the airports of a city

One call with the city's IATA code:

curl "https://api.sandbox.bemyplan.com/data/v1/airports?iataCityCode=LON" \
  -H "Authorization: Bearer bmp_test_…"

If you already have the city's id, ?cityId=cit_… gives the same list.

Fields and parameters in full: the API reference.

On this page