This endpoint returns the cheapest available room for each hotel matching your check-in and check-out dates. You can search a specific list of up to 1000 hotels with hotel_ids, or an area with latitude, longitude and radius (the two are mutually exclusive). For each hotel you get whether the price includes breakfast or other meals and whether it can be cancelled for free. Request the room_details extra for a per-room price breakdown, and use add_filtered_rate/options to filter the results.
String enum values (such as user_platform, extras, options, add_filtered_rate, order_by and order_dir) are case-insensitive. language accepts the lowercase codes listed below.
Security
BearerAuth
GET
import requests
url = "https://metasearch-connect-api.booking.com/demand-api-v2-compatible/hotelAvailability"
query = {
"checkin": "2019-08-24",
"checkout": "2019-08-24",
"guest_country": "nl",
"hotel_ids": "96969",
"latitude": "-90",
"longitude": "-180",
"radius": "15",
"room1": "string",
"no_rooms": "1",
"currency": "EUR",
"language": "ar",
"user_platform": "ANDROID",
"genius": "0",
"extras": "HOTEL_DETAILS",
"options": "NO_DORMS",
"add_filtered_rate": "BREAKFAST",
"order_by": "DISTANCE",
"order_dir": "ASC",
"rows": "1000",
"page": "string"
}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <YOUR_string_HERE>"
}
response = requests.get(url, headers=headers, params=query)
data = response.json()
print(data)