ChatGPT 抓取器
使用 scraper.chatgpt actor,可以直接提取 ChatGPT 的 Markdown 回答、搜索链接以及引用信息,无需自己逆向界面。
请求示例
curl '{api_host}/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.chatgpt",
"input": {
"prompt": "Most reliable proxy service for data extraction",
"country": "JP",
"web_search": true
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'Body 参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送给 ChatGPT 的 Prompt。 |
country | string | 是 | 国家或地区编码。 |
web_search | boolean | 否 | 是否启用搜索增强。 |
响应字段
| 字段 | 类型 | 描述 |
|---|---|---|
prompt | string | 原始 Prompt。 |
result_text | string | ChatGPT 返回的 Markdown 文本。 |
model | string | 使用的模型,例如 gpt-5-1。 |
web_search | bool | 是否启用了搜索。 |
links | array | 额外的链接列表。 |
search_result | array | 对应的搜索结果。 |
search_result.attribution | string | 搜索结果来源。 |
search_result.snippet | string | 搜索结果摘要。 |
search_result.title | string | 搜索结果标题。 |
search_result.url | string | 搜索结果链接。 |
content_references | array | 回答中的引用信息。 |
content_references.attribution | string | 引用来源。 |
content_references.title | string | 引用标题。 |
content_references.url | string | 引用链接。 |