> ## 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: 바이트댄스 중국 웹 채팅의 답변과 검색 결과

> 바이트댄스의 중국 웹 채팅 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과 원본 응답](/ko/engines/response-options.md)을 참고하세요.

## 관련 문서

* [Doubao 제품 페이지](https://querying.ai/ko/engines/doubao)
* [Qwen](/ko/engines/qwen.md)
* [엔진 개요](/ko/engines/overview.md)


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