# 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>

它定義了要使用的抓取工具。

**請求示例：**

`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>

它定義了要使用的抓取工具。

**請求示例：**

`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> ，類別URL<strong>（必填）</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>

它定義了要使用的抓取工具。

**請求示例：**

`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>。
