> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/api-targets/cn/dian-zi-shang-wu/walmart/search.md).

# 搜索

该 `walmart_search` 该来源旨在检索 Walmart 搜索结果页。我们可以返回你想要的任意 Walmart 页面 HTML。此外，我们还可以提供 **Walmart 搜索页的结构化（解析后）输出**.

## 请求示例

下面的示例说明如何获取解析后的 Walmart 搜索页结果。

{% tabs %}
{% tab title="cURL" %}

```shell
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "walmart_search", 
        "query": "iphone", 
        "parse": true
    }'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint


# Structure payload.
payload = {
    'source': 'walmart_search',
    'query': 'iphone',
    'parse': True,
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())
```

{% endtab %}

{% tab title="Node.js" %}

```javascript
const https = require("https");

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "walmart_search",
    query: "iphone",
    parse: true,
};

const options = {
    hostname: "realtime.oxylabs.io",
    path: "/v1/queries",
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        Authorization:
            "Basic " + Buffer.from(`${username}:${password}`).toString("base64"),
    },
};

const request = https.request(options, (response) => {
    let data = "";

    response.on("data", (chunk) => {
        data += chunk;
    });

    response.on("end", () => {
        const responseData = JSON.parse(data);
        console.log(JSON.stringify(responseData, null, 2));
    });
});

request.on("error", (error) => {
    console.error("Error:", error);
});

request.write(JSON.stringify(body));
request.end();
```

{% endtab %}

{% tab title="HTTP" %}

```http
你提交的整个字符串必须进行 URL 编码。

https://realtime.oxylabs.io/v1/queries?source=walmart_search&query=iphone&parse=true&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'walmart_search',
    'query' => 'iphone',
    'parse' => true
);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "https://realtime.oxylabs.io/v1/queries");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_USERPWD, "USERNAME" . ":" . "PASSWORD");

$headers = array();
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
echo $result;

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);
```

{% endtab %}

{% tab title="Golang" %}

```go
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
)

func main() {
	const Username = "USERNAME"
	const Password = "PASSWORD"

	payload := map[string]interface{}{
		"source":       "walmart_search",
		"query":        "iphone",
		"parse":        true,
	}

	jsonValue, _ := json.Marshal(payload)

	client := &http.Client{}
	request, _ := http.NewRequest("POST",
		"https://realtime.oxylabs.io/v1/queries",
		bytes.NewBuffer(jsonValue),
	)

	request.SetBasicAuth(Username, Password)
	response, _ := client.Do(request)

	responseText, _ := ioutil.ReadAll(response.Body)
	fmt.Println(string(responseText))
}

```

{% endtab %}

{% tab title="C#" %}

```csharp
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Json;
using System.Threading.Tasks;

namespace OxyApi
{
    class Program
    {
        static async Task Main()
        {
            const string Username = "USERNAME";
            const string Password = "PASSWORD";

            var parameters = new {
                source = "walmart_search",
                query = "iphone",
                parse = true
            };

            var client = new HttpClient();

            Uri baseUri = new Uri("https://realtime.oxylabs.io");
            client.BaseAddress = baseUri;

            var requestMessage = new HttpRequestMessage(HttpMethod.Post, "/v1/queries");
            requestMessage.Content = JsonContent.Create(parameters);

            var authenticationString = $"{Username}:{Password}";
            var base64EncodedAuthenticationString = Convert.ToBase64String(System.Text.ASCIIEncoding.UTF8.GetBytes(authenticationString));
            requestMessage.Headers.Add("Authorization", "Basic " + base64EncodedAuthenticationString);

            var response = await client.SendAsync(requestMessage);
            var contents = await response.Content.ReadAsStringAsync();

            Console.WriteLine(contents);
        }
    }
}
```

{% endtab %}

{% tab title="Java" %}

```java
package org.example;

import okhttp3.*;
import org.json.JSONObject;
import java.util.concurrent.TimeUnit;

public class Main implements Runnable {
    private static final String AUTHORIZATION_HEADER = "Authorization";
    public static final String USERNAME = "USERNAME";
    public static final String PASSWORD = "PASSWORD";

    public void run() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("source", "walmart_search");
        jsonObject.put("query", "iphone");
        jsonObject.put("parse", true);

        Authenticator authenticator = (route, response) -> {
            String credential = Credentials.basic(USERNAME, PASSWORD);
            return response
                    .request()
                    .newBuilder()
                    .header(AUTHORIZATION_HEADER, credential)
                    .build();
        };

        var client = new OkHttpClient.Builder()
                .authenticator(authenticator)
                .readTimeout(180, TimeUnit.SECONDS)
                .build();

        var mediaType = MediaType.parse("application/json; charset=utf-8");
        var body = RequestBody.create(jsonObject.toString(), mediaType);
        var request = new Request.Builder()
                .url("https://realtime.oxylabs.io/v1/queries")
                .post(body)
                .build();

        try (var response = client.newCall(request).execute()) {
            if (response.body() != null) {
                try (var responseBody = response.body()) {
                    System.out.println(responseBody.string());
                }
            }
        } catch (Exception exception) {
            System.out.println("Error: " + exception.getMessage());
        }

        System.exit(0);
    }

    public static void main(String[] args) {
        new Thread(new Main()).start();
    }
}
```

{% endtab %}

{% tab title="JSON" %}

```json
{
    "source": "walmart_search", 
    "query": "iphone", 
    "parse": true
}
```

{% endtab %}
{% endtabs %}

我们在示例中使用同步 [**Realtime**](/products/cn/web-scraper-api/integration-methods/realtime.md) 集成方法。如果你想使用 [**Proxy Endpoint**](/products/cn/web-scraper-api/integration-methods/proxy-endpoint.md) 或异步 [**Push-Pull**](/products/cn/web-scraper-api/integration-methods/push-pull.md) 集成，请参阅 [**集成方法**](/products/cn/web-scraper-api/integration-methods.md) 部分。

## 请求参数值

### 通用

<table><thead><tr><th width="207">参数</th><th width="334.3333333333333">描述</th><th>默认值</th></tr></thead><tbody><tr><td><mark style="background-color:green;"><strong><code>source</code></strong></mark></td><td>设置抓取器。</td><td><code>walmart_search</code></td></tr><tr><td><mark style="background-color:green;"><strong><code>query</code></strong></mark></td><td>用于搜索商品的关键词或短语。</td><td>-</td></tr><tr><td><code>min_price</code></td><td>设置最低价格。</td><td>-</td></tr><tr><td><code>max_price</code></td><td>设置最高价格。</td><td>-</td></tr><tr><td><code>sort_by</code></td><td>选择商品排序方式。可用值为： <code>price_low</code>, <code>price_high</code>, <code>best_seller</code>, <code>best_match</code>.</td><td><code>best_match</code></td></tr><tr><td><code>render</code></td><td>设置为时启用 JavaScript 渲染 <code>html</code>. <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/9d7133837001de31de5dfd0796cfbc6fdd7c78c8#javascript-rendering"><strong>更多信息</strong></a><strong>.</strong></td><td>-</td></tr><tr><td><code>parse</code></td><td>设置为时返回解析后的数据 <code>true</code>.</td><td><code>false</code></td></tr><tr><td><code>callback_url</code></td><td>回调端点的 URL。 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/f93fe40aed5366f8033cd2ebfae30e61c16a4f51"><strong>更多信息</strong></a></td><td>-</td></tr><tr><td><code>user_agent_type</code></td><td>设备类型和浏览器。完整列表可见 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/3e6a8ee6a2915a55b276cc31a20735fe1e0e4ed1"><strong>此处</strong></a>.</td><td><code>desktop</code></td></tr></tbody></table>

&#x20;    \- 必填参数

### 本地化

将结果适配到特定门店、配送地点等。Walmart 门店 ID 列表请见此处：

{% file src="/files/0d53a32dcf2febd94bf40a765b0230511b08c500" %}

你也可以在此找到 Walmart 门店的官方页面 [**此处**](https://www.walmart.com/store-directory)**.**

<table><thead><tr><th width="179">参数</th><th width="434">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>domain</code></td><td>Walmart 的域名本地化。可用值： <code>com</code>, <code>com.mx</code>, <code>ca</code>, <code>co.cr</code>. 默认值： <code>com</code>.</td><td>字符串</td></tr><tr><td><code>fulfillment_speed</code></td><td>设置履约速度。可用值为： <code>today</code>, <code>2_days</code>, <code>anytime</code>, <code>tomorrow</code>.</td><td>字符串</td></tr><tr><td><code>fulfillment_type</code></td><td>设置履约类型。支持的值： <code>pickup</code>, <code>delivery</code>, <code>shipping.</code></td><td>字符串</td></tr><tr><td><code>delivery_zip</code></td><td>设置配送目的地。</td><td>字符串</td></tr><tr><td><code>store_id</code></td><td>设置门店位置。</td><td>字符串</td></tr></tbody></table>

履约类型参数的可用性因 Walmart 域名而异：

<table><thead><tr><th width="341">域名</th><th>支持的履约类型</th></tr></thead><tbody><tr><td><code>walmart.com</code></td><td><code>pickup</code>, <code>delivery</code>, <code>shipping</code></td></tr><tr><td><code>walmart.com.mx</code></td><td><code>pickup</code>, <code>delivery</code></td></tr><tr><td><code>walmart.ca</code></td><td><code>pickup</code>, <code>delivery</code></td></tr><tr><td><code>walmart.co.cr</code></td><td><code>pickup</code></td></tr></tbody></table>

对于国际 `store_id` 列表，请参见下面的文件：

{% file src="/files/4f46528eb81a355147474f1621ccb315941832fb" %}

{% file src="/files/d52b112df6ce8920ad2da97936318cc6aaa5aa79" %}

{% file src="/files/b0910e561dcbc6c58b8398ee95b1e9bfd61e074a" %}

{% hint style="info" %}
如果目标门店离给定邮政编码太远，我们将尝试使用目标门店的邮政编码，否则位置将无法正确设置。在这种情况下，如果我们无法设置 `delivery_zip` - Walmart 将返回其默认结果，不进行门店定位。
{% endhint %}

### 分页

<table><thead><tr><th width="222">参数</th><th width="350.3333333333333">描述</th><th width="167">默认值</th></tr></thead><tbody><tr><td><code>start_page</code></td><td>起始页码。</td><td><code>1</code></td></tr></tbody></table>

## 结构化数据

{% hint style="info" %}
在以下各节中，当某种结果类型有多个项目可用时，解析后的 JSON 代码片段会被缩短。
{% endhint %}

<details>

<summary>Walmart 搜索页结构化输出</summary>

```json
{
    "results": [
        {
            "content": {
                "url": "https://www.walmart.com/search?q=adidas",
                "facets": [
                    {
                        "type": "sort",
                        "values": [
                            {
                                "name": "Best Match"
                            },
                            {
                                "name": "Price Low"
                            },
                            {
                                "name": "Price High"
                            },
                            {
                                "name": "Best Seller"
                            }
                        ],
                        "display_name": "Sort by"
                    },
                    ...
                ],
                "results": [
                    {
                        "price": {
                            "price": 31.95,
                            "currency": "USD"
                        },
                        "rating": {
                            "count": 0,
                            "rating": 0
                        },
                        "seller": {
                            "id": "5027DF43EB634E91AEADF0D69DD4E009",
                            "name": "Revel Commerce"
                        },
                        "general": {
                            "pos": 13,
                            "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=VARIANT",
                            "image": "https://i5.walmartimages.com/seo/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt_1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
                            "title": "Adidas Men's California 2.0 Crew Neck Short Sleeve Tee T-Shirt",
                            "sponsored": false,
                            "product_id": "833623567",
                            "out_of_stock": false,
                            "section_title": "Results for \"adidas\""
                        },
                        "variants": [
                            {
                                "url": "/ip/Adidas-Men-California-2-0-Tee-S-Black/524412260?classType=undefined&variantFieldId=actual_color",
                                "image": "https://i5.walmartimages.com/asr/f60cd6ff-41fd-484d-b76e-57f6022c2201.eedd632efbb4ce3803e9ef8306190aa3.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
                                "title": "Black/White",
                                "product_id": "524412260"
                            },
                            {
                                "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=undefined&variantFieldId=actual_color",
                                "image": "https://i5.walmartimages.com/asr/1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
                                "title": "White",
                                "product_id": "833623567"
                            }
                        ],
                        "fulfillment": {
                            "pickup": false,
                            "delivery": false,
                            "shipping": true,
                            "free_shipping": true
                        }
                    },
                    ...
                ],
                "location": {
                    "city": "萨克拉门托",
                    "state": "CA",
                    "zipcode": "95829",
                    "store_id": "3081"
                },
                "page_details": {
                    "page": 1,
                    "total_results": 11524,
                    "last_visible_page": 25
                },
                "parse_status_code": 12000
            },
            "created_at": "2024-10-16 09:57:40",
            "updated_at": "2024-10-16 09:57:46",
            "page": 1,
            "url": "https://www.walmart.com/search?q=adidas",
            "job_id": "7252256376867528705",
            "is_render_forced": false,
            "status_code": 200,
            "parser_type": "walmart_search_new"
        }
    ]
}
```

</details>

## 输出数据字典

#### **HTML 示例**

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXfYKEySR7wMk6YcQlNwL_-Md1jjuDsNYTvGWce18gD6iEPG_h6xZNBify4gxkgVVIL8paPHhpH3nM1hJPHgtyDsq_d3hfieZdRKXGwmSq8k2Qor046eUzY-ZVLMuE8V5pHs7AxC-L8aHx5KZVa0ivMlY0c?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

#### **JSON 结构**

下表详细列出了我们解析的每个搜索页面元素，以及其描述和数据类型。表中还包含一些元数据。

<table><thead><tr><th width="245">键</th><th width="327">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>url</code></td><td>搜索页面 URL。</td><td>字符串</td></tr><tr><td><code>facets</code></td><td>包含搜索结果页面上显示的任何可用搜索筛选项（细化条件）详情的数组。</td><td>数组</td></tr><tr><td><code>results</code></td><td>搜索页面结果。</td><td>数组</td></tr><tr><td><code>results.general</code></td><td>包含通用商品详情的对象。</td><td>对象</td></tr><tr><td><code>results.price</code></td><td>包含商品价格详情的对象。</td><td>对象</td></tr><tr><td><code>results.rating</code></td><td>对象包含商品评分详情。</td><td>对象</td></tr><tr><td><code>results.seller</code></td><td>对象包含卖家信息。</td><td>对象</td></tr><tr><td><code>results.variants</code> （可选）</td><td>数组包含商品变体列表。</td><td>数组</td></tr><tr><td><code>results.fulfillment</code></td><td>对象包含商品履约选项详情。</td><td>对象</td></tr><tr><td><code>location</code></td><td>提供请求运行所在位置的信息。</td><td>对象</td></tr><tr><td><code>page_details</code></td><td>对象包含搜索查询结果页面数据。</td><td>对象</td></tr><tr><td><code>parse_status_code</code></td><td>解析任务的状态码。您可以查看所述的解析器状态码 <a href="https://github.com/oxylabs/gitbook-public-english/blob/master/scraping-solutions/web-scraper-api/targets/walmart/broken-reference/README.md"><strong>此处</strong></a>.</td><td>整数</td></tr><tr><td><code>created_at</code></td><td>抓取任务创建时的时间戳。</td><td>时间戳</td></tr><tr><td><code>updated_at</code></td><td>抓取任务完成时的时间戳。</td><td>时间戳</td></tr><tr><td><code>page</code></td><td>提取数据的页码</td><td>整数</td></tr><tr><td><code>url</code></td><td>搜索页面 URL。</td><td>字符串</td></tr><tr><td><code>job_id</code></td><td>与抓取任务关联的作业 ID。</td><td>字符串</td></tr><tr><td><code>status_code</code></td><td>抓取任务的状态码。您可以查看所述的抓取器状态码 <a href="https://github.com/oxylabs/gitbook-public-english/blob/master/scraping-solutions/web-scraper-api/targets/walmart/broken-reference/README.md"><strong>此处</strong></a>.</td><td>整数</td></tr><tr><td><code>is_render_forced</code></td><td>标识此请求是否已强制渲染。</td><td>布尔值</td></tr><tr><td><code>parser_type</code></td><td>用于提取数据的解析器类型（例如，"walmart_search_new"）。</td><td>字符串</td></tr></tbody></table>

### **常规**

<figure><img src="/files/d47bc3d2ea58e1ffe431798e1cab5c76bb2c5da9" alt="" width="207"><figcaption></figcaption></figure>

```javascript
...
"general": {
    "pos": 1,
    "url": "/ip/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt/833623567?classType=VARIANT",
    "image": "https://i5.walmartimages.com/seo/Adidas-Men-s-California-2-0-Crew-Neck-Short-Sleeve-Tee-T-Shirt_1b8e0b00-fdc7-4b88-99fb-9a633bf0227b_1.812a96a559770448397cd828ef1cf68b.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
    "title": "Adidas Men's California 2.0 Crew Neck Short Sleeve Tee T-Shirt",
    "sponsored": true,
    "product_id": "833623567",
    "out_of_stock": false,
    "section_title": "Results for \"adidas\""
},
...
```

<table><thead><tr><th>键（general）</th><th width="319">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>pos</code></td><td>表示给定商品在其所属板块中的位置。</td><td>整数</td></tr><tr><td><code>url</code></td><td>商品的 URL。</td><td>字符串</td></tr><tr><td><code>image</code></td><td>主商品图片的 URL。</td><td>字符串</td></tr><tr><td><code>title</code></td><td>商品标题或名称。</td><td>字符串</td></tr><tr><td><code>product_id</code></td><td>商品 ID。</td><td>字符串</td></tr><tr><td><code>sponsored</code></td><td>标识商品是否为赞助商品。</td><td>布尔值</td></tr><tr><td><code>badge</code> （可选）</td><td>优惠、热门推荐、畅销、昨天以来已购 100+</td><td>字符串列表</td></tr><tr><td><code>section_title</code></td><td>搜索页面中该商品所属板块的名称。</td><td>字符串</td></tr><tr><td><code>out_of_stock</code></td><td>指示商品是否缺货。</td><td>布尔值</td></tr></tbody></table>

### 价格

<figure><img src="/files/fc8c484789297059f1b8aab763bb9f9892142f5d" alt="" width="249"><figcaption></figcaption></figure>

```javascript
...
"price": {
    "price": 1149.99,
    "currency": "USD",
    "price_min": 1149.99
    "price_max": 1399.00
},
...
```

<table><thead><tr><th width="241">键（price）</th><th width="327">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>price</code>（可选）</td><td>商品当前价格，不含任何折扣。</td><td>浮点数</td></tr><tr><td><code>price_strikethrough</code>（可选）</td><td>划线价可以是原价、套装价或标价。</td><td>浮点数</td></tr><tr><td><code>currency</code></td><td>货币的 ISO 4217 三字母代码。</td><td>字符串</td></tr><tr><td><code>price_min</code>（可选）</td><td>区间定价情况下商品的最低价格。</td><td>浮点数</td></tr><tr><td><code>price_max</code>（可选）</td><td>区间定价情况下商品的最高价格。</td><td>浮点数</td></tr></tbody></table>

### 评分

<figure><img src="/files/b7e4e05a80d2902b7dcd0976e2822e7e9f53529b" alt="" width="362"><figcaption></figcaption></figure>

```javascript
...
"rating": {
    "count": 428,
    "rating": 4.6
},
...
```

| 键（rating） | 描述       | 类型  |
| --------- | -------- | --- |
| `rating`  | 商品的平均评分。 | 浮点数 |
| `count`   | 商品评分数量。  | 整数  |

### 卖家

未在界面中可视显示。

<table><thead><tr><th>键（seller）</th><th width="327">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>name</code></td><td>卖家名称。</td><td>字符串</td></tr><tr><td><code>id</code></td><td>卖家 ID。</td><td>字符串</td></tr></tbody></table>

### 变体

<figure><img src="/files/8f27c47d077388c22327c2c9f2b3fe3de5004872" alt="" width="244"><figcaption></figcaption></figure>

```json
...
"variants": [
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Gold-M1-Chip-8GB-RAM-256GB-storage/550880792?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/a9857413-b9fa-4c8d-9f81-7ea4c93889a1.410fd3cb7fe36102bbe2d3dca32a8075.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "金色",
        "product_id": "550880792"
    },
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Silver-M1-Chip-8GB-RAM-256GB-storage/715596133?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/056c08d5-2d68-44f2-beb0-dd8a47e2f8e8.2a2a210657937c3c11b37df5be8fa4ad.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "银色",
        "product_id": "715596133"
    },
    {
        "url": "/ip/Apple-MacBook-Air-13-3-inch-Laptop-Space-Gray-M1-Chip-8GB-RAM-256GB-storage/609040889?classType=undefined&variantFieldId=actual_color",
        "image": "https://i5.walmartimages.com/asr/af1d4133-6de9-4bdc-b1c6-1ca8bd0af7a0.c0eb74c31b2cb05df4ed11124d0e255b.jpeg?odnHeight=180&odnWidth=180&odnBg=ffffff",
        "title": "深空灰",
        "product_id": "609040889"
    }
],
...
```

<table><thead><tr><th width="248">键（variants）</th><th width="342">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>url</code></td><td>商品变体的 URL。</td><td>字符串</td></tr><tr><td><code>title</code></td><td>商品变体的标题。</td><td>字符串</td></tr><tr><td><code>product_id</code></td><td>商品变体的 ID。</td><td>字符串</td></tr><tr><td><code>image</code></td><td>商品变体的图片。</td><td>字符串</td></tr></tbody></table>

### 履约

<figure><img src="/files/263132bae1ff516e0df0d9511c060459edfa15ef" alt="" width="395"><figcaption></figcaption></figure>

```json
 ...
"fulfillment": {
    "pickup": true,
    "delivery": true,
    "shipping": true,
    "free_shipping": false
}
...
```

<table><thead><tr><th>键（fulfillment）</th><th width="315">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>pickup</code></td><td>指示该商品是否可通过门店自提履约。</td><td>布尔值</td></tr><tr><td><code>delivery</code></td><td><p>指示该商品是否可通过门店配送履约。</p><p>如有可用，配送来自您的本地门店。</p></td><td>布尔值</td></tr><tr><td><code>shipping</code></td><td>指示该商品是否可通过送货上门履约。</td><td>布尔值</td></tr><tr><td><code>free_shipping</code></td><td>指示运费是否免费。</td><td>布尔值</td></tr></tbody></table>

### 筛选项

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXeRlJ-6IDkaftEvHHQTmA8RsJq9YJ3hNQAcyOMvm4RtMZpLLE7iRdLPwgI3_PXJ4xU33QFfefh2OC8Xt0nDr5uQKxDqhHe_FUupBBIE916dAlKH_4oCQY3lmFSiEeTkUFcc8ma0h1LR13j0RkNykhdaHO5I?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

```json
... 
"facets": [
    {
        "type": "sort",
        "values": [
            {
                "name": "Best Match"
            },
            {
                "name": "Price Low"
            },
            {
                "name": "Price High"
            },
            {
                "name": "Best Seller"
            }
        ],
        "display_name": "Sort by"
    },
...
```

<table><thead><tr><th width="243">键（facets）</th><th width="351">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>display_name</code></td><td>筛选项的显示名称（即面向用户的名称）。</td><td>字符串</td></tr><tr><td><code>type</code></td><td>筛选项类型。</td><td>字符串</td></tr><tr><td><code>values</code></td><td>筛选项值数组显示给定筛选项的值。</td><td>数组</td></tr><tr><td><code>values.name</code></td><td>筛选项值名称。</td><td>字符串</td></tr><tr><td><code>values.item_count</code> （可选）</td><td>特定筛选项可用的商品数量。</td><td>整数</td></tr></tbody></table>

### 位置

<figure><img src="/files/bc0164ba9d3d8ebfe7b1356ea3e365adb34a8cab" alt="" width="384"><figcaption></figcaption></figure>

```json
...
"location": {
    "city": "萨克拉门托",
    "state": "CA",
    "store_id": "8915",
    "zip_code": "95829"
},
...
```

<table><thead><tr><th>键（location）</th><th width="335">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>city</code></td><td>请求运行所在城市。</td><td>字符串</td></tr><tr><td><code>state</code></td><td>请求运行所在州。</td><td>字符串</td></tr><tr><td><code>zip_code</code></td><td>请求运行时所用的邮政编码。</td><td>字符串</td></tr><tr><td><code>store_id</code></td><td>请求运行所用门店的 ID。</td><td>字符串</td></tr></tbody></table>

### 页面详情

<figure><img src="https://lh7-qw.googleusercontent.com/docsz/AD_4nXdDeZE3P2q2mpUFrQEV_fWb_KihYfxfjHkYY3NRRA9OL01lC83tilGKDepWHE62LEoG8Qp9rYX6PYHM44CfgQdoZDuev4f1P9jGloQ8Hido9Fy-QFS4k8A4nmCWBA6F59jhRN7ASrkAJWn0Heb0RuD1gAbs?key=0pdGx4c_qHnNgLislTadiQ" alt=""><figcaption></figcaption></figure>

```json
 ...
"page_details": {
    "page": 1,
    "total_results": 11524,
    "last_visible_page": 25
},
...
```

<table><thead><tr><th>键（page_details）</th><th width="306">描述</th><th>键</th></tr></thead><tbody><tr><td><code>total_results</code></td><td>显示为可用的搜索结果总数。</td><td>整数</td></tr><tr><td><code>last_visible_page</code></td><td>搜索结果的最后一页页码。</td><td>整数</td></tr><tr><td><code>page</code></td><td>提取商品数据的页码</td><td>整数</td></tr></tbody></table>


---

# 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, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/api-targets/cn/dian-zi-shang-wu/walmart/search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
