> 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/sou-suo-yin-qing/google/shopping/shopping-search.md).

# 购物搜索

该 `google_shopping_search` source 返回来自 Google Shopping 的搜索结果。每个渲染结果都包含一个 **产品令牌** 这是使用以下内容采集产品数据所必需的 `google_shopping_product` [source](/api-targets/cn/sou-suo-yin-qing/google/shopping/shopping-product.md).

## 请求示例

在下面的代码示例中，我们搜索 "Nvidia RTX" 以获取产品 `令牌` 在响应中。

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

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

{% endtab %}

{% tab title="Python" %}

```python
import requests
from pprint import pprint


# Structure payload.
payload = {
    "source": "google_shopping_search",
    "query": "nvidia rtx",
    "render": "html",
    "parse": True
}

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

# Print prettified response to stdout.
pprint(response.json())
```

{% endtab %}

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

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

const username = "USERNAME";
const password = "PASSWORD";
const body = {
    source: "google_shopping_search",
    query: "nvidia rtx",
    render: "html",
    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
https://realtime.oxylabs.io/v1/queries?source=google_shopping_search&query=nvidia+rtx&render=html&parse=true&access_token=12345abcde
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$params = array(
    'source' => 'google_shopping_search',
    'query' => 'nvidia rtx',
    'render' => 'html',
    '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": "google_shopping_search",
		"query":  "nvidia rtx",
		"render": "html",
		"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 = "google_shopping_search",
                query = "nvidia rtx",
                render = "html",
                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.JSONArray;
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", "google_shopping_search");
        jsonObject.put("query", "nvidia rtx");
        jsonObject.put("render", "html");
        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": "google_shopping_search",
    "query": "nvidia rtx",
    "render": "html",
    "parse": true
}
```

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**注意：** 只有已渲染并已解析的任务才会返回产品令牌。
{% endhint %}

我们在示例中使用同步 [**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="222">参数</th><th width="330.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>google_shopping_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><mark style="background-color:green;"><strong><code>render</code></strong></mark></td><td>启用 JavaScript 渲染。必须设置为 <code>html</code> 以获取产品 <strong>令牌</strong>. <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>时返回解析后的数据。查看输出 <a href="#output-data-dictionary"><strong>数据字典</strong></a>.</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;   \- 必需参数

### 本地化

<table><thead><tr><th width="218">参数</th><th width="336.3333333333333">描述</th><th>默认值</th></tr></thead><tbody><tr><td><code>geo_location</code></td><td>结果应适配的地理位置。正确使用此参数极其重要，以获取正确的数据。更多信息请阅读我们建议的 <code>geo_location</code> 参数结构 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/8100bad86572299adc88ab0e6fd42d380eb8ca21#google"><strong>此处</strong></a><strong>.</strong></td><td>-</td></tr><tr><td><code>locale</code></td><td><code>Accept-Language</code> 请求头值，它会更改你的 Google 搜索页面网页界面语言。 <a href="/spaces/ZwEHB9k4MH4pDy80n9mF/pages/b3ae8c9380989171fb2ce419480bef96ead9c1d5#google"><strong>更多信息</strong></a>.</td><td>-</td></tr></tbody></table>

{% hint style="warning" %}
**注意：** 本地化参数（`gl` 和 `hl`）现在已嵌入产品令牌中。要获取 `google_shopping_products` 与原始搜索结果匹配的数据，我们建议将这些字段留空，除非确实需要覆盖。&#x20;
{% 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><tr><td><code>pages</code></td><td>要获取的页面数。</td><td><code>1</code></td></tr></tbody></table>

### 上下文参数

用于根据特殊需求定制搜索上下文或控制的高级选项。上下文参数应按如下所示添加到 context 数组中：

```json
...
"context": [
    {
        "key": "filter",
        "value": "0"
    }
]
...
```

<table><thead><tr><th width="222">参数</th><th width="350.3333333333333">描述</th><th>默认值</th></tr></thead><tbody><tr><td><code>context</code>:<br><code>sort_by</code></td><td>按给定条件对产品列表排序。 <code>r</code> 应用默认的 Google 排序， <code>rv</code> - 按评分排序， <code>p</code> - 按价格升序， <code>pd</code> - 按价格降序。</td><td><code>r</code></td></tr><tr><td><code>context</code>:<br><code>min_price</code></td><td>要筛选的产品最低价格。</td><td>-</td></tr><tr><td><code>context</code>:<br><code>max_price</code></td><td>要筛选的产品最高价格。</td><td>-</td></tr><tr><td><code>context</code>:<br><code>nfpr</code></td><td><code>true</code> 将关闭拼写自动更正。</td><td>-</td></tr></tbody></table>

## 结构化数据

下面可以找到一个 **结构化输出示例** 用于 `google_shopping_search`.

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

## 输出数据字典

**HTML 示例**

<figure><img src="/files/3f87f19f41f6965f8578f5997bbdafcd4df8e6e8" alt=""><figcaption></figcaption></figure>

#### JSON 结构

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

<table><thead><tr><th width="240">键</th><th width="373">描述</th><th width="143">类型</th></tr></thead><tbody><tr><td><code>url</code></td><td>该查询对应的 Google Shopping 搜索页面 URL。</td><td>字符串</td></tr><tr><td><code>page</code></td><td>搜索结果的当前页码。</td><td>整数</td></tr><tr><td><code>results</code></td><td>包含详细搜索结果的对象。</td><td>对象</td></tr><tr><td><code>pla</code> （可选）</td><td>商品列表广告及其各自详情的列表。</td><td>数组</td></tr><tr><td><code>filters</code> （可选）</td><td>各种筛选条件列表。</td><td>数组</td></tr><tr><td><code>organic</code></td><td>包含未付费列表及其各自详情的列表。</td><td>数组</td></tr><tr><td><code>search_information</code></td><td>所提交搜索查询的详细信息列表。</td><td>对象</td></tr><tr><td><code>search_information.query</code></td><td>原始搜索词。</td><td>字符串</td></tr><tr><td><code>search_information.showing_results_for</code></td><td>搜索结果所显示对应的搜索词。`query` 和 `showing_results_for` 可能不同，如果 Google 自动更正了提供的搜索词。</td><td>字符串</td></tr><tr><td><code>last_visible_page</code></td><td>用于标识搜索查询结果页中可见最大页码的值。（当通过滚动触发加载更多结果时为 -1）。</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/google/shopping/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>status_code</code></td><td>爬取任务的状态码。你可以查看所述爬虫状态码 <a href="https://github.com/oxylabs/gitbook-public-english/blob/master/scraping-solutions/web-scraper-api/targets/google/shopping/broken-reference/README.md"><strong>此处</strong></a>.</td><td>整数</td></tr><tr><td><code>job_id</code></td><td>与爬取任务关联的任务 ID。</td><td>字符串</td></tr></tbody></table>

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

### 付费商品列表广告

包含该产品的 商品列表广告 (PLA) 的对象数组。（示例）

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfkje7GDLS8Q67yEA9wX9tcFSZpI79pun9D5XUsoaHoOPqmVM9-eAAHoNd8n_pi46NKy648vV5yB_2GvzXZEhh7p8JRBV73GBVHiczC71v6haNGkdZqgYYnR8I44UdtzqzIGzdt3wp1dB0SG-xaR0sHCYj8?key=dCZ5EAYTk7rLOr8OSUpsuw" alt=""><figcaption></figcaption></figure>

```json
...
  "pla": [
    {
        "items": [
            {
                "pos": 1,
                "url": "/aclk?sa=l&ai=DChcSEwiY8fLUi9OGAxVtj1AGHYnVBj0YABABGgJkZw&gclid=EAIaIQobChMImPHy1IvThgMVbY9QBh2J1QY9EAQYASABEgKpS_D_BwE&sig=AOD64_2DguiyFTR4GRY6Ww9o__l9HgJC_A&ctype=5&q=&ved=0ahUKEwj-6ezUi9OGAxWiWUEAHdbxAgsQww8I2xA&adurl=",
                "price": "$2,199.00",
                "title": "Polycade Sente: Black",
                "seller": "Polycade",
                "thumbnail": "https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcS59ZNOrZH96cy_cOgzxL52VoJYq9iPl7q8g26f9odcuG8pY8ZRxe9YMhkZDPnFAZDyP04lu29gy57ObwsKpWHb_pzQBja34tkErnSAz3nw&usqp=CAE"
            },
            {
                "pos": 2,
                "url": "/aclk?sa=l&ai=DChcSEwiY8fLUi9OGAxVtj1AGHYnVBj0YABADGgJkZw&gclid=EAIaIQobChMImPHy1IvThgMVbY9QBh2J1QY9EAQYAiABEgJwHvD_BwE&sig=AOD64_0LFB8jrHwNdEkmOdjcjGOdhQ9ZVg&ctype=5&q=&ved=0ahUKEwj-6ezUi9OGAxWiWUEAHdbxAgsQww8I3hA&adurl=",
                "price": "$2,199.00",
                "title": "Polycade Sente: White",
                "seller": "Polycade",
                "thumbnail": "https://encrypted-tbn2.gstatic.com/shopping?q=tbn:ANd9GcQ2onFg_aXbg8LTX3qJT9f9XdiFrl_SNLXlpKhSjCQQ2c5EmQcrNXPwCMphjugJUhWctBpRVC0BiS4OUnq0FRAeQ4BXEWI6FuvZvGERsLc&usqp=CAE"
            },
                                ...
        ],
        "pos_overall": 1
    }
],
...
```

<table><thead><tr><th width="188">键（pla）</th><th width="434">描述</th><th>类型</th></tr></thead><tbody><tr><td><code>items</code></td><td>页面内所有可用的 PLA。</td><td>数组</td></tr><tr><td><code>pos</code></td><td>表示某个项目在 PLA 结果中的位置的指标。</td><td>整数</td></tr><tr><td><code>url</code></td><td>产品的 URL。</td><td>字符串</td></tr><tr><td><code>price</code></td><td>列表广告中产品的价格。</td><td>字符串</td></tr><tr><td><code>title</code></td><td>列表广告中产品的标题。</td><td>字符串</td></tr><tr><td><code>rating</code></td><td>产品评分。</td><td>整数</td></tr><tr><td><code>seller</code></td><td>列表广告中产品的卖家。</td><td>字符串</td></tr><tr><td><code>thumbnail</code></td><td>产品缩略图的 URL。</td><td>字符串</td></tr><tr><td><code>reviews_count</code></td><td>产品评论数。</td><td>optional</td></tr><tr><td><code>pos_overall</code></td><td>表示结果在 SERP 中位置的标记。</td><td>整数</td></tr></tbody></table>

### 筛选条件

<figure><img src="/files/7de00d9f5470aa32271b7988f3310753eb816da0" alt=""><figcaption></figcaption></figure>

```json
...
"filters": [
    {
        "name": "Show only",
        "values": [
            {
                "url": "/search?sca_esv=bbd3241cb3940ce2&sca_upv=1&gl=us&hl=en&tbm=shop&q=adidas&tbs=mr:1,sales:1&sa=X&ved=0ahUKEwikoMX_iNOGAxVvFbkGHV6uDZcQ7KEGCJ4WKAA",
                "value": "On sale"
            }
        ]
    },
    {
        "name": "Price",
        "values": [
            {
                "url": "/search?sca_esv=bbd3241cb3940ce2&sca_upv=1&gl=us&hl=en&tbm=shop&q=adidas&tbs=mr:1,price:1,ppr_max:40&sa=X&ved=0ahUKEwikoMX_iNOGAxVvFbkGHV6uDZcQvSsIohYoAA",
                "value": "Up to $40"
            },
                                ...
                                {
                "url": "/search?sca_esv=bbd3241cb3940ce2&sca_upv=1&gl=us&hl=en&tbm=shop&q=adidas&tbs=mr:1,price:1,ppr_min:90&sa=X&ved=0ahUKEwikoMX_iNOGAxVvFbkGHV6uDZcQvSsIpRYoAw",
                "value": "Over $90"
            }
        ]
    },
    {
        "name": "Color",
        "values": [
            {
                "url": "/search?sca_esv=bbd3241cb3940ce2&sca_upv=1&gl=us&hl=en&tbm=shop&q=adidas&tbs=mr:1,color:specific,color_val:black&sa=X&ved=0ahUKEwikoMX_iNOGAxVvFbkGHV6uDZcQtSsIrBYoAA",
                "value": "Black"
            },
                                ...
                                {
                "url": "/search?sca_esv=bbd3241cb3940ce2&sca_upv=1&gl=us&hl=en&tbm=shop&q=adidas&tbs=mr:1,color:specific,color_val:pink&sa=X&ved=0ahUKEwikoMX_iNOGAxVvFbkGHV6uDZcQtSsIshYoBg",
                "value": "Pink"
            }
        ]
    },
                        ...
]
```

<table><thead><tr><th width="238">键（filters）</th><th width="402">描述</th><th width="113">类型</th></tr></thead><tbody><tr><td><code>name</code></td><td>筛选类别的名称</td><td>字符串</td></tr><tr><td><code>values</code></td><td>该类别中可用的筛选选项。</td><td>数组</td></tr><tr><td><code>values.url</code></td><td>表示此筛选选项的过滤后搜索查询的 URL。</td><td>字符串</td></tr><tr><td><code>values.value</code></td><td>筛选选项的显示名称</td><td>字符串</td></tr><tr><td><code>values.merchant_id</code> （可选）</td><td>与此筛选选项关联的商家 ID。</td><td>字符串</td></tr></tbody></table>

### 自然搜索结果

包含自然搜索结果详情的对象数组。

<figure><img src="/files/0bab520877e17fdff01835af361560c03252f70a" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/3224cc4d6ac61ef90519abc5bdbc09cf873ef62c" alt=""><figcaption></figcaption></figure>

```json
...
"organic": [
    {
        "pos": 1,
        "url": "https://www.google.com/shopping/product/16307418470740744792?q=nvidia+rtx&hl=en&udm=28&sei=j5fsaPC2FYWQur8P293m8A8&gl=us",
        "type": "grid",
        "price": 3090,
        "title": "NVIDIA GeForce RTX 5090 32GB GDDR7 Graphics Card",
        "token": "eyJjYXRhbG9naWQiOiAiMTYzMDc0MTg0NzA3NDA3NDQ3OTIiLCAiZ3BjaWQiOiAiMjM4NTIwNzk2NTI4MjUxMzUzOSIsICJpbWFnZURvY2lkIjogIjkyMjY0MjkwODMxMzQ4NDkwNDUiLCAibWlkIjogIiIsICJwdm8iOiAiMjMiLCAicHZ0IjogImhnIiwgInJkcyI6ICJQQ18yMzg1MjA3OTY1MjgyNTEzNTM5fFBST0RfUENfMjM4NTIwNzk2NTI4MjUxMzUzOSIsICJwcm9kdWN0aWQiOiAiIiwgInF1ZXJ5IjogIm52aWRpYSBydHgifQ==",
        "rating": 4.6,
        "currency": "USD",
        "delivery": "Free delivery by Fri",
        "merchant": {
            "name": "eBay"
        },
        "price_str": "$3,090.00",
        "thumbnail": "<THUMBNAIL_STR>",
        "product_id": "1503163696221055935",
        "pos_overall": 1,
        "reviews_count": 311
    },
]
...
```

<table><thead><tr><th width="266">键（organic）</th><th width="360">描述</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>type</code></td><td>列表布局的类型。</td><td>字符串</td></tr><tr><td><code>price</code></td><td>以指定货币表示的产品价格。</td><td>浮点数</td></tr><tr><td><code>title</code></td><td>产品列表的标题。</td><td>字符串</td></tr><tr><td><code>令牌</code></td><td>产品令牌。</td><td>字符串</td></tr><tr><td><code>rating</code> （可选）</td><td>产品的平均用户评分，通常满分为 5。</td><td>整数</td></tr><tr><td><code>currency</code></td><td>产品价格的货币代码。</td><td>字符串</td></tr><tr><td><code>delivery</code></td><td>配送详情，包括预计送达日期和退货政策。</td><td>字符串</td></tr><tr><td><code>merchant</code> （可选）</td><td>包含销售该产品的商家详情的对象。</td><td>对象</td></tr><tr><td><code>merchant.name</code></td><td>商家名称。</td><td>字符串</td></tr><tr><td><code>price_str</code></td><td>以字符串形式表示的产品价格，包含货币符号。</td><td>字符串</td></tr><tr><td><code>thumbnail</code></td><td>产品缩略图图片的 URL。</td><td>字符串</td></tr><tr><td><code>product_id</code></td><td>产品的唯一标识符。</td><td>字符串</td></tr><tr><td><code>pos_overall</code></td><td>产品在搜索结果中的总体位置。</td><td>整数</td></tr><tr><td><code>reviews_count</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/sou-suo-yin-qing/google/shopping/shopping-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.
