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

# Baidu AI Search API: Baidu検索結果の上部に出るAI回答

> 中国本土からBaiduを検索し、結果の上部に出るAI回答と引用ページ、そして結果ページの残りのブロックを受け取ります。

`BAIDU_AI_SEARCH` はBaidu（baidu.com）を検索し、結果ページ上部のAI回答カード（百度AI+）と回答が引用したページに加え、同じページの検索結果、広告、関連検索、ニュース、動画、商品、画像、地点、Baiduのその他のカードを返します。アカウントやログインは使いません。

| | |
| - | - |
| taskType | `BAIDU_AI_SEARCH` |
| 読むフィールド | `query`（なければ `prompt`） |
| クレジット | 1.25 |
| 国 | **無視されます。** すべてのタスクを中国本土から検索します。 |

## リクエスト

すべてのタスクは中国本土の出口から結果ページを読むため、`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": "BAIDU_AI_SEARCH", "payload": { "query": "降噪耳机哪个牌子好" } }'
```

## レスポンス

| フィールド | 型 | 説明 |
| - | - | - |
| `card` | string または null | Baiduが表示したAIカード。`general` または `health`（百度健康）。結果ページにAI回答がなければ `null`。 |
| `text` | string | 回答。`card` が `null` なら空です。 |
| `markdown` | string | Markdown の回答。`[2]` のような引用番号が `sources` と対応します。フラグなしで返ります。 |
| `sources` | array | 回答が引用したページ：`position`、`url`、`label`、`source`（サイト名）、Baiduが示す場合は `publishedAt`。健康カードにはありません。 |
| `reviewedBy` | string | 健康カードでBaiduが示す監修者。 |
| `searchQueries` | array | ページの読み込み後に生成される回答で、Baiduが実行した検索語。 |
| `organicResults` | array | 1つのページにつながる検索結果をページ順に：`position`、`title`、`link`、`snippet`、`date`、`source`（Baiduが示すサイトや著者）、`page`。百度百科、贴吧、文库、爱企查の項目も含みます。 |
| `ads` | array | 広告：`position`、`title`、`link`（ランディングページ）、`displayedLink`、`description`、`blockPosition`（結果の上なら `top`、下なら `bottom`）。 |
| `relatedSearches` | array | 大家还在搜と相关搜索を重複なしで：`query`、`link`。 |
| `contentResults` | array | ニュース、動画、精选笔记のノートをページ順に：`position`、`type`（`news`、`video`、`note`）、`title`、`link`、`snippet`、`source`、`date`、`thumbnail`。 |
| `shoppingResults` | array | 商品カードの商品：`position`、`title`、`link`（販売店のページ）、`price`（人民元）、`mallName`、`sales`、`thumbnail`。 |
| `images` | array | 百度图片のグリッド：`position`、`link`（Baidu画像のページ）、`image`、`thumbnail`、`width`、`height`。 |
| `map` | array | 百度地图カードの地点：`position`、`name`、`placeId`、`location.address`、`phoneNumber`、`category`、`openState`、`reviews`、`mapsUrl`、`image`。一覧カードは検索した都市の地点を示し、都市はタスクごとに変わります。 |
| `otherCards` | array | ブランド・人物・医薬品のパネル、相場、天気など、ページのその他すべてのカード：`position`、`type`（Baiduのテンプレート名）、`column`（`main` または `right`）、`title`、`link`、`text`（カードに表示される内容）。 |
| `rawResponse` | object | カードの元データ。ページの読み込み後に生成される回答ではストリームのイベントも含みます。`include.rawResponse` のときだけ返ります。 |

すべてのタスクはAIカードの有無にかかわらず結果ページを返し、結果ページの各フィールドはページにそのブロックがあるときに含まれます。AIカードは同じクエリでもリクエストによって変わり、カードのないクエリは `card: null` で完了します。ページの読み込み後に生成される回答も、ほかのカードと同じく引用元とBaiduが実行した検索語とともに返ります。

例:

```json theme={"theme":"css-variables"}
{
  "card": "general",
  "text": "索尼、Bose、苹果是降噪耳机第一梯队品牌 ...",
  "markdown": "**索尼、Bose、苹果是降噪耳机第一梯队品牌** ... [1][2]",
  "sources": [{ "position": 1, "url": "https://baijiahao.baidu.com/s?id=1879822093449478141", "label": "最值得买的十款降噪蓝牙耳机推荐", "source": "Geeks小树" }],
  "organicResults": [{ "position": 1, "title": "降噪耳机哪个牌子好?深度解析这6款口碑佳、音质优的热门型号", "link": "https://baijiahao.baidu.com/s?id=1879807124356797809&wfr=spider&for=pc", "date": "2026年10月23日", "source": "晓雪购物笔记", "page": 1 }],
  "relatedSearches": [{ "query": "适合老年人的耳机", "link": "https://www.baidu.com/s?ie=utf-8&wd=%E9%80%82%E5%90%88%E8%80%81%E5%B9%B4%E4%BA%BA%E7%9A%84%E8%80%B3%E6%9C%BA" }]
}
```

## includeフラグ

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

`markdown` にフラグは不要です。[Markdownと生のレスポンス](https://docs.querying.ai/ja/engines/response-options.md)を参照してください。

## 関連ページ

* [Baidu AI Search製品ページ](https://querying.ai/ja/engines/baidu-ai-search)
* [Baidu Wenxin](https://docs.querying.ai/ja/engines/baidu-wenxin.md)
* [エンジンの概要](https://docs.querying.ai/ja/engines/overview.md)


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