Cities
Get one city by id (includes inactive)
Authorization
apiKey AuthorizationBearer <token>
A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.
In: header
Path Parameters
cityId*string
The id from a list response. Lower case only; ids are not normalised.
Match
^cit_[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/cities/string"{ "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" }}