Baidu AI Search API for Answers & Sources

Scrape Baidu's AI answer in China with its sources and the full results page, as JSON. See how China's largest search engine presents your brand.

Baidu AI Searchbaidu.com
Baidu results for the best noise-cancelling earbud brands, with the AI answer summarizing 8 pages below two ads.
API responseCompleted
Country
CN
Credits
1.25
Sources
8
{
  "task": {
    "taskType": "BAIDU_AI_SEARCH"
  },
  "response": {
    "card": "general",
    "text": "索尼、Bose、苹果是降噪耳机第一梯队品牌,华为、小米、漫步者等在中端价位性价比突出。\n\n高端旗舰品牌\n\n1. 索尼:WH-1000XM 系列降噪技术顶尖,适合音质发烧友,支持 LDAC 高清传输。\n\n2. Bose:QC 系列降噪深厚,专利行业领先,适合商旅通勤族,耳压控制柔和。\n\n3. 苹果:AirPods Pro/Max 系列与苹果生态联动完整,降噪体验出众,适合苹果设备用户。\n\n中端性价比品牌\n\n1. 华为:FreeBuds 系列多设备协同降噪好,鸿蒙生态用户首选,通话收音清晰。\n\n2. 小米/红米:Buds 系列硬件堆料足,深空降噪技术成熟,小米生态内功能完整。\n\n3. 漫步者/声阔:W800NB 等型号续航长、基础降噪够用,不绑定特定手机品牌。\n\n选购建议\n\n- 头戴式适合长时间佩戴,入耳式便携性更好。\n- 预算充足选索尼/Bose/苹果旗舰,日常通勤选中端品牌即可。\n- 同品牌手机搭配同品牌耳机可解锁完整生态功能。",
    "sources": [
      {
        "url": "https://baijiahao.baidu.com/s?id=1879822093449478141&wfr=spider&for=pc",
        "label": "什么是降噪耳机?哪个牌子好?最值得买的十款降噪蓝牙耳机推荐",
        "source": "Geeks小树",
        "position": 1,
        "publishedAt": "2026-10-23T06:47:30.000Z"
      },
      {
        "url": "https://www.pcmag.com/picks/the-best-noise-cancelling-headphones?test_uuid=03iF1uOjHbmoZSTXr58OMhT",
        "label": "我们为2026年测试过的最佳降噪耳机 | PCMag",
        "source": "PCMag",
        "position": 2
      },
      {
        "url": "http://baike.baidu.com/item/%E7%B4%A2%E5%B0%BCWH-1000XM5/60839677",
        "label": "索尼WH-1000XM5",
        "source": "百度百科",
        "position": 3,
        "publishedAt": "2026-05-11T07:34:19.000Z"
      },
      {
        "url": "https://www.pcmag.com/picks/the-best-headphones?__cf_chl_rt_tk=JxTpgRwX0GkILUvhsGzWrgndz_M.6uvWSOyDNRd9_X8-1779987313-1.0.1.1-TIA_cAtqSLUXcHMwQ0iWUtyKUQuB8Xwk1vpPzb3JMqI",
        "label": "我们测试过的2026年最佳耳机 | PCMag",
        "source": "PCMag",
        "position": 4
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1879555702210003550&wfr=spider&for=pc",
        "label": "入耳式蓝牙耳机哪个品牌音质好?降噪蓝牙耳机排行榜10强推荐",
        "source": "老胡",
        "position": 5,
        "publishedAt": "2026-10-20T08:13:19.000Z"
      },
      {
        "url": "https://www.rtings.com/headphones/reviews/best/by-feature/noise-cancelling",
        "label": "2026年5款最佳降噪耳机 - RTINGS.com",
        "source": "RTINGS.com",
        "position": 6
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1880369310732205575&wfr=spider&for=pc",
        "label": "降噪头戴式耳机什么品牌好?10款降噪头戴式耳机性价比之王推荐",
        "source": "铁血蓝色科技",
        "position": 7,
        "publishedAt": "2026-10-29T07:45:17.000Z"
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1872795150584017668&wfr=spider&for=pc",
        "label": "入耳式蓝牙耳机哪个牌子好?入耳式蓝牙耳机推荐性价比高2026",
        "source": "可爱的春雷王",
        "position": 8,
        "publishedAt": "2026-08-06T17:17:15.000Z"
      }
    ],
    "markdown": "**索尼、Bose、苹果是降噪耳机第一梯队品牌**,华为、小米、漫步者等在中端价位性价比突出。[1][2]\n\n## 高端旗舰品牌\n\n1. **索尼**:WH-1000XM 系列降噪技术顶尖,适合音质发烧友,支持 LDAC 高清传输。\n\n2. **Bose**:QC 系列降噪深厚,专利行业领先,适合商旅通勤族,耳压控制柔和。\n\n3. **苹果**:AirPods Pro/Max 系列与苹果生态联动完整,降噪体验出众,适合苹果设备用户。[3][4][5]\n\n## 中端性价比品牌\n\n1. **华为**:FreeBuds 系列多设备协同降噪好,鸿蒙生态用户首选,通话收音清晰。\n\n2. **小米/红米**:Buds 系列硬件堆料足,深空降噪技术成熟,小米生态内功能完整。\n\n3. **漫步者/声阔**:W800NB 等型号续航长、基础降噪够用,不绑定特定手机品牌。[1][5]\n\n## 选购建议\n\n- 头戴式适合长时间佩戴,入耳式便携性更好。\n- 预算充足选索尼/Bose/苹果旗舰,日常通勤选中端品牌即可。\n- 同品牌手机搭配同品牌耳机可解锁完整生态功能。[1][5]",
    "durationMs": 6589
  }
}
See every response field
Task type
BAIDU_AI_SEARCH
Input
payload.query
Price
1.25 credits per request
Delivery
Webhook or polling

Response structure

The response carries the card type, the AI answer in Markdown, the pages it cites and the rest of the results page: organic results, ads, related searches, news, videos, products, images, places and Baidu's other cards. When Baidu shows no AI card for the query, card is null and the results page still arrives.

  • cardwhich AI card Baidu showed, general or health, and null when the results page had none.
  • text, markdownthe AI answer, in Markdown, with citation numbers that match sources.
  • sourcesthe pages the answer cites, with title, site and position. Health cards carry reviewedBy instead.
  • organicResults, ads, relatedSearchesthe ranked results, the paid results with their landing pages and Baidu's related searches.
  • contentResults, shoppingResults, images, mapthe news, videos, notes, products, image grid and places on the same page.
  • otherCardsevery other card on the page, such as brand panels, quotes and weather, with the text it shows.
COMPLETEDBAIDU_AI_SEARCH
{
  "task": {
    "taskType": "BAIDU_AI_SEARCH"
  },
  "response": {
    "card": "general",
    "text": "索尼、Bose、苹果是降噪耳机第一梯队品牌,华为、小米、漫步者等在中端价位性价比突出。\n\n高端旗舰品牌\n\n1. 索尼:WH-1000XM 系列降噪技术顶尖,适合音质发烧友,支持 LDAC 高清传输。\n\n2. Bose:QC 系列降噪深厚,专利行业领先,适合商旅通勤族,耳压控制柔和。\n\n3. 苹果:AirPods Pro/Max 系列与苹果生态联动完整,降噪体验出众,适合苹果设备用户。\n\n中端性价比品牌\n\n1. 华为:FreeBuds 系列多设备协同降噪好,鸿蒙生态用户首选,通话收音清晰。\n\n2. 小米/红米:Buds 系列硬件堆料足,深空降噪技术成熟,小米生态内功能完整。\n\n3. 漫步者/声阔:W800NB 等型号续航长、基础降噪够用,不绑定特定手机品牌。\n\n选购建议\n\n- 头戴式适合长时间佩戴,入耳式便携性更好。\n- 预算充足选索尼/Bose/苹果旗舰,日常通勤选中端品牌即可。\n- 同品牌手机搭配同品牌耳机可解锁完整生态功能。",
    "sources": [
      {
        "url": "https://baijiahao.baidu.com/s?id=1879822093449478141&wfr=spider&for=pc",
        "label": "什么是降噪耳机?哪个牌子好?最值得买的十款降噪蓝牙耳机推荐",
        "source": "Geeks小树",
        "position": 1,
        "publishedAt": "2026-10-23T06:47:30.000Z"
      },
      {
        "url": "https://www.pcmag.com/picks/the-best-noise-cancelling-headphones?test_uuid=03iF1uOjHbmoZSTXr58OMhT",
        "label": "我们为2026年测试过的最佳降噪耳机 | PCMag",
        "source": "PCMag",
        "position": 2
      },
      {
        "url": "http://baike.baidu.com/item/%E7%B4%A2%E5%B0%BCWH-1000XM5/60839677",
        "label": "索尼WH-1000XM5",
        "source": "百度百科",
        "position": 3,
        "publishedAt": "2026-05-11T07:34:19.000Z"
      },
      {
        "url": "https://www.pcmag.com/picks/the-best-headphones?__cf_chl_rt_tk=JxTpgRwX0GkILUvhsGzWrgndz_M.6uvWSOyDNRd9_X8-1779987313-1.0.1.1-TIA_cAtqSLUXcHMwQ0iWUtyKUQuB8Xwk1vpPzb3JMqI",
        "label": "我们测试过的2026年最佳耳机 | PCMag",
        "source": "PCMag",
        "position": 4
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1879555702210003550&wfr=spider&for=pc",
        "label": "入耳式蓝牙耳机哪个品牌音质好?降噪蓝牙耳机排行榜10强推荐",
        "source": "老胡",
        "position": 5,
        "publishedAt": "2026-10-20T08:13:19.000Z"
      },
      {
        "url": "https://www.rtings.com/headphones/reviews/best/by-feature/noise-cancelling",
        "label": "2026年5款最佳降噪耳机 - RTINGS.com",
        "source": "RTINGS.com",
        "position": 6
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1880369310732205575&wfr=spider&for=pc",
        "label": "降噪头戴式耳机什么品牌好?10款降噪头戴式耳机性价比之王推荐",
        "source": "铁血蓝色科技",
        "position": 7,
        "publishedAt": "2026-10-29T07:45:17.000Z"
      },
      {
        "url": "https://baijiahao.baidu.com/s?id=1872795150584017668&wfr=spider&for=pc",
        "label": "入耳式蓝牙耳机哪个牌子好?入耳式蓝牙耳机推荐性价比高2026",
        "source": "可爱的春雷王",
        "position": 8,
        "publishedAt": "2026-08-06T17:17:15.000Z"
      }
    ],
    "markdown": "**索尼、Bose、苹果是降噪耳机第一梯队品牌**,华为、小米、漫步者等在中端价位性价比突出。[1][2]\n\n## 高端旗舰品牌\n\n1. **索尼**:WH-1000XM 系列降噪技术顶尖,适合音质发烧友,支持 LDAC 高清传输。\n\n2. **Bose**:QC 系列降噪深厚,专利行业领先,适合商旅通勤族,耳压控制柔和。\n\n3. **苹果**:AirPods Pro/Max 系列与苹果生态联动完整,降噪体验出众,适合苹果设备用户。[3][4][5]\n\n## 中端性价比品牌\n\n1. **华为**:FreeBuds 系列多设备协同降噪好,鸿蒙生态用户首选,通话收音清晰。\n\n2. **小米/红米**:Buds 系列硬件堆料足,深空降噪技术成熟,小米生态内功能完整。\n\n3. **漫步者/声阔**:W800NB 等型号续航长、基础降噪够用,不绑定特定手机品牌。[1][5]\n\n## 选购建议\n\n- 头戴式适合长时间佩戴,入耳式便携性更好。\n- 预算充足选索尼/Bose/苹果旗舰,日常通勤选中端品牌即可。\n- 同品牌手机搭配同品牌耳机可解锁完整生态功能。[1][5]",
    "durationMs": 6589
  }
}

Track brand mentions and citations in Baidu AI Search

Search the queries Chinese shoppers type into Baidu, in Chinese, to see which brands its AI answer names and which pages it cites. Send the same questions to Baidu Wenxin, Doubao and Qwen to compare search and chat in China.

Step 1

How to collect Baidu AI Search answers with the API

Store your API key in the server environment variable QUERYING_API_KEY and submit a query. Baidu AI Search reads Baidu from mainland China, so the example sends only the query, in the language you write it in.

cURL
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": "best wireless earbuds for commuting"
  }
}'
Step 2

Read the completed response

Replace TASK_ID with task.id from the submission. Poll at intervals while QUEUED or PROCESSING; when COMPLETED, read the engine fields inside response. Handle FAILED as an error. Retrieve and store the result within 24 hours of completion, or receive it by webhook.

cURL
curl https://api.querying.ai/v1/async/task/TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

Cost and availability

Only completed tasks are charged, at 1.25 credits each. Check supported regions and plan concurrency.

View pricing →
Request cost by plan
Plan1,000 requests
Basic≈ $3.13
Max≈ $1.25

Effective rates assume all included monthly credits are used.

Reading the results

Each task reads Baidu's results page from mainland China, the page a new visitor there gets. The AI card depends on the query and changes between requests, so compare several runs. A Baidu Maps list shows places in the city the search ran from.

Explore related capabilities

Start with 500 free credits

Run your first task in the Playground, or call the API with your key.