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

  <Warning>
    必须设置为 `gd_m7aof0k82r803d5bjm` 以收集 **ChatGPT 搜索 - 按提示搜索**数据。
  </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>
      ChatGPT 页面 URL。必须设置为 `https://chatgpt.com/`。
    </ParamField>

    <ParamField body="prompt" type="string" required>
      搜索提示。每个提示触发一个单独的 ChatGPT 搜索查询。最大 4,096 个字符。
    </ParamField>

    <ParamField body="country" type="string">
      执行搜索的国家/地区。
    </ParamField>

    <ParamField body="index" type="number">
      用于跟踪每��抓取请求的唯一 ID。
    </ParamField>

    <ParamField body="require_sources" type="boolean">
      如果设置为 `true` 且页面中未找到源，则返回错误消息而不是记录。
    </ParamField>

    <ParamField body="additional_prompt" type="string">
      在收到第一个答案后发送的后续输入，旨在澄清、扩展或完善初始响应。结果以 `additional_answer_text` 形式返回。
    </ParamField>

    <ParamField body="web_search" type="boolean">
      如果设置为 `true`（默认），将自动点击网络搜索按钮。如果为 `false`，则不会点击该按钮。
    </ParamField>
  </Expandable>

  #### 示例

  ```json wrap theme={null}
  {
    "input": [
      {"url": "https://chatgpt.com/", "prompt": "Top hotels in New York", "country": "us", "web_search": true},
      {"url": "https://chatgpt.com/", "prompt": "What are the biggest business trends to watch in the next five years?"}
    ]
  }
  ```
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "url": "https://chatgpt.com/?q=Top%20hotels%20in%20New%20York",
      "prompt": "Top hotels in New York",
      "answer_text": "Here are some of the top-rated hotels in New York City...",
      "answer_text_markdown": "## Top Hotels in New York City\n\n1. **The Plaza** - Iconic luxury...",
      "answer_html": "<div>...</div>",
      "model": "gpt-4o",
      "web_search_triggered": true,
      "citations": [
        {
          "title": "Best Hotels in NYC 2024",
          "url": "https://www.travelandleisure.com/best-hotels-nyc",
          "position": 1
        }
      ],
      "search_sources": [
        {
          "url": "https://www.travelandleisure.com/best-hotels-nyc",
          "title": "Best Hotels in NYC",
          "favicon": "https://www.travelandleisure.com/favicon.ico"
        }
      ],
      "links_attached": [
        {
          "url": "https://www.theplazany.com",
          "text": "The Plaza",
          "position": 0
        }
      ],
      "recommendations": [],
      "references": [],
      "country": "us",
      "is_map": true,
      "shopping_visible": false,
      "prompt_sent_at": "2024-12-15T10:30:00.000Z",
      "index": null
    }
  ]
  ```
</ResponseExample>
