> ## 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.

# Doubao API: ByteDanceの中国向けウェブチャットの回答と検索結果

> ByteDanceの中国向けウェブチャットDoubaoに質問し、回答、読んだ検索結果、検索クエリを受け取ります。

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

| | |
| - | - |
| taskType | `DOUBAO` |
| 読むフィールド | `prompt`(なければ `query`) |
| クレジット | 1.25 |
| 国 | **無視されます。** すべてのタスクが中国本土から質問します。 |

## リクエスト

Doubao は中国本土からのゲストにしか回答しないため、すべてのタスクは中国本土の出口から送信され、`country` では変わりません。省略してかまいません。

```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": "DOUBAO", "payload": { "prompt": "Which electric car brands are most reliable? Answer in English." } }'
```

## レスポンス

| フィールド | 型 | 説明 |
| - | - | - |
| `text` | string | 回答。 |
| `markdown` | string | Markdownの回答。フラグなしで返ります。 |
| `searchQueries` | string\[] | Doubaoが実行した検索。 |
| `sources` | array | Doubaoが読んだ検索結果: `position`、`url`、`label`、`type`(`web` または `video`)。 |
| `images` | array | 回答とともに表示された画像(ある場合)。 |
| `videos` | array | 回答とともに表示された動画: `title`、`url`、`medium`、`image`、`thumbnail`、`image_width`、`image_height`。 |
| `rawResponse` | array | ストリームイベント。`include.rawResponse` のときのみ。 |

出典の多くは Douyin の動画ページです。回答本文に引用マークはありません。`sources` は Doubao が引用したものではなく、読んだものの一覧です。

例:

```json theme={"theme":"css-variables"}
{
  "text": "Brands often rated most reliable include ...",
  "markdown": "Brands often rated most reliable include ...",
  "searchQueries": ["most reliable electric car brands"],
  "sources": [{ "position": 1, "url": "https://www.example.com/ev-reliability", "label": "EV reliability rankings", "type": "web" }]
}
```

## includeフラグ

| フラグ | 効果 |
| - | - |
| `rawResponse` | `rawResponse` を追加します。 |

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

## 関連ページ

* [Doubao製品ページ](https://querying.ai/ja/engines/doubao)
* [Qwen](/ja/engines/qwen.md)
* [エンジンの概要](/ja/engines/overview.md)


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