Copilot Scraper
使用 scraper.copilot 捕获 Microsoft Copilot 在搜索、聊天、推理和学习模式下生成的回答。该 actor 将返回 Markdown 格式的回答以及 Copilot 展示的所有引用来源。
请求示例
curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.copilot",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US",
"mode": "search"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'请求体参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送给 Copilot 的提示词。 |
country | string | 是 | 国家或地区代码。 |
mode | string | 是 | 运行模式:search、smart、chat(快速响应)、reasoning(深度思考)或 study(学习与研究)。 |
ads | boolean | 否 | 是否抓取广告数据。默认为 false。启用后,将在响应的 ads 字段中以对象数组形式返回可用的广告。 |
should_fetch_share_link | boolean | 否 | 获取分享链接。 |
should_fetch_html | boolean | 否 | 获取 HTML 内容。 |
响应字段
注意: 当启用
ads且ads数组中成功返回广告数据时,该次 API 调用将按基础费率的 2 倍计费。若启用ads但未返回广告数据,则不会触发 2 倍计费。
| 参数 | 类型 | 描述 |
|---|---|---|
result_text | string | Copilot 生成的 Markdown 正文。 |
prompt | string | 原始提示词。 |
mode | string | 使用的模式:search、smart、chat、reasoning 或 study。 |
links | array | Copilot 返回的所有出站链接。 |
citations | array | 从响应中提取的引用对象。 |
citations.title | string | 引用来源的标题。 |
citations.url | string | 引用来源的 URL。 |
ads | array | 当广告数据可用且启用 ads 时返回的广告对象数组。 |
ads.advertiser | string | 广告主名称。 |
ads.bing_ad_url | string | Bing 广告点击链接。 |
ads.description | string | 广告描述。 |
ads.display_url | string | 显示的广告 URL,例如 www.getyourguide.com。 |
ads.logo_url | string | 广告主 Logo URL。 |
ads.title | string | 广告标题。 |
ads.type | string | 广告类型,例如 text。 |
ads.url | string | 广告目标 URL。 |
share_url | string | 分享链接。 |
html | string | HTML 数据。 |