Partner Connect API Service
Partner Connect API Service
The checkin date. Must be within 500 days in the future and in the format yyyy-mm-dd.
The checkout date. Must be later than {checkin}. Must be between 1 and 90 days after {checkin}. Must be within 500 days in the future and in the format yyyy-mm-dd.
The booker's information.
The booker country for showing the best price for that user and obeying laws regarding the display of taxes and fees.
The booker platform for showing the platform based deals and prices.
A three-letter code that uniquely identifies a monetary currency as defined by the ISO 4217 standard.
"EUR"
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.
"nl"
The guest details for the request.
Input parameter to request for additional information about the products.
A signed integer number that uniquely identifies an accommodation property.
A signed integer number that uniquely identifies an accommodation facility.
A signed integer number that uniquely identifies a room facility.
A signed integer number that uniquely identifies an accommodation type.
A three-letter code that uniquely identifies an airport as defined by the International Air Transport Association (IATA).
"AMS"
A signed integer number that uniquely identifies a district. Typically, districts define known areas within a city.
A signed integer number that uniquely identifies a relevant geographical landmark, like a monument or a natural attraction.
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.
curl -i -X POST \ https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v3-compatible/search \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "checkin": "2019-08-24", "checkout": "2019-08-24", "booker": { "country": "string", "platform": "ANDROID", "travel_purpose": "BUSINESS", "user_groups": [ "AUTHENTICATED" ] }, "currency": "EUR", "city": 0, "country": "nl", "guests": { "number_of_adults": 0, "number_of_rooms": 0, "allocation": [ { "children": [ 17 ], "number_of_adults": 1 } ], "children": [ 17 ] }, "extras": [ "EXTRA_CHARGES" ], "accommodations": [ 0 ], "accommodation_facilities": [ 0 ], "room_facilities": [ 0 ], "accommodation_types": [ 0 ], "brands": [ 0 ], "airport": "AMS", "district": 0, "landmark": 0, "coordinates": { "latitude": 0.1, "longitude": 0.1, "radius": 0.1 }, "region": 0, "rows": 1000, "page": "string" }'
{ "data": [ { … } ], "request_id": "string", "next_page": "string" }
This endpoint returns detailed information on all accommodation properties matching a given search criteria. By default, only basic information is returned. To receive extended information use the extras
parameter. Is is mandatory to pass one of the input parameters: accommodations, airport, city, country or region.
A signed integer number that uniquely identifies an accommodation property.
A signed integer number that uniquely identifies an accommodation property facility. Examples of facilities are: Parking, Restaurant, Room service etc.
A signed integer number that uniquely identifies an accommodation property type. Examples of accommodation types are: Apartment, Hostel, Hotel etc.
A three-letter code that uniquely identifies an airport as defined by the International Air Transport Association (IATA).
"AMS"
A signed integer number that uniquely identifies an accommodation brand. Examples of brands are: Radisson Blu, WestCord Hotels, Westin etc.
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.
"nl"
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.
Input parameter to request for additional information about the accommodation property. It should be passed as a JSON array with one or more items.
An IETF language tag code that uniquely identifies a supported human language or dialect as described here: https://en.wikipedia.org/wiki/IETF_language_tag.
Note that in in demand-api-v3-compatible the whole tag is always lowercase. Examples: "nl" for Dutch/Nederlands or "en-us" for English (US).
"en-us"
curl -i -X POST \ https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v3-compatible/details \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "accommodations": [ 0 ], "accommodation_facilities": [ 0 ], "accommodation_types": [ 0 ], "airport": "AMS", "brands": [ 0 ], "city": 0, "country": "nl", "region": 0, "extras": [ "DESCRIPTION" ], "languages": "en-us", "rows": 1000, "page": "string" }'
{ "data": [ { … } ], "request_id": "string", "next_page": "string" }
This endpoint enumerates the internal codes and names, in the selected languages, for relevant accommodation specific types.
These accommodation specific types include the list of facilities that may be available at a property like "Elevator" or "Swimmingpool Outdoor".
For example, the following parameters will return the full list in English (US) and French: {"languages":"en-us","fr"}
.
To get the full list call the endpoint passing an empty body. The codes returned are what is used as input and output for other endpoints in the accommodations namespace.
Allows to filter the results only for specific sections.
curl -i -X POST \ https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v3-compatible/constants \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "constants": [ "ACCOMMODATION_TYPES" ], "languages": "en-us" }'
{ "data": {}, "request_id": "string", "next_page": "string" }