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
| Parameter | Meaning |
|---|---|
iataCode | IATA code, 3 letters. Also finds an airport by one of its alternate or historical codes. |
icaoCode | ICAO code, 4 characters. |
iataCountryCode | ISO 3166-1 alpha-2 country code. |
cityId | The id of the city (cit_…) the airport belongs to. |
iataCityCode | The IATA code of the city the airport belongs to, 3 letters: LON lists every London airport. |
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 | arp_… |
iataCode | |
icaoCode | May be null. |
name | |
cityId | May be null. |
iataCityCode | The IATA code of the metropolitan area. |
iataCountryCode | |
latitude, longitude | WGS 84 decimal degrees. |
timeZone | IANA name. |
type | The kind of airport. May be null. |
elevationFt | Elevation in whole feet; negative below sea level (Amsterdam Schiphol is -11). May be null. |
region | State or province name, for example North Holland. May be null. |
website | The airport's website (https). May be null. |
wikipediaUrl | The airport's Wikipedia article (https). May be null. |
alternateIataCodes | Other IATA codes of the same airport, in use today. An empty list when there is none. |
historicalIataCodes | IATA codes the airport used in the past and no longer uses. An empty list when there is none. |
codeAliases | Every other code with its kind (current or historical) and validFrom / validTo dates. See alternate codes. |
active | false 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:
404airport_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.