100 free credits. No credit card required. Get a key

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 failure
import 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

NameTypeDescription
idquerystringBooking.com hotel id. Example: 280149.
urlquerystringA property link, https://www.booking.com/hotel/<cc>/<name>.html. Example: https://www.booking.com/hotel/gb/the-savoy.html.
check_inquerystringArrival day, YYYY-MM-DD (required). Example: 2026-12-10.
check_outquerystringDeparture day, YYYY-MM-DD (required). Example: 2026-12-10.
adultsqueryintegerAdults (default 2).
childrenqueryinteger | nullChildren; their ages default to 8 unless children_ages is given.
children_agesquerystringComma-separated ages 0-17, one per child. Example: 5,9.
roomsqueryintegerRooms (default 1).
currencyquerystringISO currency for prices (default USD). Example: EUR.
languagequerystringBooking.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.

FieldTypeDescription
hotel_idinteger
check_instring
check_outstring
availablebooleanBooking.com has an offer for this stay and party.
best_offerobjectThe lowest-priced room offer for the stay (what search shows).
priceobject
nightsobject[]
roomsBookingRoom[]The property’s room types.
Status codes
StatusMeaning
200The stay’s offer and the room types.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No Booking.com property or destination by that id, link or name.
429Too many requests. Wait for Retry-After seconds.
503Booking.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.