# eBay 抓取参数

Web Scraper API eBay 抓取参数

使用 Thordata 的 Web Scraper API 配置 eBay 抓取参数，包括URL、类别URL、关键词、商店 URL 等参数。

唯一标识：  &#x20;

<details>

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

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

**请求示例：**&#x20;

`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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/itm/157239509696?itmmeta=01K5R1KEKE3ZV2X0MFQF6B34H6%26hash=item249c3482c0:g:DNkAAeSwibpom7x8\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**一、产品-抓取** eBay **信息：**

1\. eBay - 通过 URL 抓取信息

<details>

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

它定义了要使用的抓取工具。&#x20;

**请求示例：**

`spider_id=ebay_ebay_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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/itm/157239509696?itmmeta=01K5R1KEKE3ZV2X0MFQF6B34H6%26hash=item249c3482c0:g:DNkAAeSwibpom7x8\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

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

该参数用于指定待抓取的 eBay 产品 URL。

**请求示例：**

`"url": "https://www.ebay.com/itm/157239509696?itmmeta=01K5R1KEKE3ZV2X0MFQF6B34H6%26hash=item249c3482c0:g:DNkAAeSwibpom7x8"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=ebay.com" ^
  -d "spider_id=ebay_ebay_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/itm/157239509696?itmmeta=01K5R1KEKE3ZV2X0MFQF6B34H6%26hash=item249c3482c0:g:DNkAAeSwibpom7x8\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2\. eBay - 通过类别 URL 抓取信息

<details>

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

它定义了要使用的抓取工具。&#x20;

**请求示例：**

`spider_id=ebay_ebay_by-category-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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/b/Collectible-Japanese-Bowls-Plates-1900-Now/29450/bn_3017839\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

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

该参数用于指定eBay 的特定类别网址来查找新产品。

**请求示例：**

`"url": "https://www.ebay.com/b/Collectible-Japanese-Bowls-Plates-1900-Now/29450/bn_3017839"`

```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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/b/Collectible-Japanese-Bowls-Plates-1900-Now/29450/bn_3017839\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

3\. eBay - 通过关键词抓取信息

<details>

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

它定义了要使用的抓取工具。&#x20;

**请求示例：**

`spider_id=ebay_ebay_by-keywords`

```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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-keywords" ^
  -d "spider_parameters=[{\"keywords\": \"baby toys\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>keyword</code> ，<strong>关键词（必填）</strong></summary>

该参数用于指定抓取eBay产品的搜索关键词。

**请求示例：**

`"keywords": "baby toys"`

```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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-keywords" ^
  -d "spider_parameters=[{\"keywords\": \"baby toys\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

4.eBay - 通过商店网址抓取信息

<details>

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

它定义了要使用的抓取工具。&#x20;

**请求示例：**

`spider_id=ebay_ebay_by-listurl`

```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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-listurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/str/alohahawaiiana?_trksid=p4429486.m145687.l149086\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

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

该参数用于指定待抓取的 eBay 产品商店网址。

**请求示例：**

`"url": "https://www.ebay.com/str/alohahawaiiana?_trksid=p4429486.m145687.l149086"`

```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=ebay.com" ^
  -d "spider_id=ebay_ebay_by-listurl" ^
  -d "spider_parameters=[{\"url\": \"https://www.ebay.com/str/alohahawaiiana?_trksid=p4429486.m145687.l149086\"}]" ^
  -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/ebay-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.
