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

  <Warning>
    必须设置为 `gd_lu702nij2f790tmv9h` 以收集**通过资料 URL 发现**数据。
  </Warning>
</ParamField>

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

<ParamField query="discover_by" type="string" default="profile_url">
  必须设置为 `profile_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="url" type="string" required>
      要从中发现帖子的 TikTok 资料的 URL。
    </ParamField>

    <ParamField body="num_of_posts" type="number">
      要收集的最近帖子数量。缺少值表示无限制。
    </ParamField>

    <ParamField body="start_date" type="string">
      `MM-DD-YYYY` 格式的开始日期筛选条件（应早于 `end_date`）。
    </ParamField>

    <ParamField body="end_date" type="string">
      `MM-DD-YYYY` 格式的结束日期筛选条件（应晚于 `start_date`）。
    </ParamField>

    <ParamField body="posts_to_not_include" type="string[]">
      要从结果中排除的帖子 ID。
    </ParamField>

    <ParamField body="what_to_collect" type="string">
      指定要从每个帖子中收集的数据。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {
        "url": "https://www.tiktok.com/@mrbeast",
        "num_of_posts": 10,
        "start_date": "01-01-2025",
        "end_date": "03-01-2025"
      }
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "post_id": "7553300000000000000",
      "description": "You won't believe what happened next #challenge",
      "create_time": "2025-01-20T18:00:00.000Z",
      "share_count": 120000,
      "collect_count": 45000,
      "comment_count": 32000,
      "play_count": 85000000,
      "video_duration": 120,
      "hashtags": [
        "#challenge"
      ],
      "video_url": "https://v16-webapp-prime.tiktok.com/video/example.mp4",
      "profile_username": "examplecreator",
      "profile_url": "https://www.tiktok.com/@examplecreator",
      "is_verified": true
    }
  ]
  ```
</ResponseExample>
