> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/zh-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/walmart-zhua-qu-can-shu.md).

# Walmart 抓取參數

Web Scraper API Walmart 抓取參數

使用 Thordata 的 Web Scraper API 配置 Walmart 抓取參數，包括 URL、類別 URL、所有變體、關鍵詞、主域名、SKU 等參數。

唯一標識：

<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=walmart.com" ^
  -d "spider_id=walmart_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.walmart.com/ip/Starburst-Pink-Yellow-Mix-Chewy-Fruit-Candy-3-lbs-Original-Strawberry-Lemon-Soft-Chew-Candies-Bulk-Family-Size-Assortment-Pack-Individually-Wrapped-4/1016450755?adsRedirect=true\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**一、產品 - 抓取 Walmart 產品信息：**

1. Walmart - 通過 URL 抓取產品信息

<details>

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

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

**請求示例：**

`spider_id=walmart_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=walmart.com" ^
  -d "spider_id=walmart_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.walmart.com/ip/Starburst-Pink-Yellow-Mix-Chewy-Fruit-Candy-3-lbs-Original-Strawberry-Lemon-Soft-Chew-Candies-Bulk-Family-Size-Assortment-Pack-Individually-Wrapped-4/1016450755?adsRedirect=true\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

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

該參數用於指定待抓取的 Walmart 產品 URL。

**請求示例：**

`"url": "https://www.walmart.com/ip/Starburst-Pink-Yellow-Mix-Chewy-Fruit-Candy-3-lbs-Original-Strawberry-Lemon-Soft-Chew-Candies-Bulk-Family-Size-Assortment-Pack-Individually-Wrapped-4/1016450755?adsRedirect=true"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.walmart.com/ip/Starburst-Pink-Yellow-Mix-Chewy-Fruit-Candy-3-lbs-Original-Strawberry-Lemon-Soft-Chew-Candies-Bulk-Family-Size-Assortment-Pack-Individually-Wrapped-4/1016450755?adsRedirect=true\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>all_variations</code>, <strong>所有變體（可選）</strong></summary>

該參數用於指定是否收集所有產品變量，設置為 true 為收集。\
參數值：`true`、`false`&#x20;

**請求示例：**

`"all_variations": "false"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.walmart.com/ip/Starburst-Pink-Yellow-Mix-Chewy-Fruit-Candy-3-lbs-Original-Strawberry-Lemon-Soft-Chew-Candies-Bulk-Family-Size-Assortment-Pack-Individually-Wrapped-4/1016450755?adsRedirect=true\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

2. Walmart - 通過類別 URL 抓取產品信息

<details>

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

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

**請求示例：**

`spider_id=walmart_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=walmart.com" ^
  -d "spider_id=walmart_product_by-category-url" ^
  -d "spider_parameters=[{\"category_url\": \"https://www.walmart.com/shop/deals/food/beverages?povid=976759_itemcarousel_976782_Drinkupthesavings_Viewall_Rweb_May_08\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>category_url</code>, <strong>類別 URL（必填）</strong></summary>

該參數用於指定 Walmart 的特定類別網址來查找新產品。

**請求示例：**

`"category_url": "https://www.walmart.com/shop/deals/food/beverages?povid=976759_itemcarousel_976782_Drinkupthesavings_Viewall_Rweb_May_08"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-category-url" ^
  -d "spider_parameters=[{\"category_url\": \"https://www.walmart.com/shop/deals/food/beverages?povid=976759_itemcarousel_976782_Drinkupthesavings_Viewall_Rweb_May_08\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>all_variations</code>, <strong>所有變體（可選）</strong></summary>

該參數用於指定是否收集所有產品變量，設置為 true 為收集。\
參數值：`true`、`false`&#x20;

**請求示例：**

`"all_variations": "false"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-category-url" ^
  -d "spider_parameters=[{\"category_url\": \"https://www.walmart.com/shop/deals/food/beverages?povid=976759_itemcarousel_976782_Drinkupthesavings_Viewall_Rweb_May_08\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

3. Walmart - 通過關鍵詞抓取產品信息

<details>

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

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

**請求示例：**

`spider_id=walmart_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=walmart.com" ^
  -d "spider_id=walmart_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"leggins\",\"domain\": \"https://www.walmart.com/\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

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

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

**請求示例：**

`"keyword": "leggins"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"leggins\",\"domain\": \"https://www.walmart.com/\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>domain</code>, <strong>主域名（可選）</strong></summary>

該參數用於指定抓取 Walmart 產品信息的主域名。

**請求示例：**

`"domain": "https://www.walmart.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=walmart.com" ^
  -d "spider_id=walmart_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"leggins\",\"domain\": \"https://www.walmart.com/\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>all_variations</code>, <strong>所有變體（可選）</strong></summary>

該參數用於指定是否收集所有產品變量，設置為 true 為收集。\
參數值：`true`、`false`&#x20;

**請求示例：**

`"all_variations": "false"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-keywords" ^
  -d "spider_parameters=[{\"keyword\": \"leggins\",\"domain\": \"https://www.walmart.com/\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

4. Walmart - 通過 SKU 抓取產品信息

<details>

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

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

**請求示例：**

`spider_id=walmart_product_by-sku`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-sku" ^
  -d "spider_parameters=[{\"sku\": \"439179861\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>sku</code>, <strong>SKU（必填）</strong></summary>

該參數用於指定待抓取的 SKU 產品唯一代碼。

**請求示例：**

`"sku": "439179861"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-sku" ^
  -d "spider_parameters=[{\"sku\": \"439179861\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>all_variations</code>, <strong>所有變體（可選）</strong></summary>

該參數用於指定是否收集所有產品變量，設置為 true 為收集。\
參數值：`true`、`false`&#x20;

**請求示例：**

`"all_variations": "false"`

```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=walmart.com" ^
  -d "spider_id=walmart_product_by-sku" ^
  -d "spider_parameters=[{\"sku\": \"439179861\",\"all_variations\": \"false\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

如果您需要進一步的幫助，請通過電子郵件聯繫 <support@thordata.com>。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/walmart-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.
