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

  <Warning>
    必须设置为 `gd_lvz8ah06191smkebj4` 以收集**按关键词发现**数据。
  </Warning>
</ParamField>

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

<ParamField query="discover_by" type="string" default="keyword">
  必须设置为 `keyword`。
</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="属性">
    <ParamField body="keyword" type="string" required>
      用于查找相关帖子的搜索词。
    </ParamField>

    <ParamField body="date" type="string" required>
      应用于搜索的日期过滤器。

      可选值：`Past hour`、`Past day`、`Past week`、`Past month`、`Past year`、`All time`
    </ParamField>

    <ParamField body="num_of_posts" type="number">
      要收集的帖子数量。省略此参数将检索所有匹配的帖子。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {"keyword": "machine learning", "date": "Past week", "num_of_posts": 100},
      {"keyword": "python tips", "date": "Past month", "num_of_posts": 50}
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "post_id": "1bsdf34",
      "url": "https://www.reddit.com/r/MachineLearning/comments/1bsdf34/",
      "user_posted": "ml_researcher",
      "title": "New paper on transformer efficiency",
      "description": "Sharing a recent paper...",
      "num_upvotes": 842,
      "num_comments": 54,
      "date_posted": "2026-04-03T09:14:00Z",
      "tag": "Research",
      "community_name": "MachineLearning",
      "community_url": "https://www.reddit.com/r/MachineLearning",
      "community_description": "Beginners to experts.",
      "community_members_num": 2900000,
      "community_rank": null,
      "related_posts": [],
      "comments": [],
      "photos": [],
      "videos": []
    }
  ]
  ```
</ResponseExample>
