Agoda Hotel Rooms API Documentation Retrieve the room types of one Agoda hotel for a stay: for each room the id, name, size in square meters, features, facilities, up to 10 images, review score and every offer with the nightly price including taxes and fees, original price, discount percent, free cancellation, breakfast, pay later, cancellation policy and benefits. Prices are in USD. Sold-out rooms carry sold_out true. A hotel without any room for the dates is a not found error that is not billed.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
5 required parameters needed before sending a request.
3 optional filters available.
integer
Required
Agoda hotel id from the suggest or search endpoint. Example: 44842960.
1234567890
integer
Required
Agoda city id of the hotel. Example: 9395.
1234567890
integer
Required
Agoda country id of the hotel, returned by the suggest endpoint. Example: 106 for Thailand.
1234567890
string
Required
Check-in date, YYYY-MM-DD, today or later. Example: 2027-03-14.
example
string
Required
Check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Example: 2027-03-16.
example
integer
Optional
Number of adults, 1 to 30. Defaults to 2.
10
integer
Optional
Number of rooms, 1 to 9. Defaults to 1.
10
string
Optional
Comma-separated ages of the children, each 0 to 17, up to 6. Example: 5,7.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"rooms": [
{
"id": 753393726,
"name": "Deluxe Twin Room",
"images": [
"https://pix8.agoda.net/hotelImages/44842960/753393726/7fc1f6ac70063f61f85d294c50cf8cd5.jpeg?ce=2&s=800x600",
"https://q-xx.bstatic.com/xdata/images/hotel/840x460/491809631.jpg?k=36b4461e4b05117c199458244c2e3cfa11d3822e094fa0e92192ee7f78c0f104&o="
],
"offers": [
{
"benefits": [
"Breakfast available (USD\u00a021 / person)",
"Non-refundable (Low price!)",
"Book and pay now",
"Complimentary mini bar"
],
"currency": "USD",
"pay_later": false,
"price_per_night": 127,
"free_cancellation": false,
"breakfast_included": false,
"cancellation_policy": "Non-refundable (Low price!)"
},
{
"benefits": [
"Breakfast included",
"Non-refundable (Low price!)",
"Book and pay now",
"Complimentary mini bar"
],
"currency": "USD",
"pay_later": false,
"price_per_night": 141,
"free_cancellation": false,
"breakfast_included": true,
"cancellation_policy": "Non-refundable (Low price!)"
}
],
"features": [
"Max 2 adults",
"2 single beds"
],
"size_sqm": 44,
"facilities": [
"City view",
"Bathtub"
],
"review_score": 9.221
},
{
"id": 753391914,
"name": "Deluxe King Room",
"images": [
"https://pix8.agoda.net/hotelImages/44842960/753391914/7d8a5a27b41e01e34d03d15ba5903da7.jpeg?ce=2&s=800x600",
"https://q-xx.bstatic.com/xdata/images/hotel/840x460/491805016.jpg?k=82880f156f1e42ee048da1801e294a2cdda4742c4edb1cf4b065af1b0383f8ce&o="
],
"offers": [
{
"benefits": [
"Breakfast available (USD\u00a021 / person)",
"Non-refundable (Low price!)",
"Book and pay now",
"Complimentary mini bar"
],
"currency": "USD",
"pay_later": false,
"price_per_night": 127,
"free_cancellation": false,
"breakfast_included": false,
"cancellation_policy": "Non-refundable (Low price!)"
},
{
"benefits": [
"Breakfast included",
"Non-refundable (Low price!)",
"Book and pay now",
"Complimentary mini bar"
],
"currency": "USD",
"pay_later": false,
"price_per_night": 141,
"free_cancellation": false,
"breakfast_included": true,
"cancellation_policy": "Non-refundable (Low price!)"
}
],
"features": [
"Max 2 adults",
"1 king bed"
],
"size_sqm": 44,
"facilities": [
"City view",
"Bathtub"
],
"review_score": 9.378
}
],
"check_in": "2027-03-14",
"currency": "USD",
"hotel_id": 44842960,
"check_out": "2027-03-16",
"hotel_name": "Grande Centre Point Surawong Bangkok",
"free_cancellation_until": "2027-03-07"
},
"meta": {
"billable": true,
"endpoint_family": "hotel_rooms"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required query parameter is missing or invalid. This response is not billable.
{
"errors": {
"hotel_id": [
"The hotel id field is required."
]
},
"message": "The request validation failed"
}Resource Not Found
The hotel is unknown or has no room for the dates. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "hotel_rooms"
},
"error": {
"code": "NOT_FOUND",
"message": "The requested Agoda resource was not found."
},
"success": false
}Service Unavailable
Agoda could not be reached or answered with an unexpected shape. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "hotel_rooms"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The Agoda API is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.