> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brightdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 按 URL 采集 Google 购物搜索结果（美国）

> 使用 Bright Data Web Scraper API 按 URL 采集美国 Google 购物搜索结果。POST /datasets/v3/scrape 以 JSON 格式返回商品记录。

## 查询参数

<ParamField query="dataset_id" type="string" default="gd_m31f2k0d2m1bah4f3b" required>
  用于此请求的数据集 ID。

  <Warning>
    必须设置为 `gd_m31f2k0d2m1bah4f3b` 以采集\*\*按 URL 的 Google 购物搜索结果（美国）\*\*数据。
  </Warning>
</ParamField>

<ParamField query="notify" type="boolean" default={false}>
  请求完成时是否发送通知。
</ParamField>

<ParamField query="include_errors" type="boolean" default={true}>
  是否在响应中包含错误。
</ParamField>

## 请求体

<ParamField body="input" type="object[]" required>
  输入对象的数组。

  <Expandable title="properties">
    <ParamField body="url" type="string" required>
      要采集的 Google 购物搜索 URL（例如 `https://www.google.com/search?tbm=shop&q=...`）。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {"url": "https://www.google.com/search?tbm=shop&q=wireless+headphones"}
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "query": "wireless headphones",
      "position": 1,
      "title": "Sony WH-1000XM5 Wireless Headphones",
      "merchant": "Best Buy",
      "price": "349.99",
      "currency": "USD",
      "rating": 4.7,
      "reviews_count": 1820,
      "product_url": "https://www.google.com/shopping/product/54321"
    }
  ]
  ```
</ResponseExample>
