> ## 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: 바이두 검색 결과 상단의 AI 답변

> 중국 본토에서 바이두를 검색해 결과 상단의 AI 답변과 인용 페이지, 그리고 결과 페이지의 나머지 블록을 받습니다.

`BAIDU_AI_SEARCH`는 바이두(baidu.com)를 검색해 결과 페이지 상단의 AI 답변 카드(百度AI+)와 답변이 인용한 페이지, 그리고 같은 페이지의 검색 결과, 광고, 관련 검색어, 뉴스, 동영상, 상품, 이미지, 장소, 바이두의 다른 카드를 돌려줍니다. 계정이나 로그인은 쓰지 않습니다.

| | |
| - | - |
| 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 | 바이두가 보여 준 AI 카드입니다. `general`이나 `health`(百度健康)이고, 결과 페이지에 AI 답변이 없으면 `null`입니다. |
| `text` | string | 답변입니다. `card`가 `null`이면 비어 있습니다. |
| `markdown` | string | Markdown 답변입니다. `[2]` 같은 인용 번호가 `sources`와 맞습니다. 플래그 없이 받습니다. |
| `sources` | array | 답변이 인용한 페이지입니다. `position`, `url`, `label`, `source`(사이트 이름), 바이두가 줄 때 `publishedAt`이 담깁니다. 건강 카드에는 없습니다. |
| `reviewedBy` | string | 건강 카드에서 바이두가 밝힌 감수자입니다. |
| `searchQueries` | array | 페이지가 열린 뒤 생성되는 답변에서 바이두가 실행한 검색어입니다. |
| `organicResults` | array | 페이지 하나로 이어지는 검색 결과를 페이지 순서대로 담습니다. `position`, `title`, `link`, `snippet`, `date`, `source`(바이두가 표시한 사이트나 작성자), `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`(바이두 이미지 페이지), `image`, `thumbnail`, `width`, `height`가 담깁니다. |
| `map` | array | 百度地图 카드의 장소입니다. `position`, `name`, `placeId`, `location.address`, `phoneNumber`, `category`, `openState`, `reviews`, `mapsUrl`, `image`가 담깁니다. 목록 카드는 검색한 도시의 장소를 보여 주며, 도시는 태스크마다 달라집니다. |
| `otherCards` | array | 브랜드·인물·의약품 패널, 시세, 날씨처럼 페이지의 나머지 카드 전부입니다. `position`, `type`(바이두의 템플릿 이름), `column`(`main`이나 `right`), `title`, `link`, `text`(카드에 보이는 내용)가 담깁니다. |
| `rawResponse` | object | 카드의 원본 데이터입니다. 페이지가 열린 뒤 생성되는 답변은 스트림 이벤트도 담깁니다. `include.rawResponse`일 때만 받습니다. |

모든 태스크는 AI 카드 유무와 관계없이 결과 페이지를 돌려주고, 결과 페이지 필드는 페이지에 그 블록이 있을 때 담깁니다. AI 카드는 같은 검색어에서도 요청에 따라 달라지고, 카드가 없는 검색어는 `card: null`로 완료합니다. 페이지가 열린 뒤 생성되는 답변도 다른 카드처럼 출처, 바이두가 실행한 검색어와 함께 받습니다.

예시:

```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/ko/engines/response-options.md)을 참고하세요.

## 관련 문서

* [Baidu AI Search 제품 페이지](https://querying.ai/ko/engines/baidu-ai-search)
* [Baidu Wenxin](https://docs.querying.ai/ko/engines/baidu-wenxin.md)
* [엔진 개요](https://docs.querying.ai/ko/engines/overview.md)


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