Piloterr

Booking Hotel Reviews

GET
/v2/booking/hotel/reviews

Guest comments for a Booking hotel URL. Featured reviews on the property page are used when the review list is not rendered.

Credit cost: 3 credits per call

Autorização

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parâmetros de consulta

query*string

Required. Hotel URL.

https://www.booking.com/hotel/fr/elysee-montmartre.fr.html
https://www.booking.com/hotel/fr/sax-paris-lxr-hotels-resorts.fr.html
language?string

Optional. Default en-gb.

page?number

Optional. Default 1.

Default"1"
country?string

Optional. Two-letter market code. The value sent is the code, for example ar. It does not change the proxy. Booking sets the cookie explicit_language_preference and the Accept-Language header. If language is empty, this also sets the page language. A URL in query is not rewritten. Any other code returns 400.

ar
fr

Accepted codes: ar, at, be, br, ca, ch, cl, cn, co, cz, de, dk, es, fi, fr, gb, hu, ie, it, jp, mx, nl, no, pe, pl, pt, ro, se, tw, uk, us, uy.

return_page_source?boolean

Optional. Default false. true returns {"result": html} instead of JSON. A Chrome, Brave, or Internet Explorer proxy error is still HTTP 500, and that error page is not returned.

false
Defaultfalse
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Corpo da resposta

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/booking/hotel/reviews?query=string'
Example Response
{  "results": [    {      "date": null,      "room": null,      "score": null,      "title": null,      "negative": null,      "positive": "« La localisation et l'accueil charmant et souriant de Valentina »",      "response": null,      "country_code": "France",      "traveler_type": "Mathilde"    },    {      "date": null,      "room": null,      "score": null,      "title": null,      "negative": null,      "positive": "« Le confort ,le deco ,le personnel ,les petites touches d’attention - Superbes! »",      "response": null,      "country_code": "France",      "traveler_type": "Marina"    }  ],  "pagination": {    "next": "https://www.booking.com/hotel/fr/elysee-montmartre.fr.html?offset=10",    "page": 1,    "per_page": 10,    "total_pages": null,    "total_results": null  }}