latestOpenAPI 3.1.02026-08-10390815.4 KB
e5f3dccae7ca
Common/locations
Airports
This endpoint returns a list of airport codes and their names in the selected languages. The airports returned may be filtered by a location id. For example, you can get the list of airports in The Netherlands by passing: {"country":"nl"}. To get the full list call the endpoint passing an empty body. The airport codes returned are what is used as input and output for other endpoints. This endpoint implements pagination of the results.
post/common/locations/airports
Headers
X-Affiliate-Idinteger required
Include here your Affiliate identifier number
Request body
Example request
{
"airport": "AMS",
"country": "nl",
"languages": [
"en-us"
]
}Response
Successful response.
Example response
{
"data": [
{
"id": "AMS"
}
]
}