Prerequisites
- A Bright Data account with an active API key
- Completed the Quickstart
请求结构
每个同步请求都遵循相同的模式:url 字段始终为 https://chatgpt.com/。prompt 字段包含您的搜索查询。
同步请求最多支持 20 个输入,超时时间为 1 分钟。如果请求耗时较长,API 将自动返回
snapshot_id。请参阅异步请求。ChatGPT 搜索
Dataset ID:gd_m7aof0k82r803d5bjm
基本搜索
发送提示并获取带有引用的结构化答案:200 响应。这需要 15-45 秒。
Example response
Example response
国家定向搜索
使用country 字段获取特定位置的结果:
Example response
Example response
后续提示搜索
使用additional_prompt 字段在同一会话中提出后续问题:
Example response
Example response
快速参考:数据集 ID
输入字段
输出格式
使用format 查询参数控制响应格式:
相关内容
异步批处理请求
在单个批处理作业中使用数百个提示搜索 ChatGPT。
API 参考
完整的参数和响应字段参考。