BeMyPlan API
Airports

Get one airport by id (includes inactive)

GET
/data/v1/airports/{airportId}
AuthorizationBearer <token>

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

In: header

Path Parameters

airportId*string

The id from a list response. Lower case only; ids are not normalised.

Match^arp_[a-z2-7]{16}$

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

application/json

curl -X GET "https://example.com/data/v1/airports/string"
{  "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"  }}