# Airbnb 抓取参数

Web Scraper API Airbnb 抓取参数

\
使用 Thordata 的 Web Scraper API 配置 Airbnb 抓取参数，包括 Airbnb 房源网址、位置、入住日期、退房日期、预订人数、货币和其他参数。

**唯一标识:**

<details>

<summary><code>token</code>，<strong>访问令牌（必填）</strong></summary>

此参数用作 API 访问令牌，以确保抓取的合法性。

**请求示例：**

`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=airbnb.com" ^
  -d "spider_id=airbnb_product_by-location" ^
  -d "spider_parameters=[{\"location\": \"Nice, France\",\"check_in\": \"2026-06-06\",\"check_out\": \"2026-06-010\",\"num_of_adults\": \"2\",\"num_of_children\": \"2\",\"num_of_infants\": \"0\",\"num_of_pets\": \"0\",\"country\": \"HK\",\"currency\": \"USD\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**产品 - 抓取房源信息：**

1\. Airbnb - 通过搜索 URL 抓取房源信息

<details>

<summary><code>spider_id</code> ，<strong>抓取工具（必填）</strong></summary>

该参数用于指定要使用的抓取工具。

**请求示例：**

`spider_id=airbnb_product_by-searchurl`

</details>

<details>

<summary><code>searchurl</code>，<strong>搜索 URL （必填）</strong></summary>

此参数指定Airbnb网站上的搜索网址。

**请求示例：**

`"searchurl": "https://www.airbnb.com/s/Greece/homes?query=Greece%26refinement_paths%5B%5D=%2Fhomes%26place_id=ChIJY2xxEcdKWxMRHS2a3HUXOjY%26flexible_trip_lengths%5B%5D=one_week%26monthly_start_date=2025-03-01%26monthly_length=3%26monthly_end_date=2025-06-01%26search_mode=regular_search%26price_filter_input_type=0%26channel=EXPLORE%26date_picker_type=calendar%26source=structured_search_input_header%26search_type=filter_change%26price_filter_num_nights=5%26flexible_date_search_filter_type=1"`

</details>

<details>

<summary><code>country</code>，<strong>国家/地区（选填）</strong></summary>

此参数指定要从中收集信息的国家/地区。

**请求示例：**

`"country": "US"`

</details>

<details>

<summary><strong>请求示例</strong></summary>

```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=airbnb.com" ^
  -d "spider_id=airbnb_product_by-searchurl" ^
  -d "spider_parameters=[{\"searchurl\": \"https://www.airbnb.com/s/Greece/homes?query=Greece%26refinement_paths%5B%5D=%2Fhomes%26place_id=ChIJY2xxEcdKWxMRHS2a3HUXOjY%26flexible_trip_lengths%5B%5D=one_week%26monthly_start_date=2025-03-01%26monthly_length=3%26monthly_end_date=2025-06-01%26search_mode=regular_search%26price_filter_input_type=0%26channel=EXPLORE%26date_picker_type=calendar%26source=structured_search_input_header%26search_type=filter_change%26price_filter_num_nights=5%26flexible_date_search_filter_type=1\",\"country\": \"US\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2. Airbnb - 通过位置信息抓取房源信息

<details>

<summary><code>spider_id</code> ，<strong>抓取工具（必填）</strong></summary>

该参数用于指定要使用的抓取工具。

**请求示例：**

`spider_id=airbnb_product_by-location`

</details>

<details>

<summary><code>location</code>，<strong>位置（必填）</strong></summary>

此参数指定房源在 Airbnb 网站上的位置。

**请求示例：**

`"location": "Nice, France"`

</details>

<details>

<summary><code>check_in</code>，<strong>入住日期（选填）</strong></summary>

此参数指定入住日期。

**请求示例：**

`"check_in": "2026-06-06"`

</details>

<details>

<summary><code>check_out</code>，<strong>退房日期（选填）</strong></summary>

此参数指定退房日期。

**请求示例：**

`"check_out": "2026-06-10"`

</details>

<details>

<summary><code>num_of_adults</code>，<strong>成人人数（选填）</strong></summary>

此参数指定预订的成人人数。

**请求示例：**

`"num_of_adults": "2"`

</details>

<details>

<summary><code>num_of_children</code>，<strong>儿童人数（选填）</strong></summary>

此参数指定预订的儿童人数。

**请求示例：**

`"num_of_children": "2"`

</details>

<details>

<summary><code>num_of_infants</code>，<strong>婴儿数量（选填）</strong></summary>

此参数指定预订的婴儿数量。

**请求示例：**

`"num_of_infants": "0"`

</details>

<details>

<summary><code>num_of_pets</code>，<strong>宠物数量（选填）</strong></summary>

此参数指定预订的宠物数量。

**请求示例：**

`"num_of_pets": "1"`

</details>

<details>

<summary><code>country</code>，<strong>国家/地区（选填）</strong></summary>

此参数指定要从中收集信息的国家/地区。

**请求示例：**

`"country": "HK"`

</details>

<details>

<summary><code>currency</code>，<strong>货币（选填）</strong></summary>

此参数指定货币。

**请求示例：**

`"currency": "USD"`

</details>

<details>

<summary><strong>请求示例</strong></summary>

```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=airbnb.com" ^
  -d "spider_id=airbnb_product_by-location" ^
  -d "spider_parameters=[{\"location\": \"Nice, France\",\"check_in\": \"2026-06-06\",\"check_out\": \"2026-06-10\",\"num_of_adults\": \"2\",\"num_of_children\": \"2\",\"num_of_infants\": \"0\",\"num_of_pets\": \"1\",\"country\": \"HK\",\"currency\": \"USD\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

3. Airbnb - 通过 URL 抓取房源信息

<details>

<summary><code>spider_id</code> ，<strong>抓取工具（必填）</strong></summary>

该参数用于指定要使用的抓取工具。

**请求示例：**

`spider_id=airbnb_product_by-url`

</details>

<details>

<summary><code>url</code>，<strong>URL （必填）</strong></summary>

此参数指定Airbnb网站上的URL。

**请求示例：**

`"url": "https://www.airbnb.com/rooms/21162039?search_mode=regular_search%26federated_search_id=1b9b58d9-8173-4981-af16-d28a7a3ece76%26locale=en%26currency=USD%26adults=2%26children=1%26infants=1%26pets=1%26check_in=2024-10-10%26source_impression_id=p3_1723723782_P31EcPsPoSdTizeX%26guests=1%26check_out=2024-10-20"`

</details>

<details>

<summary><code>country</code>，<strong>国家/地区（选填）</strong></summary>

此参数指定要从中收集信息的国家/地区。

**请求示例：**

`"country": "HK"`

</details>

<details>

<summary><strong>请求示例</strong></summary>

```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=airbnb.com" ^
  -d "spider_id=airbnb_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.airbnb.com/rooms/21162039?search_mode=regular_search%26federated_search_id=1b9b58d9-8173-4981-af16-d28a7a3ece76%26locale=en%26currency=USD%26adults=2%26children=1%26infants=1%26pets=1%26check_in=2024-10-10%26source_impression_id=p3_1723723782_P31EcPsPoSdTizeX%26guests=1%26check_out=2024-10-20\",\"country\": \"US\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

如果您需要进一步的帮助，请通过电子邮件联系 <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/zh/web-scraper-api/zhua-qu-can-shu-shuo-ming/airbnb-zhua-qu-can-shu.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.
