# Baidu search results

GET/v1/serp/baidu/search

Organic results, ads and related searches, with Baidu's own blocks listed separately. Takes about 14-47 s.

## Price

- Price: $0.0009 per call
- Nothing found: Charged even when nothing is found
- No data fetched: Not charged

Each call holds this price, charges it only when data is returned and releases it otherwise. This rule is for data endpoints only: when collecting AI answers, a no-answer or refused result is still a result and is charged.

## Parameters

`query` string Required

The search query. Up to 500 characters.

## Headers

`Authorization` Required

Bearer followed by your API key.

`Idempotency-Key` Recommended

An ID you choose, up to 255 characters with no spaces. After a network error, resend with the same value and nothing is run or charged twice. It is remembered for 24 hours. The same value with different parameters returns idempotency_conflict.

`X-Max-Price` Optional

The most you are willing to spend in US dollars, such as 0.50. If the request could cost more, it is refused: nothing runs and nothing is charged.

`X-Source` Optional

Your own label, such as the product the call came from, up to 100 characters. Usage can be broken down by it.

`X-End-User` Optional

Your own label for the end user this call serves, up to 100 characters. Do not put names, emails or other personal data in it.

## Response

A successful call returns HTTP 200 with the data in `data.item`, one `SearchPage` object. Every field is always present: `[]` means none this time and `null` means not available or unknown. What the call cost is in `meta.billing`.

| Field | Type | Description |
| --- | --- | --- |
| `results` | `SearchResult[]` | Organic results |
| `features` | `Feature[]` | The search engine’s own blocks, which take no organic position |
| `ads` | `Ad[] \| null` | Ads |
| `related_searches` | `string[] \| null` | Related searches |
| `people_also_ask` | `string[] \| null` | People also ask |
| `videos` | `Video[] \| null` | Video results |
| `products` | `Product[] \| null` | Product results |
| `ai_summary` | `{ text: string, citations: Citation[] } \| null` | The AI summary on the page, with its sources |

### Nested objects

**SearchResult 6 fields**

| Field | Type | Description |
| --- | --- | --- |
| `position` | `integer` | Position in the list, starting at 1 |
| `title` | `string \| null` | Title |
| `url` | `string` | URL |
| `domain` | `string` | Domain |
| `snippet` | `string \| null` | Snippet |
| `published_at` | `string \| null` | When it was published; null if the platform does not say |

**Feature 3 fields**

| Field | Type | Description |
| --- | --- | --- |
| `type` | `"engine_block"` | Type of block |
| `title` | `string \| null` | Title |
| `url` | `string \| null` | URL |

**Ad 8 fields**

| Field | Type | Description |
| --- | --- | --- |
| `position` | `integer \| null` | Position in the list, starting at 1 |
| `title` | `string \| null` | Title |
| `url` | `string \| null` | URL |
| `advertiser` | `string \| null` | Advertiser |
| `text` | `string \| null` | Ad copy |
| `block` | `string \| null` | Where the ad appears |
| `sitelinks` | `(string \| null)[] \| null` | Sitelinks |
| `badges` | `(string \| null)[] \| null` | Badges |

**Video 9 fields**

| Field | Type | Description |
| --- | --- | --- |
| `position` | `integer` | Position in the list, starting at 1 |
| `title` | `string \| null` | Title |
| `url` | `string \| null` | URL |
| `platform` | `string \| null` | The platform it is on |
| `author` | `string \| null` | Author |
| `duration_seconds` | `integer \| null` | Length in seconds |
| `video_id` | `string \| null` | Video ID |
| `views` | `integer \| null` | Views |
| `published_at` | `string \| null` | When it was published; null if the platform does not say |

**Product 21 fields**

| Field | Type | Description |
| --- | --- | --- |
| `position` | `integer` | Position in the list, starting at 1 |
| `title` | `string \| null` | Title |
| `url` | `string \| null` | URL |
| `price` | `number \| null` | The price, given only when it can be read exactly; masked prices and ranges are null |
| `currency` | `string \| null` | Currency |
| `price_text` | `string \| null` | The price exactly as the platform shows it |
| `original_price` | `number \| null` | List price |
| `seller` | `string \| null` | Seller |
| `platform` | `string \| null` | The platform it is on |
| `rating` | `number \| null` | Rating |
| `review_count` | `integer \| null` | Number of reviews |
| `product_id` | `string \| null` | Product ID |
| `sku_id` | `string \| null` | SKU ID |
| `brand` | `string \| null` | Brand |
| `image_url` | `string \| null` | Product image |
| `label` | `string \| null` | A recommendation or promotion label from the platform |
| `availability` | `string \| null` | Availability |
| `delivery` | `string \| null` | Delivery note |
| `discount` | `string \| null` | Discount note |
| `offers` | `Offer[] \| null` | Offers from individual sellers |
| `sponsored` | `boolean \| null` | Whether it is sponsored |

**Offer 7 fields**

| Field | Type | Description |
| --- | --- | --- |
| `seller` | `string \| null` | Seller |
| `price` | `number \| null` | Price |
| `currency` | `string \| null` | Currency |
| `price_text` | `string \| null` | The price exactly as the platform shows it |
| `url` | `string \| null` | URL |
| `available` | `boolean \| null` | Whether it is in stock |
| `label` | `string \| null` | A recommendation or promotion label from the platform |

**Citation 12 fields**

| Field | Type | Description |
| --- | --- | --- |
| `position` | `integer` | Position in the list, starting at 1 |
| `url` | `string` | The real URL, with redirect links resolved |
| `domain` | `string` | Domain |
| `title` | `string \| null` | Title |
| `snippet` | `string \| null` | Snippet |
| `site_name` | `string \| null` | Site name |
| `published_at` | `string \| null` | When it was published; null if the platform does not say |
| `author` | `string \| null` | Author |
| `platform` | `string \| null` | The platform the source is on, such as a blogging site |
| `quotes` | `string[] \| null` | The passages of the source that were used |
| `anchors` | `Anchor[] \| null` | Which parts of the answer this source supports |
| `cited` | `boolean \| null` | true: used in the answer. false: only found while searching. null: cannot be told |

**Anchor 2 fields**

| Field | Type | Description |
| --- | --- | --- |
| `text` | `string \| null` | The part of the answer this source supports, not text from the source |
| `offset` | `integer \| null` | Character offset in markdown |

**meta 7 fields**

| Field | Type | Description |
| --- | --- | --- |
| `capability` | `string` | Endpoint ID |
| `result_status` | `"complete" \| "partial" \| "empty"` | complete: everything. partial: only part of it. empty: nothing found |
| `fetched_at` | `string` | When the data was fetched |
| `cached` | `boolean` | Whether the result came from a cache. Always false at present |
| `replayed` | `boolean` | Whether this is the earlier result returned again for the same Idempotency-Key |
| `unavailable` | `string[]` | Fields that could not be provided this time |
| `billing` | `{ amount: string, currency: "USD", balance_after: string \| null }` | What this call was charged and the balance afterwards |

## Common errors

An error means nothing was charged, except `settlement_unknown`: it means billing is not known yet, so ask again with the same Idempotency-Key. [See every error code](https://www.askcrawl.com/docs/errors/).

| Error | HTTP | Meaning | Charged? |
| --- | --- | --- | --- |
| [`invalid_params`](https://www.askcrawl.com/docs/errors/#invalid_params) | 400 | A parameter is invalid | Not charged |
| [`max_price_exceeded`](https://www.askcrawl.com/docs/errors/#max_price_exceeded) | 400 | The most this could cost is above the limit you set | Not charged |
| [`insufficient_balance`](https://www.askcrawl.com/docs/errors/#insufficient_balance) | 402 | The balance is too low | Not charged |
| [`key_budget_exceeded`](https://www.askcrawl.com/docs/errors/#key_budget_exceeded) | 402 | This key's spending limit does not cover it | Not charged |
| [`idempotency_conflict`](https://www.askcrawl.com/docs/errors/#idempotency_conflict) | 409 | This Idempotency-Key was used for a different request | Not charged |
| [`upstream_failed`](https://www.askcrawl.com/docs/errors/#upstream_failed) | 502 | No result came back this time and nothing was charged; retry shortly | Not charged |
| [`timeout`](https://www.askcrawl.com/docs/errors/#timeout) | 504 | The data did not arrive in time; nothing was charged | Not charged |
| [`upstream_busy`](https://www.askcrawl.com/docs/errors/#upstream_busy) | 503 | Busy now; retry shortly | Not charged |
| [`call_in_progress`](https://www.askcrawl.com/docs/errors/#call_in_progress) | 409 | The call under this Idempotency-Key is still running; ask again with the same key shortly | Not charged |
| [`settlement_unknown`](https://www.askcrawl.com/docs/errors/#settlement_unknown) | 500 | Whether this was charged is not known yet; ask again with the same Idempotency-Key | Unknown yet |
| [`unauthorized`](https://www.askcrawl.com/docs/errors/#unauthorized) | 401 | No credential was sent, or it is invalid, disabled or expired | Not charged |
| [`rate_limited`](https://www.askcrawl.com/docs/errors/#rate_limited) | 429 | Too many requests, or too many calls in progress | Not charged |

```
curl -G https://api.askcrawl.com/v1/serp/baidu/search \
  --data-urlencode <b>"query=best crm for small business"</b> \
  -H <b>"Authorization: Bearer $API_KEY"</b>
```

Real response data (excerpt)

```
{
  <b>"results"</b>: [
    {
      <b>"position"</b>: 1,
      <b>"title"</b>: <b>"2026年扫地机器人推荐(双11买前必看) - 知乎"</b>,
      <b>"url"</b>: <b>"https://zhuanlan.zhihu.com/p/139666607"</b>,
      <b>"domain"</b>: <b>"zhuanlan.zhihu.com"</b>,
      <b>"snippet"</b>: <b>"1、科沃斯扫地机器人 ▌最成熟的活水洗地机器人──科沃斯T80 ▌0516更新新品科沃斯T90 Pro ▌0904更新旗舰新品科沃斯T90S Pro ▌0516更新旗舰新品科沃斯X…"</b>,
      <b>"published_at"</b>: null
    },
    {
      <b>"position"</b>: 2,
      <b>"title"</b>: <b>"2026年口碑最好的十大扫地机器人品牌,最建议买的10款,智能清洁居家卫生体验"</b>,
      <b>"url"</b>: <b>"https://baijiahao.baidu.com/s?id=1863820321033387298&wfr=spider&for=pc"</b>,
      <b>"domain"</b>: <b>"baijiahao.baidu.com"</b>,
      <b>"snippet"</b>: <b>"追觅科技凭借欧睿国际认证的全球高端扫地机器人销量领先成绩 ，在全球30多个国家及地区市场占有率位居前列。品牌首创的仿生机械臂、仿生机械足技术持续推动扫地机产品形态与清洁能力实现系统…"</b>,
      <b>"published_at"</b>: null
    }
  ],
  <b>"features"</b>: [
    {
      <b>"type"</b>: <b>"engine_block"</b>,
      <b>"title"</b>: <b>"扫地机器人推荐 - 精选笔记"</b>,
      <b>"url"</b>: <b>"http://www.baidu.com/link?url=cv_wN3K7lDEHC7Uh0E4bO5P6xTaccY8YPlclxgQexQtvfUPE2JIh426i67if…"</b>
    },
    {
      <b>"type"</b>: <b>"engine_block"</b>,
      <b>"title"</b>: <b>"扫地机器人哪个牌子的性价比最高:解放双手、提升生活品质的理想选择"</b>,
      <b>"url"</b>: <b>"https://www.baidu.com/s?tn=news&rtt=1&bsst=1&wd=%E6%89%AB%E5%9C%B0%E6%9C%BA%E5%99%A8%E4%BA…"</b>
    }
  ],
  <b>"ads"</b>: [
    {
      <b>"position"</b>: 1,
      <b>"title"</b>: <b>"重工业扫地机,智能清扫,轻松高效!"</b>,
      <b>"url"</b>: <b>"https://b2b.baidu.com/aitf/s?q=%E9%87%8D%E5%B7%A5%E4%B8%9A%E6%89%AB%E5%9C%B0%E6%9C%BA&from…"</b>,
      <b>"advertiser"</b>: <b>"b2b.baidu.com"</b>,
      <b>"text"</b>: <b>"百度爱采购为您 推荐 业内优质 扫地 机货源,挑选业内优质 扫地 机厂家.还可以浏览 扫地 机公司黄页,与商友在线洽谈,查找最新 扫地 机行业动态"</b>,
      <b>"block"</b>: null,
      <b>"sitelinks"</b>: null,
      <b>"badges"</b>: null
    },
    {
      <b>"position"</b>: 2,
      <b>"title"</b>: <b>"智能全自动扫地机器人-买东西逛淘宝,榜单好物随心入!"</b>,
      <b>"url"</b>: <b>"https://redirect.simba.taobao.com/rd?c=un&w=unionsem&k=74175f13c74157df&p=mm_26632258_3504…"</b>,
      <b>"advertiser"</b>: <b>"redirect.simba.taobao.com"</b>,
      <b>"text"</b>: <b>"智能全自动 扫地机器人 -淘宝热卖,大牌集结,好物多多!划算又省心,品质好货,尽在淘宝,淘你满意!"</b>,
      <b>"block"</b>: null,
      <b>"sitelinks"</b>: null,
      <b>"badges"</b>: null
    }
  ],
  <b>"related_searches"</b>: [
    <b>"扫地机器人多少钱一台"</b>,
    <b>"扫地机器人哪款好"</b>
  ],
  <b>"people_also_ask"</b>: null,
  <b>"videos"</b>: null,
  <b>"products"</b>: null,
  <b>"ai_summary"</b>: null
}
```

Up

[API reference](https://www.askcrawl.com/docs/api/)

Related

[Google search results](https://www.askcrawl.com/docs/api/serp-google-search/)

[Bing search results](https://www.askcrawl.com/docs/api/serp-bing-search/)

[Naver search results](https://www.askcrawl.com/docs/api/serp-naver-search/)

[Yahoo search results](https://www.askcrawl.com/docs/api/serp-yahoo-search/)

Basis

[Errors and charges](https://www.askcrawl.com/docs/errors/)

[Billing, holds and settlement](https://www.askcrawl.com/docs/billing/)

Next

[Quickstart](https://www.askcrawl.com/docs/quickstart/)

[Connect an AI assistant](https://www.askcrawl.com/docs/mcp/)

> Page: https://www.askcrawl.com/docs/api/serp-baidu-search/ · Content date: 2026-12-01
