GET/v1/flights/airports

Search airports

Searches airport metadata by free text or nearby coordinates for autocomplete and location-based flight search flows.

Searches airport metadata by free text or nearby coordinates for autocomplete and location-based flight search flows.

Endpoint

MethodPathAuth
GET/v1/flights/airportsRequired API key
Required headers:
HeaderDescription
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Request Params Schema

PropertyTypeDetailsRequiredNotes
latnumberNoRequired when queryString is not provided
lngnumberNoRequired when queryString is not provided
radiusnumberNoRequired when queryString is not provided
queryStringstringNoAlternative to coordinates

Success Response

Returns matching airports and location metadata.

Response Body Schema

PropertyTypeDetailsRequiredNotes
arrayYes-
namestringYes-
city_namestringYes-
time_zonestringYes-
longitudenumberYes-
latitudenumberYes-
iata_country_codestringYes-
iata_codestringYes-
iata_city_codestringYes-
typestringYes-
airportNamestringYes-
distanceFromPointnumberNo-