GET/v2/airports

Airports

Search the airport cache by code, city, country or name.

Bearer tokenAuthority: B2C_REFERENCE_SEARCHhttps://api1.vacaychi.com/booking

With no query, the response is the default station list (DAC, DXB, and the other pinned stations). Any filter searches the full cache. Code matches rank first, then city, then country.

cURL

bash
curl "https://api1.vacaychi.com/booking/v2/airports?q=dhaka&limit=15" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

Query parameters

qstring
optional

Case-insensitive match on code, city, country or airport name

codestring
optional

Exact IATA code

citystring
optional

Exact city

countrystring
optional

Exact country

limitnumber
optional

Default 15 when a filter is set, otherwise the whole default list. Maximum 100.

Response

200
{
  "message": "Success",
  "data": [
    { "code": "DAC", "city": "Dhaka", "country": "Bangladesh", "name": "Hazrat Shahjalal International" }
  ],
  "error": null
}

Response fields

codestring

IATA airport code

citystring

City

countrystring

Country

namestring

Airport name

Errors

400limit must be a number / limit must be at least 1

limit is not a positive number

401 / 403UNAUTHORIZED

Missing token, or the token lacks B2C_REFERENCE_SEARCH