Piloterr

Booking Attraction Search

GET
/v2/booking/attraction/search

Things to do on Booking.com for a city or an attractions search URL.

Credit cost: 3 credits per call

Autorisierung

ApiKeyAuth
headerx-api-key<token>

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

Abfrageparameter

query*string

Required. City name or attractions search URL.

https://www.booking.com/attractions/searchresults/fr/paris.fr.html
Paris
language?string

Optional. Default en-gb.

currency?string

Optional. Default USD.

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

Antworttext

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/booking/attraction/search?query=string'
Example Response
{  "results": [    {      "url": "https://www.booking.com/attractions/fr/pre4ksvwxdrd-seine-river-sightseeing-cruise.fr.html",      "city": null,      "name": "Croisière touristique Paris Seine avec commentaires par Bateaux Parisiens",      "image": "https://r-xx.bstatic.com/xdata/images/xphoto/216x216/134464492.webp?k=664cde36f2f9020434de24644142140f0866d6d0f77b907751762acf1a031d61&o=",      "price": 18,      "rating": 8.6,      "currency": "EUR",      "review_count": 5962,      "review_label": "Commentaires",      "price_display": "À partir de € 18 Tarif actuel : à partir de € 18."    },    {      "url": "https://www.booking.com/attractions/fr/prjyfitkuhfz-one-day-admission-to-disneylandr-paris.fr.html",      "city": null,      "name": "Billets d’entrée pour les parcs Disneyland® Paris",      "image": "https://r-xx.bstatic.com/xdata/images/xphoto/216x216/322563497.webp?k=bfbb4511f27ba497091230f512094ad57b7615282a051ab85fa65423ed27bbb8&o=",      "price": 54,      "rating": 9,      "currency": "EUR",      "review_count": 7408,      "review_label": "Commentaires",      "price_display": "À partir de € 54 Tarif actuel : à partir de € 54."    }  ],  "pagination": {    "next": null,    "page": 1,    "per_page": 25,    "total_pages": null,    "total_results": null  }}