Partner Connect API Service
Partner Connect API Service
Gives information about review scores for specified hotel_ids and filter. The information consists of score breakdown per reviewer_type and review questions, and overall score distribution per score value (1 - 10).
The available filter is input parameter reviewer_type=... . It allows generating review score information for just one reviewer type.
Language in which the response is rendered can be controlled with the input parameter language=... (default: 'en'). Setting the language will reflect on the output fields question and review_score_word.
One additional output field can be requested with input parameter extras=review_score_word.
List of hotel ids for which review score information should be displayed.
Can be used to specify the affiliate id that should be used instead of the default one.
Code of the language used to render response. Please check the "Possible Values" section of the documentation for the accepted language codes.
Limits reviews to those written by specific reviewer type.
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/reviewScores?affiliate_id=0&hotel_ids=0&language=AR&reviewer_type=SOLO_TRAVELLER' \ -H 'Accept: application/json, application/xml' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
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.
The language code to return the results in. Please check the "Possible Values" section of the documentation for the accepted language codes.
Returns extra bits of information about hotels.
The number of rows to offset the results by. NOTE: this needs to be 0 or a multiple of 100.
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/hotels?extras=HOTEL_INFO&hotel_ids=0&language=AR&offset=0&rows=0' \ -H 'Accept: application/json, application/xml' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/hotelTypes?hotel_type_ids=0&languages=AR&offset=0&row=0' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/hotelThemeTypes?offset=0&row=0&theme_ids=0' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/hotelFacilityTypes?facility_type_ids=0&hotel_facility_type_ids=0&languages=AR' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
This endpoint returns the cheapest available room for each hotel matching your check-in and check-out dates. You can search for hotels in a city, or for a specific list of (upto 300) hotels by hotel_ids. Here you will find whether the price included breakfast or other meals, as well as whether it is possible to cancel for free. It is possible to have a breakdown of the price returned by this endpoint and to filter by property types and/or hotel facilities.
The departure date. Must be later than {checkin}. Must be between 1 and 30 days after {checkin}.
Limit the result list to up to 1000 specified hotels where they have availability for the specified guests and dates.
Guest country code. Used to accurately display the best prices and price details for people from that country.
The only group will be split in the given number of rooms automatically
The user's platform.
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/hotelAvailability?checkin=2019-08-24&checkout=2019-08-24¤cy=string&guest_country=string&hotel_ids=0&no_rooms=0&page=string&rows=1000&user_platform=ANDROID' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }
This endpoint is where you find a list of all bookable or available rooms at a property. A room can have multiple blocks, as a block is a combination of the meal, cancellation policy, occupancy and other things. You can find detailed information about one hotel per search (detail_level) which will return most of the information needed to replicate the booking.com property page.
If you want to search multiple hotels, you can, but you get less detail. For searching multiple hotels, it is recommended to use hotelAvailability.
Guest country code. Used to accurately display the best prices and price details for people from that country.
The extra items for this request. See the documentation for more details about each extra.
Return only availability hits with these particular block IDs
"5555555_55555555_5_5_5,6666666_66666666_6_6_6"
Guest IP address for determining guest country and showing the best price for that user and obeying laws regarding the display of taxes and fees.
Number of guests for which blocks will be found. The total number of guests is used for calculating city tax charges. It is specified as an array of guest numbers.
If you use this parameter and make bookings through the API, you should also set the exact same value in the guest_quantities parameter for the processBooking call, otherwise per-person included charges may result in pricing problems, causing the booking to fail.
NOTE: After version 2.6 either this or room1
needs to be provided.
Specify the language for: block_id, policies, room texts and hotel descriptions.
Note: not all text is translated in all languages. Please check the "Possible Values" section of the documentation for the accepted language codes.
Which guests to put in which rooms. Syntax: comma-separated list, A
for each adult, a number in the range 0..17 for each child.
curl -i -X GET \ 'https://developers.booking.com/_mock/metasearch/connect-api/open-api/demand-api-v2-compatible/blockAvailability?affiliate_id=string&block_ids=5555555_55555555_5_5_5%2C6666666_66666666_6_6_6&checkin=2019-08-24&checkout=2019-08-24¤cy=string&extras=ADDON_TYPE&guest_cc=string&guest_ip=string&guest_qty=0&hotel_ids=0&language=AR&num_rooms=0&room1=string&user_platform=ANDROID' \ -H 'Accept: application/json, application/xml' \ -H 'Authorization: Bearer <YOUR_string_HERE>'
{ "meta": { "ruid": "string" }, "result": [ { … } ] }