List cities
Authorization
apiKey A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.
In: header
Query Parameters
Items per page, 1–200 (default 50).
1 <= value <= 20050Cursor mode: the page after this cursor (pass meta.after back).
1 <= length <= 512Cursor mode: the page before this cursor (pass meta.before back).
1 <= length <= 512Page mode: 1-based page; the response adds meta.page and meta.totalCount.
1 <= value <= 10000IATA city code, 3 letters. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.
^[A-Za-z]{3}$3 <= length <= 3ISO 3166-1 alpha-2 country code of the city. Case-insensitive: lower case is accepted and normalised (trimmed and upper-cased before it is checked); codes in responses are always upper case.
^[A-Za-z]{2}$2 <= length <= 2Name prefix, matched after transliteration (ø becomes o, ß becomes ss) and case folding.
1 <= length <= 100Header Parameters
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/cities"{ "data": [ { "id": "cit_letxal4ojx3tujmz", "iataCode": "AMS", "name": "Amsterdam", "iataCountryCode": "NL", "timeZone": "Europe/Amsterdam", "latitude": 52.3676, "longitude": 4.9041, "active": true } ], "meta": { "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11", "limit": 50, "after": "l1.W1siYW1zdGVyZGFtIGFpcnBvcnQgc2NoaXBob2wiXSwiYXJwX2l3cWVhd3d1ZnhiNGg1cWEiXQ", "before": null }}