查询参数
string
默认值:"gd_m7aof0k82r803d5bjm"
必填
用于此请求的数据集 ID。
必须设置为
gd_m7aof0k82r803d5bjm 以收集 ChatGPT 搜索 - 按提示搜索数据。boolean
默认值:false
请求完成时是否发送通知。
boolean
默认值:true
是否在响应中包含错误。
请求体
object[]
必填
输入对象数组。
显示 properties
显示 properties
string
必填
ChatGPT 页面 URL。必须设置为
https://chatgpt.com/。string
必填
搜索提示。每个提示触发一个单独的 ChatGPT 搜索查询。最大 4,096 个字符。
string
执行搜索的国家/地区。
number
用于跟踪每��抓取请求的唯一 ID。
boolean
如果设置为
true 且页面中未找到源,则返回错误消息而不是记录。string
在收到第一个答案后发送的后续输入,旨在澄清、扩展或完善初始响应。结果以
additional_answer_text 形式返回。boolean
如果设置为
true(默认),将自动点击网络搜索按钮。如果为 false,则不会点击该按钮。示例
{
"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?"}
]
}
[
{
"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
}
]