# 搜索

该 `walmart_search` 用于获取沃尔玛搜索结果页面。我们可以返回你想要的任何沃尔玛页面的 HTML。此外，我们还可以提供 **沃尔玛搜索页面的结构化（已解析）输出**.

## 请求样本

下面的示例展示了如何获取已解析的沃尔玛搜索页面结果。

{% 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


# 结构化负载。
payload = {
    'source': 'walmart_search',
    'query': 'iphone',
    'parse': True,
}

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

# 不会返回作业状态和结果 URL 的响应，而是会返回
# 包含结果的 JSON 响应。
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);
});

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 '错误:' . 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("错误： " + 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>最低价格</code></td><td>设置最低价格。</td><td>-</td></tr><tr><td><code>最高价格</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;    \- 必填参数

### 本地化

将结果适配到特定商店、配送地点等。沃尔玛商店 ID 列表请见此处：

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

你还可以找到沃尔玛商店的官方页面 [**这里**](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>域名</code></td><td>沃尔玛域名本地化。可用值： <code>com</code>, <code>com.mx</code>, <code>ca</code>, <code>co.cr</code>。默认值： <code>com</code>.</td><td>字符串</td></tr><tr><td><code>履约速度</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>自提</code>, <code>配送</code>, <code>配送。</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>

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

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

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

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

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

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

{% hint style="info" %}
如果目标商店距离给定邮政编码过远 - 我们将尝试使用目标商店的邮政编码，否则位置信息将无法正确设置。如果我们无法设置 `delivery_zip` - 沃尔玛将返回其默认结果，而不会按商店定位。
{% 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>沃尔玛搜索页面结构化输出</summary>

```json
{
    "results": [
        {
            "content": {
                "url": "https://www.walmart.com/search?q=adidas",
                "facets": [
                    {
                        "type": "sort",
                        "values": [
                            {
                                "name": "最佳匹配"
                            },
                            {
                                "name": "价格从低到高"
                            },
                            {
                                "name": "价格从高到低"
                            },
                            {
                                "name": "畅销商品"
                            }
                        ],
                        "display_name": "排序方式"
                    },
                    ...
                ],
                "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 男士 California 2.0 圆领短袖 T 恤",
                            "sponsored": false,
                            "product_id": "833623567",
                            "out_of_stock": false,
                            "section_title": "“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": "黑色/白色",
                                "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": "白色",
                                "product_id": "833623567"
                            }
                        ],
                        "fulfillment": {
                            "pickup": false,
                            "delivery": false,
                            "shipping": true,
                            "free_shipping": true
                        }
                    },
                    ...
                ],
                "location": {
                    "city": "Sacramento",
                    "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">Amazon Best Sellers 页面的网址。</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>结果</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>产品评分。</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>timestamp</td></tr><tr><td><code>updated_at</code></td><td>抓取任务完成时的时间戳。</td><td>timestamp</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 男士 California 2.0 圆领短袖 T 恤",
    "sponsored": true,
    "product_id": "833623567",
    "out_of_stock": false,
    "section_title": "“adidas”的结果"
},
...
```

<table><thead><tr><th>键（通用）</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">键（价格）</th><th width="327">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>价格</code></td><td>产品当前价格，不含任何折扣。</td><td>浮点数</td></tr><tr><td><code>price_strikethrough</code>（可选）</td><td>划线价格可以是原价、组合价或目录价。</td><td>浮点数</td></tr><tr><td><code>货币</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` | 产品的平均评分。 | 浮点数 |
| `count`  | 产品的评分数量。 | 整数  |

### 卖家

数据未以可视化方式显示。

<table><thead><tr><th>键（卖家）</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">键（变体）</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>键（履约）</th><th width="315">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>自提</code></td><td>指示产品是否可通过门店自提履约。</td><td>布尔值</td></tr><tr><td><code>配送</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": "最佳匹配"
            },
            {
                "name": "价格从低到高"
            },
            {
                "name": "价格从高到低"
            },
            {
                "name": "畅销商品"
            }
        ],
        "display_name": "排序方式"
    },
...
```

<table><thead><tr><th width="243">键（筛选项）</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": "Sacramento",
    "state": "CA",
    "store_id": "8915",
    "zip_code": "95829"
},
...
```

<table><thead><tr><th>键（位置）</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>Amazon Best Sellers 页面的网址。</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: 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://developers.oxylabs.io/api-targets/cn/dian-zi-shang-wu/walmart/search.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.
