This endpoint returns detailed information on all accommodation properties matching a given search criteria. By default, only basic information is returned.
It is mandatory to pass one of the input parameters: accommodations, airport, city, country or region.
To receive extended information use the extras parameter.
A three-letter code that uniquely identifies an airport as defined by the International Air Transport Association (IATA). The full list can be obtained by calling common/locations/airports.
A signed integer number that uniquely identifies a city. The full list can be obtained by calling common/locations/cities.
A two-letter code that uniquely identifies a country. This code is defined by the ISO 3166-1 alpha-2 standard (ISO2) as described here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. The full list can be obtained by calling common/locations/countries.
Input parameter to request for additional information about the accommodation property. It should be passed as a JSON array with one or more items.
A signed integer number that uniquely identifies a geographical region. Regions usually define official administrative areas within a country, but may also include multiple countries and in some cases un-official but popular designations for geographical areas. An example of a region that crosses multiple countries is the Alps in Europe. The full list can be obtained by calling common/locations/regions.
- Production environmenthttps://demandapi.booking.com/3.1/accommodations/details
- Sandbox environmenthttps://demandapi-sandbox.booking.com/3.1/accommodations/details
curl -i -X POST \
https://demandapi.booking.com/3.1/accommodations/details \
-H 'Authorization: Bearer <YOUR_string_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Affiliate-Id: 0' \
-d '{
"accommodations": [
10004
],
"extras": [
"bundles",
"description",
"facilities",
"payment",
"photos",
"policies",
"rooms"
],
"languages": [
"en-gb",
"zh-cn"
]
}'Successful response.
Uniquely identifies the request. Please provide this identifier when contacting support.
{ "request_id": "01fr9ez700exycb98w90w5r9sh", "data": [ { … } ] }