Skip to main content
POST
/
api
/
agoda
/
destinations
/
search
/agoda/destinations/search
curl --request POST \
  --url https://api.anysite.io/api/agoda/destinations/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "keyword": "<string>",
  "timeout": 300
}
'
[
  {
    "id": 123,
    "name": "<string>",
    "@type": "@agoda_destination",
    "type": "<string>",
    "city_id": 123,
    "country_id": 123,
    "country_code": "<string>",
    "parent_name": "<string>",
    "hotel_count": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
keyword
string
required

Destination name or keyword to resolve into Agoda geo ids (city, area, region or hotel)

Minimum string length: 1
Examples:

"Bangkok"

"Tokyo"

"Paris"

"Shangri-La"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
integer
required
name
string
required
@type
string
default:@agoda_destination
type
string | null
city_id
integer | null
country_id
integer | null
country_code
string | null
parent_name
string | null
hotel_count
integer | null