Skip to content
Scrappa Get API key
Agoda API 1 credit/request

Agoda Hotel Rooms API Documentation

GET https://scrappa.co/api/agoda/rooms

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.

Agoda Hotel Rooms API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/agoda/rooms
Auth header
x-api-key
Cost
1 credit/request
hotel_id = 1234567890 city_id = 1234567890 country_id = 1234567890
Response preview
200 OK
{
    "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)",
...

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.

hotel_id integer Required

Agoda hotel id from the suggest or search endpoint. Example: 44842960.

Example value 1234567890
city_id integer Required

Agoda city id of the hotel. Example: 9395.

Example value 1234567890
country_id integer Required

Agoda country id of the hotel, returned by the suggest endpoint. Example: 106 for Thailand.

Example value 1234567890
check_in string Required

Check-in date, YYYY-MM-DD, today or later. Example: 2027-03-14.

Example value example
check_out string Required

Check-out date, YYYY-MM-DD, after check-in, at most 30 nights. Example: 2027-03-16.

Example value example
adults integer Optional

Number of adults, 1 to 30. Defaults to 2.

Example value 10
rooms integer Optional

Number of rooms, 1 to 9. Defaults to 1.

Example value 10
children_ages string Optional

Comma-separated ages of the children, each 0 to 17, up to 6. Example: 5,7.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "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.

422

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"
}
404

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
}
503

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.