This call returns the hotel and room data. By default, only hotel_id is returned in the output.
One of the argument: hotel_ids, city_ids, country_ids, region_ids, district_ids, chain_ids is mandatory.
Additional data needs to be requested via extras parameter.
The data is returned in English by default.
Security
BearerAuth
GET
import requests
url = "https://metasearch-connect-api.booking.com/demand-api-v2-compatible/hotels"
query = {
"hotelsInput": "hotel_ids=0&language=ar&extras=HOTEL_INFO&offset=0&rows=0"
}
headers = {
"Accept": "application/json, application/xml",
"Authorization": "Bearer <YOUR_string_HERE>"
}
response = requests.get(url, headers=headers, params=query)
data = response.json()
print(data)