Find a location (v1)
Returns the cities, areas, landmarks and hotels Agoda suggests for a name, each with the city location_id the Hotel Search endpoint takes and, for a hotel, its hotel_id. Empty results means nothing matched.
1 credit / requestBilled only on success
Authorization
ApiKeyAuth x-api-key<token>
In: header
Query Parameters
query*string
A city, area, landmark or hotel name, such as bangkok, Sukhumvit or Asia Hotel Bangkok.
Length
2 <= length <= 100curl -X GET "https://example.com/v1/agoda/locations?query=bangkok" \ -H "x-api-key: YOUR_API_KEY"{ "data": { "query": "bangkok", "count": 0, "results": [ { "location_id": "9395", "type": "city", "hotel_id": null, "name": "Bangkok", "located_in": "Thailand", "city": "Bangkok", "country_code": "TH", "property_count": 12048 } ] }, "details": { "reason": "string", "message": "string" }}