BeMyPlan API
Airports

List airports

GET
/data/v1/airports
AuthorizationBearer <token>

A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.

In: header

Query Parameters

limit?integer

Items per page, 1–200 (default 50).

Range1 <= value <= 200
Default50
after?string

Cursor mode: the page after this cursor (pass meta.after back).

Length1 <= length <= 512
before?string

Cursor mode: the page before this cursor (pass meta.before back).

Length1 <= length <= 512
page?integer

Page mode: 1-based page; the response adds meta.page and meta.totalCount.

Range1 <= value <= 10000
iataCode?string

IATA airport code, 3 letters. Also matches a current or historical alternate code of the airport. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.

Match^[A-Za-z]{3}$
Length3 <= length <= 3
icaoCode?string

ICAO airport code, 4 characters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.

Match^[A-Za-z0-9]{4}$
Length4 <= length <= 4
iataCountryCode?string

ISO 3166-1 alpha-2 country code of the airport. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.

Match^[A-Za-z]{2}$
Length2 <= length <= 2
cityId?string

Id of the city the airport serves. Lower case only; ids are not normalised.

Match^cit_[a-z2-7]{16}$
iataCityCode?string

IATA code of the city the airport serves, 3 letters: LON lists Heathrow, Gatwick and the other London airports in one call. For a city with one airport it is usually the airport's own code (AMS). Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.

Match^[A-Za-z]{3}$
Length3 <= length <= 3
name?string

Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.

Length1 <= length <= 100

Header Parameters

If-None-Match?string

A previously returned ETag. When it still matches, the answer is 304 with no body (and no charge for a free call).

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/data/v1/airports"
{  "data": [    {      "id": "arp_iwqeawwufxb4h5qa",      "iataCode": "AMS",      "icaoCode": "EHAM",      "name": "Amsterdam Airport Schiphol",      "cityId": "cit_letxal4ojx3tujmz",      "iataCityCode": "AMS",      "iataCountryCode": "NL",      "latitude": 52.3086,      "longitude": 4.7639,      "timeZone": "Europe/Amsterdam",      "type": "large_airport",      "elevationFt": -11,      "region": "North Holland",      "website": "https://www.schiphol.nl/",      "wikipediaUrl": "https://en.wikipedia.org/wiki/Amsterdam_Airport_Schiphol",      "alternateIataCodes": [],      "historicalIataCodes": [],      "codeAliases": [],      "active": true    }  ],  "meta": {    "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11",    "limit": 50,    "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ",    "before": null  }}