Skip to main content
POST
/
api
/
agoda
/
hotels
/
rooms
/agoda/hotels/rooms
curl --request POST \
  --url https://api.anysite.io/api/agoda/hotels/rooms \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "hotel": "<string>",
  "check_in": "<string>",
  "check_out": "<string>",
  "count": 2,
  "timeout": 300,
  "adults": 2,
  "children_ages": [],
  "rooms": 1
}
'
[
  {
    "id": "<string>",
    "@type": "@agoda_room",
    "room_type": "<string>",
    "is_sold_out": true,
    "room_size": "<string>",
    "review_score": 123,
    "features": [],
    "facilities": [],
    "amenities": [],
    "images": [],
    "min_price": 123,
    "offers": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
hotel
string
required

Agoda property id or a hotel URL containing it

Minimum string length: 1
Examples:

"8000"

"https://www.agoda.com/the-ritz-carlton-osaka/hotel/osaka-jp.html?hotelId=8000"

check_in
string
required

Check-in date in YYYY-MM-DD format

Example:

"2026-06-25"

check_out
string
required

Check-out date in YYYY-MM-DD format

Example:

"2026-06-27"

count
integer
required

Max number of room types to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
adults
integer
default:2

Number of adult guests

Required range: x >= 1
children_ages
integer[]

Age of each child guest (one entry per child)

rooms
integer
default:1

Number of rooms requested

Required range: x >= 1

Response

Successful Response

id
string
required
@type
string
default:@agoda_room
room_type
string | null
is_sold_out
boolean | null
room_size
string | null
review_score
number | null
features
string[]
facilities
string[]
amenities
string[]
images
string[]
min_price
number | null
offers
AgodaRoomOffer · object[]