Rooms and prices of a Booking.com property for a stay API
A Booking.com property’s room types for a stay, with the best available price and nightly prices.
GET /v1/booking/hotel/roomsBeta2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/booking/hotel/rooms?id=280149&check_in=2027-03-10&check_out=2027-03-12",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "hotel_id": 280149, "check_in": "2027-03-10", "check_out": "2027-03-12", "available": true, "best_offer": { "room_id": "28014901", "occupancy": 2, "meal_plan_id": 2, "policy_group_id": "88652304", "price": 1868.24624593726, "currency": "USD", "free_cancellation_until": null, "room_name": null }, "price": { "amount": 1868.24624593726, "formatted": "$1,868.25", "currency": "USD" }, "nights": [ { "date": "2027-03-10", "available": true, "price": 982, "price_formatted": "$982", "min_stay": 1 }, { "date": "2027-03-11", "available": true, "price": 982, "price_formatted": "$982", "min_stay": 1 } ], "rooms": [ { "id": 28014901, "name": null, "description": null, "room_type_id": 9, "max_persons": 2, "max_children": 1, "is_smoking": false, "beds": [ { "count": 1, "type": "LARGE_DOUBLE_BED", "name": "Queen bed(s)" } ], "amenities": [ "safe_deposit_box", "airconditioning", "… 34 more" ] }, { "id": 28014903, "name": null, "description": null, "room_type_id": 7, "max_persons": 3, "max_children": 0, "is_smoking": false, "beds": [ { "count": 1, "type": "SINGLE_BED", "name": "Twin bed(s)" } ], "amenities": [ "safe_deposit_box", "airconditioning", "… 31 more" ] }, "… 13 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
idquery | string | Booking.com hotel id. Example: 280149. |
urlquery | string | A property link, https://www.booking.com/hotel/<cc>/<name>.html. Example: https://www.booking.com/hotel/gb/the-savoy.html. |
check_inquery | string | Arrival day, YYYY-MM-DD (required). Example: 2026-12-10. |
check_outquery | string | Departure day, YYYY-MM-DD (required). Example: 2026-12-10. |
adultsquery | integer | Adults (default 2). |
childrenquery | integer | null | Children; their ages default to 8 unless children_ages is given. |
children_agesquery | string | Comma-separated ages 0-17, one per child. Example: 5,9. |
roomsquery | integer | Rooms (default 1). |
currencyquery | string | ISO currency for prices (default USD). Example: EUR. |
languagequery | string | Booking.com language for texts (en-us, en-gb, de, fr, …). Example: en-gb. |
Response fields
200 with a BookingRoomsResponse, in Booking.com’s own JSON.
| Field | Type | Description |
|---|---|---|
hotel_id | integer | |
check_in | string | |
check_out | string | |
available | boolean | Booking.com has an offer for this stay and party. |
best_offer | object | The lowest-priced room offer for the stay (what search shows). |
price | object | |
nights | object[] | |
rooms | BookingRoom[] | The property’s room types. |
Status codes
| Status | Meaning |
|---|---|
200 | The stay’s offer and the room types. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Booking.com property or destination by that id, link or name. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Booking.com is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Booking.com is a trademark of its owner. We are not affiliated with or endorsed by it.