# Amazon 抓取參數

Web Scraper API Amazon 抓取參數

使用 Thordata 的 Web Scraper API 配置 Amazon 抓取參數，包括產品、Token、抓取 URLs、賣家 URLs、域名、關鍵詞、排序方式、UPC、抓取最大頁數、子類別等參數。

唯一標識：

<details>

<summary><code>token</code> <strong>，訪問令牌（必填）</strong></summary>

此參數用作 API 訪問令牌，以確保抓取請求的合法性。

**請求示例：**\
&#x20;`"Authorization: Bearer ********************************"`&#x20;

```sh
curl -X POST "http://scraperapi.thordata.com/builder" \
  -H "Authorization: Bearer ********************************" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "spider_name=amazon.com" \
  -d "individual_params={\"spider_parameters\":[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\",\"zip_code\": \"94107\"}],\"spider_id\":\"amazon_product_by-url\",\"spider_errors\":true}" \
  -d "file_name={{TasksID}}"
```

</details>

**一、產品 - 抓取產品信息工具：**

1. Amazon - 通過 URL 收集產品信息

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_product_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=amazon.com" ^
  -d "spider_id=amazon_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

此參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求範例：**\
`"url": "https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\"`

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>zip_code</code> ，<strong>郵遞區號（可選）</strong></summary>

此參數用於指定抓取頁面中配送區域的郵遞區號。

**請求範例：**

`"zip_code": "94107"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"zip_code\": \"94107\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2. Amazon - 通過暢銷商品 URL 收集產品信息

<details>

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

此參數用於指定要使用的抓取工具。

**請求範例：**\
`spider_id=amazon_product_by-best-sellers`

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-best-sellers" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url": "https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1"`

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-best-sellers" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>collect_child_categories</code> <strong>，子類別（可選）</strong></summary>

此參數用來指定在主類別範圍內要抓取的子類別商品範圍。

**請求範例：**\
`"collect_child_categories":""`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-best-sellers" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/Best-Sellers-Tools-Home-Improvement-Kitchen-Bath-Fixtures/zgbs/hi/3754161/ref=zg_bs_unv_hi_2_680350011_1\",\"collect_child_categories\": \"\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

3. Amazon - 通過類別 URL 收集產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_product_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=amazon.com" ^
  -d "spider_id=amazon_product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取類別目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url":"https://www.amazon.com/s?i=luggage-intl-ship"`

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>sort_by</code> <strong>，排序方式（可選）</strong></summary>

該參數用於配置類別頁面抓取時的排序方式，支持按暢銷品、最新到貨、客戶評論、價格或特色排序。參數值包括：

`Best Sellers` `Newest Arrivals` `Average Rating` `Price: High to Low` `Price: Low to High` `Featured Recommendations`

**請求示例：**\
`"sort_by":"Best Sellers"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

4. Amazon - 通過關鍵詞收集產品信息

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_product_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=amazon.com" ^
  -d "spider_id=amazon_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Apple Watch\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>keyword</code> <strong>，關鍵詞（必填）</strong></summary>

該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。

**請求示例：**\
`"keyword":"Apple Watch"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Apple Watch\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

5. Amazon - 通過 UPC 收集產品信息

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_product_by-upc`

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-upc" ^
  -d "spider_parameters=[{\"upc\": \"841710108224\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>upc</code> <strong>，UPC（必填）</strong></summary>

Amazon 產品所對應的 UPC。需注意，每個 UPC 可能關聯多個產品。

**請求示例：**\
`"upc":"841710108224"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product_by-upc" ^
  -d "spider_parameters=[{\"upc\": \"841710108224\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**二、產品 - 抓取產品評論工具：**

1. Amazon - 通過 URL 收集產品評論

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_comment_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=amazon.com" ^
  -d "spider_id=amazon_comment_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url": "https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726"`

```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=amazon.com" ^
  -d "spider_id=amazon_comment_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/HISDERN-Checkered-Handkerchief-Classic-Necktie/dp/B0BRXPR726\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**三、產品 - 抓取全球產品信息工具：**

1. Amazon - 通過 URL 收集全球產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_global-product_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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/dp/B0CHHSFMRL/\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url": "https://www.amazon.com/dp/B0CHHSFMRL/"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/dp/B0CHHSFMRL/\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2.1.  Amazon - 通過品牌收集全球產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_global-product_by-brand`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-brand" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url": "https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-brand" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?k=football%26i=fashion%26rh=n%3A7141123011%2Cp_123%3A233083\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2.2. Amazon - 透過關鍵字 or 品牌收集全球產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**

`spider_id=amazon_global-product_by-keywords-brand`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords-brand" ^
  -d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>keyword</code> ， <strong>關鍵字（必填）</strong></summary>

此參數用於指定抓取 Amazon 產品時所使用的搜尋關鍵字。

**請求示例：**

`"keyword": "shirts"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords-brand" ^
  -d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>brands</code> ，<strong>品牌（必填）</strong></summary>

此參數用於指定抓取的品牌訊息，請輸入 Amazon 平台有的品牌名稱，如果找不到該品牌選項，則抓取欄位將為空。

**請求示例：**

`"brands": "Adidas"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords-brand" ^
  -d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>page_turning</code> ，<strong>抓取頁數（必填）</strong></summary>

此參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第一頁到第 n 頁的所有產品資料。\
參數值：`1-100000`

**請求示例：**

`"page_turning": "2"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords-brand" ^
  -d "spider_parameters=[{\"keyword\": \"shirts\",\"brands\": \"Adidas\",\"page_turning\": \"2\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

&#x20;3\.  Amazon - 通過類別 URL 收集全球產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_global-product_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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取類別目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 訪問 URL 地址。

**請求示例：**\
`"url": "https://www.amazon.com/s?i=luggage-intl-ship"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>sort_by</code> <strong>，排序方式（可選）</strong></summary>

該參數用於配置類別頁面抓取時的排序方式，支持按暢銷品、最新到貨、客戶評論、價格或特色排序。參數值包括：

`Best Sellers` `Newest Arrivals` `Average Rating` `Price: High to Low` `Price: Low to High` `Featured Recommendations`

**請求示例：**\
`"sort_by":"Best Sellers"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>get_sponsored</code> <strong>，獲取贊助商品（可選）</strong></summary>

該參數用於配置，勾選 “True” 可同時收集贊助商品，即使它們不屬於該類別。\
參數值： `true`  `false`

**請求示例：**\
`"get_sponsored":"true"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-category-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/s?i=luggage-intl-ship\",\"sort_by\": \"Best Sellers\",\"get_sponsored\": \"true\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

4. Amazon - 通過關鍵詞收集全球產品數據

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_global-product_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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>keyword</code> <strong>，關鍵詞（必填）</strong></summary>

該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。

**請求示例：**\
`"keyword":"Mitutoyo""`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>domain</code> ，<strong>主域名（必填）</strong></summary>

該參數用於指定賣家首頁的 URL，以便抓取該賣家所售產品的資料。

請求示例：\
`"domain":"https://www.amazon.com"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>page_turning</code> ，<strong>抓取頁數（可選）</strong></summary>

該參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第 1 頁到第 n 頁的所有產品資料。

請求示例：\
`"page_turning":"1"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"Mitutoyo\",\"domain\": \"https://www.amazon.com\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

5. Amazon - 通過賣家收集全球產品數據

<details>

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

定義了使用哪一個抓取工具。

請求示例：\
`spider_id=amazon_global-product_by-seller-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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-seller-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> ，<strong>抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 的訪問 URL 地址。

請求示例：\
`"url":"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0"`

```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=amazon.com" ^
  -d "spider_id=amazon_global-product_by-seller-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.de/stores/page/DE4854A4-1CF9-4C69-BF27-17B0E692ACF0\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**四、產品 - 抓取賣家信息工具：**

1. Amazon - 通過 URL 收集賣家信息

<details>

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

定義了使用哪一個抓取工具。

請求示例：\
`spider_id=amazon_seller_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=amazon.com" ^
  -d "spider_id=amazon_seller_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> <strong>，抓取目標鏈接（必填）</strong></summary>

該參數用於指定待抓取的 Amazon 的訪問 URL 地址。

請求示例：\
`"url": "https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1"`

```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=amazon.com" ^
  -d "spider_id=amazon_seller_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.amazon.com/sp?ie=UTF8%26seller=ADZ7LD48GVFQJ%26asin=B07H56J7K1%26ref_=dp_merchant_link%26isAmazonFulfilled=1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**五、產品 - 抓取產品列表：**

1. Amazon - 通過關鍵詞收集產品列表

<details>

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

定義了使用哪個抓取工具。

**請求示例：**\
`spider_id=amazon_product-list_by-keywords-domain`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product-list_by-keywords-domain" ^
  -d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>keyword</code> <strong>，關鍵詞（必填）</strong></summary>

該參數用於指定抓取 Amazon 產品時使用的搜索關鍵詞。

**請求示例：**\
`"keyword": "X-box"`

```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=amazon.com" ^
  -d "spider_id=amazon_product-list_by-keywords-domain" ^
  -d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>domain</code> ，<strong>主域名（必填）</strong></summary>

該參數用於指定賣家首頁的 URL，以便抓取該賣家所售產品的資料。

請求示例：\
`"domain": "https://www.amazon.com/"`&#x20;

```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=amazon.com" ^
  -d "spider_id=amazon_product-list_by-keywords-domain" ^
  -d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>page_turning</code> ，<strong>抓取頁數（可選）</strong></summary>

該參數用於設定抓取搜尋結果的頁數。輸入數字 n 表示抓取從第 1 頁到第 n 頁的所有產品資料。

請求示例：\
`"page_turning":"1"`

```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=amazon.com" ^
  -d "spider_id=amazon_product-list_by-keywords-domain" ^
  -d "spider_parameters=[{\"keyword\": \"X-box\",\"domain\": \"https://www.amazon.com/\",\"page_turning\": \"1\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

若您需要更多協助，請透過電子郵件與我們聯繫：<support@thordata.com>。
