> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Bing Copilot API: 回答、出典、商品カード

> Microsoft Copilotに質問し、回答、引用したページ、商品カード、場所、画像、検索クエリを受け取ります。

`BING_COPILOT` は copilot.com の Copilot チャットに、ウェブ検索を常に有効にした状態で質問します。アカウントやログインは使いません。

| | |
| - | - |
| taskType | `BING_COPILOT` |
| エイリアス | `COPILOT` |
| 読むフィールド | `prompt`(なければ `query`) |
| クレジット | 1 |
| 国 | 任意、既定は `US`。 |

## リクエスト

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "taskType": "BING_COPILOT", "payload": { "prompt": "best CRM for a small team", "country": "US" } }'
```

## レスポンス

| フィールド | 型 | 説明 |
| - | - | - |
| `text` | string | 回答。 |
| `sources` | array | Copilotが引用したページ: `position`、`url`、`label`。 |
| `shoppingCards` | array | 商品カード。常に存在し、なければ空です。 |
| `map` | array | 場所: `position`、`name`、`placeId`、`location`、`layerLabel`。常に存在し、なければ空です。 |
| `searchQueries` | string\[] | Copilotが実行した検索。常に存在し、なければ空です。 |
| `images` | array | 画像カルーセル: `title`、`url`、`image`、`thumbnail`、`medium`、`source`、`image_width`、`image_height`。 |
| `videos` | array | 動画カルーセル: `title`、`url`、`medium`、`thumbnail`、`source`、`duration`。 |
| `markdown` | string | Markdownの回答。`include.markdown` のときのみ。 |
| `rawResponse` | array | ストリームイベント。`include.rawResponse` のときのみ。 |

ショッピングの質問ではページを引用せずに商品カードを返すことが多く、`sources: []` も正常な回答です。`shoppingCards` の各項目は `products` を持ち、商品の位置はすべてのカードを通して数えます。商品には Copilot の `review`(購入者の評価の要約とその出典ストア)、`prosAndCons`、`curationInfo` が残り、Copilot にない場合はそれぞれ `null` です。`images` では `url` が画像の掲載ページ、`image` が画像ファイルで、`videos` では `url` が視聴ページです。

例:

```json theme={"theme":"css-variables"}
{
  "text": "For a small team, HubSpot CRM and Pipedrive are easy to start with ...",
  "sources": [{ "position": 1, "url": "https://www.example.com/crm-guide", "label": "CRM guide for small teams" }],
  "shoppingCards": [],
  "map": [],
  "searchQueries": ["best CRM for small teams"]
}
```

`include.markdown` を指定すると、`markdown` には Copilot が表示した位置に画像カルーセルが `![title](image)` の行として、各動画がリンク付きのサムネイルとして入ります。

## includeフラグ

| フラグ | 効果 |
| - | - |
| `markdown` | `markdown` を追加します。 |
| `rawResponse` | `rawResponse` を追加します。 |
| `citationAnalysis` | 回答に対して[Citation Analysis](/ja/research/citation-analysis.md)を実行します。 |

`searchQueries`、`ads`、`shopping` は効果がありません。`analysis` は `422 VALIDATION_ERROR` で、`html` は `422 EVIDENCE_UNSUPPORTED` で拒否されます。[Markdownと生のレスポンス](/ja/engines/response-options.md)を参照してください。

## 関連ページ

* [Bing Copilot製品ページ](https://querying.ai/ja/engines/bing-copilot)
* [Bing検索](/ja/engines/bing-search.md)
* [エンジンの概要](/ja/engines/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.