Booking reviews API documentation

We provide a simple to setup REST API that returns reviews in JSON format. Before integrating the API you should be aware of the following:

  • The Booking API returns 10 reviews per request.
  • The order in which reviews are returned is by descending date(from newest to oldest).
  • You can get all reviews from a single place by using the offset parameter.

To get reviews from Wextractor you will need to perform GET requests against the https://wextractor.com/api/v1/reviews/booking endpoint.

Reviews endpoint parameters:

Parameter Required Description Example
auth_token Required Your API token for authentication. Once you register to Wextractor you can extract this key from your account's setting page. -
id Required A textual identifier that uniquely identifies a place in Booking. This identifier is a part of the path that appears in the url for the hotel in booking, this includes the country code for the place and the internal id in booking. For example, if the url for the place in booking is https://www.booking.com/hotel/us/hi-new-york-hostel-nyc.en-gb.html the identifier is: us/hi-new-york-hostel-nyc us/hi-new-york-hostel-nyc
offset Optional This parameter defines the result offset. It skips the given number of reviews. It's used for pagination. (e.g., 0 (default) is the first page of results, 20 is the 2nd page of results, 40 is the 3rd page of results, etc.). 10

Example usage:

https://wextractor.com/api/v1/reviews/booking?id=us/hi-new-york-hostel-nyc&auth_token=XXXXX&offset=0

Example response:

        {
    "reviews": [
        {
            "id": "27ba871c75c30215",
            "reviewer": "Anonymous",
            "rating": "1.0",
            "pros": "",
            "cons": "",
            "title": "Bad",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "38d0c5caf4157239",
            "reviewer": "Maksim",
            "rating": "10",
            "pros": "Это все-таки хостел, особого комфорта ожидать не стоит, но в целом - весьма приемлемо.",
            "cons": "",
            "title": "Приличный хостел",
            "language": "ru",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "dc7afd71a87837b7",
            "reviewer": "Francisca",
            "rating": "8.0",
            "pros": "",
            "cons": "",
            "title": "Very good",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "26b3e0be26e35cf2",
            "reviewer": "Susanne",
            "rating": "7.0",
            "pros": "",
            "cons": "",
            "title": "Good",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "ee12c5215bd900ae",
            "reviewer": "Bastien",
            "rating": "7.0",
            "pros": "Very nice hostel. Close to the city. ",
            "cons": "Breakfast must be expensive ",
            "title": "Good",
            "language": "en",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "498aa036a44e2fa4",
            "reviewer": "Fátima",
            "rating": "10",
            "pros": "La gente que trabaja aquí,lo grande que es,las actividades,la comida es barata si vuelvo sin duda que me volvería a hospedar aquí",
            "cons": "Tal vez que hacía un poco de frío pero a lo mejor soy yo la que siempre tiene frío",
            "title": "Exceptional",
            "language": "es",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "e154152bbf1bb541",
            "reviewer": "Joscia",
            "rating": "9.2",
            "pros": "",
            "cons": "",
            "title": "Superb",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "4eafbcf5745e3bc8",
            "reviewer": "Miriam",
            "rating": "9.0",
            "pros": "",
            "cons": "",
            "title": "Superb",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "7431b27ef875b703",
            "reviewer": "Jason",
            "rating": "10",
            "pros": "",
            "cons": "",
            "title": "Exceptional",
            "language": "",
            "datetime": "2020-03-14 00:00:00"
        },
        {
            "id": "b961b3fd521c9a84",
            "reviewer": "Joshua",
            "rating": "9.6",
            "pros": "Awesome place. Really nice for the hostel. If you forget anything, just ask!",
            "cons": "",
            "title": "Exceptional",
            "language": "en",
            "datetime": "2020-03-14 00:00:00"
        }
    ]
}
    

Frequently asked questions:

  • How do I get all the reviews for a single place?
  • You need to perform multiple requests incrementing the offset until you get a response without any reviews in it.

  • Does the API have rate limits?
  • Yes, since Expedia is pretty strict at blocking requests you will be rate limited if you perform more than one request per second.