Copilot スクレイパー
scraper.copilot を使うと、Microsoft Copilot が search / smart / chat / reasoning / study モードで返す Markdown テキストと引用をまとめて取得できます。
リクエスト例
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"
}
}'Body パラメーター
| パラメーター | 型 | 必須 | 説明 |
|---|---|---|---|
prompt | string | はい | Copilot へ送る prompt。 |
country | string | はい | 国・地域コード(JP/TW 非対応)。 |
mode | string | はい | search、smart、chat(Quick response)、reasoning(Think Deeper)、study(Study and learn)。 |
レスポンスフィールド
| フィールド | 型 | 説明 |
|---|---|---|
result_text | string | Copilot の Markdown 本文。 |
prompt | string | オリジナル prompt。 |
mode | string | 使用モード。 |
links | array | すべてのリンク。 |
citations | array | 引用データ。 |
citations.title | string | 引用コンテンツのタイトル。 |
citations.url | string | 引用コンテンツの URL。 |