> ## 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_lkf2st302ap89utw5k" required>
  用于此请求的数据集 ID。

  <Warning>
    必须设置为 `gd_lkf2st302ap89utw5k` 以收集**按 URL 的评论**数据。
  </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>
      要从中收集评论的 TikTok 帖子的 URL。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {"url": "https://www.tiktok.com/@mrbeast/video/7553300000000000000"}
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "post_url": "https://www.tiktok.com/@examplecreator/video/7553300000000000000",
      "post_id": "7553300000000000000",
      "post_date_created": "2025-01-15T14:30:00.000Z",
      "date_created": "2025-01-15T16:45:00.000Z",
      "comment_text": "This is amazing content!",
      "num_likes": 1250,
      "num_replies": 15,
      "comment_id": "7553400000000000000",
      "comment_url": "https://www.tiktok.com/@examplecreator/video/7553300000000000000?comment=7553400000000000000",
      "commenter_user_name": "viewer123",
      "commenter_id": "456789012",
      "commenter_url": "https://www.tiktok.com/@viewer123"
    }
  ]
  ```
</ResponseExample>
