Agoda
Search Agoda flight destinations/airports
Resolves a free-text city or airport name into IATA airport codes for flight search, with each city's direct and nearby airports.
get/agoda/flights/search-locations
Request
- Base URL: https://api.crawlora.net/api/v1
- URL: https://api.crawlora.net/api/v1/agoda/flights/search-locations
- Auth: API key in header x-api-key
Query parameters
keywordstring required
Free-text city or airport name
Headers
x-api-keystring required
API key required
Response
OK
Example response
{
"code": 200,
"data": {
"count": 1,
"keyword": "Bangkok",
"suggestions": [
{
"airports": [
{
"code": "BKK",
"distance_km": 73,
"lat": 13.681108,
"lng": 100.747283,
"name": "Suvarnabhumi Airport"
}
],
"city_code": "BKK",
"country_code": "TH",
"country_name": "Thailand",
"name": "Bangkok",
"nearby_airports": [
{
"code": "BKK",
"distance_km": 73,
"lat": 13.681108,
"lng": 100.747283,
"name": "Suvarnabhumi Airport"
}
],
"state_name": "Bangkok Province"
}
]
},
"msg": "OK"
}Changes
No recorded changes to this operation across all 2 revisions of this API.