Trình quét Copilot
scraper.copilot cho phép bạn ghi lại phản hồi Microsoft Copilot ở các chế độ search, smart, chat, reasoning và study. Actor trả về văn bản Markdown đầy đủ cùng toàn bộ trích dẫn mà Copilot hiển thị.
Ví dụ yêu cầu
curl '{api_host}/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"
}
}'Tham số body
| Tham số | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
prompt | string | Có | Prompt gửi tới Copilot. |
country | string | Có | Mã quốc gia/khu vực (không hỗ trợ JP, TW). |
mode | string | Có | search, smart, chat (Quick response), reasoning (Think Deeper), study (Study and learn). |
Trường phản hồi
| Trường | Kiểu | Mô tả |
|---|---|---|
result_text | string | Văn bản Markdown Copilot tạo ra. |
prompt | string | Prompt gốc. |
mode | string | Chế độ đã dùng (search, smart, chat, reasoning, study). |
links | array | Tất cả liên kết xuất hiện. |
citations | array | Dữ liệu trích dẫn. |
citations.title | string | Tiêu đề nội dung được trích dẫn. |
citations.url | string | URL nội dung được trích dẫn. |