> ## 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

## 查询参数

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

  <Warning>
    必须设置为 `gd_lwhideng15g8jg63s7` 以收集**按分类 URL 发现**数据。
  </Warning>
</ParamField>

<ParamField query="type" type="string" default="discover_new">
  必须设置为 `discover_new`。
</ParamField>

<ParamField query="discover_by" type="string" default="category_url">
  必须设置为 `category_url`。
</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="category_url" type="string" required>
      Amazon 分类页面的 URL。
    </ParamField>

    <ParamField body="num_of_products" type="number">
      要收集的产品数量。缺少值表示无限制。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {
        "category_url": "https://www.amazon.de/-/en/b?node=340843031",
        "num_of_products": 25
      }
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "title": "Mechanical Gaming Keyboard RGB Backlit",
      "url": "https://www.amazon.de/dp/B0C44556CD",
      "asin": "B0C44556CD",
      "price": 79.99,
      "currency": "EUR",
      "rating": 4.6,
      "reviews_count": 5600,
      "seller_name": "GamerGear EU",
      "brand": "KeyMaster",
      "availability": "In Stock",
      "main_image": "https://m.media-amazon.com/images/I/example-keyboard.jpg",
      "description": "Full-size mechanical keyboard with customizable RGB and hot-swappable switches.",
      "category": "Computers & Accessories > Keyboards",
      "country_domain": "amazon.de"
    }
  ]
  ```
</ResponseExample>
