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

# 按分类发现

## 查询参数

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

  <Warning>
    必须设置为 `gd_m45m1u911dsa4274pi` 以收集**按分类发现**数据。
  </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>
      用于发现产品的 TikTok Shop 分类 URL。
    </ParamField>

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

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {
        "category_url": "https://www.tiktok.com/browse/electronics",
        "num_of_products": 20
      }
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "url": "https://www.tiktok.com/view/product/1730000000000000000",
      "title": "Portable Bluetooth Speaker Waterproof",
      "price": 19.99,
      "currency": "USD",
      "rating": 4.5,
      "reviews_count": 870,
      "seller_name": "AudioShop",
      "seller_url": "https://www.tiktok.com/@audioshop",
      "description": "Compact waterproof Bluetooth speaker with 12-hour battery life.",
      "images": [
        "https://p16-oec-ttp.tiktokcdn-us.com/example-product-1.jpeg"
      ],
      "category": "Electronics > Audio > Speakers"
    }
  ]
  ```
</ResponseExample>
