Skip to main content
POST
/
api
/
agoda
/
hotels
/
search
/agoda/hotels/search
curl --request POST \
  --url https://api.anysite.io/api/agoda/hotels/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "city_id": 2,
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@agoda_search_hotel",
    "name": "<string>",
    "property_type": "<string>",
    "accommodation_type": "<string>",
    "star_rating": 123,
    "area": "<string>",
    "area_id": 123,
    "city": "<string>",
    "city_id": 123,
    "country": "<string>",
    "country_id": 123,
    "average_price": 123,
    "url": "<string>",
    "review_score": {
      "@type": "@agoda_search_review_score",
      "score": 123,
      "review_count": 123,
      "grades": []
    },
    "facility_highlights": [],
    "images": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
city_id
integer
required

Agoda numeric city id to search hotels in

Required range: x >= 1
Example:

9395

count
integer
required

Max number of hotels to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@agoda_search_hotel
name
string | null
property_type
string | null
accommodation_type
string | null
star_rating
number | null
area
string | null
area_id
integer | null
city
string | null
city_id
integer | null
country
string | null
country_id
integer | null
average_price
number | null
url
string | null
review_score
AgodaSearchReviewScore · object
facility_highlights
string[]
images
string[]