# Booking Scraping Parameters

Web Scraper API Booking Scraping Parameters

Use Thordata’s Web Scraper API to configure Booking scraping parameters, including scraper tool parameters and detail URL parameters.

Unique Identifier:

<details>

<summary><code>token</code> <strong>，Access Token (Required)</strong></summary>

This parameter serves as the API access token to ensure the legitimacy of scraping requests.

**Request Example:**

`Authorization: Bearer ********************`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**Product – Scrape Booking Hotel Information:**

1. Booking – Scrape hotel information via URL

<details>

<summary><code>spider_id</code> ，<strong>Scraper Tool (Required)</strong></summary>

Defines the scraper tool to be used.

**Request Example:**

`spider_id=booking_hotellist_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> ，<strong>URL (Required)</strong></summary>

Specifies the Booking hotel information link to scrape.

**Request Example:**

`"url": "https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

If you need further assistance, please contact us via email at <support@thordata.com>.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/scraping/web-scraper-api/parameter-description/booking-scraping-parameters.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
