latestOpenAPI 3.1.02026-08-10390815.4 KB
e5f3dccae7ca
Common/locations
Countries
This endpoint returns a list of country codes and their names in the selected languages. The countries returned may be filtered by a location id. For example, you can get the list of countries that are associated with the European Alps region by passing: {"region":1199}. <br/><br/>To get the full list call the endpoint passing an empty body. The returned country codes are used as input and output for other endpoints. <br/><br/>This endpoint implements pagination of the results.
post/common/locations/countries
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": "nl"
}
]
}