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 パラメーター

パラメーター必須説明
promptstringはいCopilot へ送る prompt。
countrystringはい国・地域コード(JP/TW 非対応)。
modestringはいsearchsmartchat(Quick response)、reasoning(Think Deeper)、study(Study and learn)。

レスポンスフィールド

フィールド説明
result_textstringCopilot の Markdown 本文。
promptstringオリジナル prompt。
modestring使用モード。
linksarrayすべてのリンク。
citationsarray引用データ。
citations.titlestring引用コンテンツのタイトル。
citations.urlstring引用コンテンツの URL。