Dedicated ScrapersBaidu Scraper API
Baidu logoDedicated Baidu API

Baidu Scraper API — Search, News & Image Results

The fastest way to start scraping China’s #1 search engine. Structured JSON for the Baidu web SERP — with the real target URL on every result, not Baidu’s redirect wrapper — plus news search, image search with dimensions, and autocomplete. Anti-bot bypass built in. No Baidu account.

#1Search engine in China
5Endpoints
10–50Results per search page
RealTarget URLs, resolved

No credit card required · PAYG credits never expire

GET /v1/baidu/search
# One page of the Baidu web SERP
import scrapebadger

client = scrapebadger.ScrapeBadger("sb_live_...")

serp = client.baidu.search(
    query="小米手机",
    language=2,
)
200 OK1.8s · 5 credits
{
  "position": 1,
  "title": "小米手机官方网站",
  "url": "https://www.mi.com/",
  "display_url": "www.mi.com",
  "source": "小米商城",
  "date": "2026-07-14",
  "total_results": 4820000
}
API Reference

Baidu API — 5 Dedicated Endpoints

Structured JSON responses with normalized data models. No HTML parsing. No proxy management. No Baidu account.

GET
/v1/baidu/search
Baidu web SERP with the REAL target URL on every organic result, plus related searches
5 cr / req
GET
/v1/baidu/news
Baidu News articles with publisher, publication date and the real article URL
5 cr / req
GET
/v1/baidu/images
Baidu Images — full-resolution URL, thumbnail, source page and pixel dimensions
5 cr / req
GET
/v1/baidu/autocomplete
The suggestions Baidu’s own search box returns for a partial query
1 cr / req
GET
/v1/baidu/health
Service health check — free, costs no credits
0 cr / req
Response Schema

Every Field You Need, Ready to Use

All fields are normalized from Baidu’s own page data — no HTML for you to parse. Organic results carry the resolved destination URL rather than the redirect token Baidu serves, so a result is immediately usable as a crawl target or a join key.

Organic result

positionintegerRank on the page, 1-based, sponsored placements excluded
titlestringResult headline as Baidu renders it
urlstringThe REAL destination URL — resolved, not Baidu’s baidu.com/link?url= wrapper
display_urlstringThe shortened URL Baidu shows under the title
snippetstringResult description text
sourcestringPublisher or site name Baidu attributes the result to
datestringPublication date when Baidu shows one
thumbnailstringPreview image URL when the result carries one
related_searchesarrayThe "相关搜索" suggestions at the foot of the SERP
total_resultsintegerBaidu’s own estimate of matching documents

News, image & suggestion

titlestringArticle headline (news) or image caption (images)
urlstringReal article URL, resolved past the redirect
sourcestringPublisher name for news, source page for images
datestringPublication date — sort by time to get newest first
image_urlstringFull-resolution image URL
thumbnail_urlstringBaidu-hosted thumbnail, cheap to fetch in bulk
width / heightintegerPixel dimensions, so you can filter by resolution before downloading
suggestionsarrayAutocomplete terms for a partial query
Coverage

The Chinese-language web

Baidu is one index, not per-country storefronts, so there is no market parameter to manage. What you choose instead is script: all results, simplified Chinese only, or traditional Chinese only.

language=1
All results
No script filter applied
language=2
Simplified only
Mainland-facing pages
language=3
Traditional only
Taiwan & Hong Kong pages
The URL is resolved, not wrapped: Baidu routes every organic click through a baidu.com/link?url= redirect carrying an expiring token. We follow it before returning the result, so the url field is the real destination — and display_url still gives you the shortened form Baidu showed the user.
How it works

From API call to clean JSON in seconds

No proxy setup. No session management. No anti-bot configuration.

1

Send a request

Call any Baidu endpoint with your API key — a query to search web, news or images, or a partial term for autocomplete. REST or SDK.

2

We handle the hard parts

ScrapeBadger routes the request through a clean exit with Chrome impersonation, detects blocks, resolves every redirect URL, and escalates to a real browser when needed.

3

Get structured JSON

Receive normalized JSON with positions, real target URLs, snippets, sources, dates, image dimensions and related searches — ready to store or analyse.

Use Cases

What Developers Build with Baidu Data

Scraping Baidu gives you the search layer of the Chinese web — what ranks, what the news cycle is saying, and the query variants real users type.

Chinese SEO rank tracking

Track where a domain ranks on Baidu for your keyword set over time. Baidu is where Chinese search demand actually lands, and its ranking factors are not Google’s.

Brand & competitor monitoring

Watch which sites Baidu surfaces for your brand and your competitors’, and catch a new entrant or a negative result appearing on page one.

Keyword research

Mine autocomplete suggestions and the related-searches block to build a Chinese keyword list from what users actually type, not from translation.

China market research

Read the Chinese-language web at scale — news coverage, product mentions and local sites that never appear in Western search results.

AI training datasets

Collect Chinese-language search results, news text and captioned images with dimensions for retrieval, classification and multimodal training.

News & sentiment feeds

Pull Baidu News by query, ordered newest first, to feed Chinese-language coverage into a monitoring or sentiment pipeline.

Pricing

Pay Per Request. Credits Never Expire.

You only pay for successful responses — failed requests are always free. PAYG credits never expire; volume subscription tiers reduce per-credit cost further.

EndpointCredits / requestPAYGSubscription
Web Search /search5 credits
News Search /news5 credits
Image Search /images5 credits
Autocomplete /autocomplete1 credit
Health /healthFree

See the full plan comparison on the pricing page — subscription tiers step down per-credit cost beyond the cheapest column shown above.

Free trial
1,000 credits free
= 200 search requests
Credits expire
Never
Buy once, use anytime
Failed requests
Always free
Pay for success only
Live cost estimator
Credits per request5
Total credits needed5,000
Loading plans…
Why ScrapeBadger

Built for Reliability at Scale

ScrapeBadger's Baidu Scraper API handles everything Baidu throws at automated requests — so your pipeline keeps running.

Real target URLs, not redirect wrappers

Baidu links every organic result through baidu.com/link?url=… — a token that expires and tells you nothing. We resolve every one, so the url field is the actual destination you can crawl, dedupe and join against your own data.

The related-searches block, parsed

The 相关搜索 suggestions at the foot of the SERP come back as a plain array. It is the cheapest source of real Chinese query variants there is, and it needs no separate request.

Simplified vs traditional Chinese

The language filter maps to Baidu’s own ct parameter: all results, simplified only, or traditional only. Useful when you care about mainland results and not Taiwan or Hong Kong ones, or the reverse.

Image dimensions before you download

Image results carry width and height alongside the full-resolution URL and the thumbnail, so you can filter by resolution without fetching a single byte of image data.

Date filtering on web search

Bound a query with a from and to date to get results Baidu dated inside that window — for tracking when coverage of a topic started, or excluding stale pages.

No Baidu account, no Chinese phone number

Baidu’s own developer APIs need a verified mainland account. This one needs a ScrapeBadger key. Proxies, exits and anti-bot handling are ours to manage, not yours.

Code Examples

Simple Integration. Any Language.

Get started in minutes with Python, Node.js, or plain HTTP requests.

The scrapebadger Node.js library wraps the Baidu API with typed methods. Install with npm install scrapebadger, then start scraping Baidu in a few lines of code.

Node.js — Rank tracking
import ScrapeBadger from 'scrapebadger'

const client = new ScrapeBadger({ apiKey: 'sb_live_...' })

// Simplified-Chinese results, 50 to a page
const { organic_results, related_searches } = await client.baidu.search({
  query: '小米手机',
  num: 50,
  language: 2,
})

// url is the REAL destination, not baidu.com/link?url=...
for (const r of organic_results) {
  console.log(r.position, r.url, r.title)
}

console.log(related_searches)  // Chinese query variants, free with the SERP
Node.js — News + images
import ScrapeBadger from 'scrapebadger'

const client = new ScrapeBadger({ apiKey: 'sb_live_...' })

// Newest Chinese coverage first
const news = await client.baidu.news({
  query: '人工智能',
  sort: 'time',
})

for (const a of news.articles) {
  console.log(a.date, a.source, a.title, a.url)
}

// Images come with dimensions — filter before downloading
const { images } = await client.baidu.images({ query: '长城' })
const large = images.filter((i) => i.width >= 1920)
FAQ

Frequently Asked Questions

Common questions about scraping Baidu with the API — Python, Node.js, or REST.

Do I need a Baidu account or developer key?

No. You only need a ScrapeBadger API key. Baidu’s own APIs require a verified mainland Chinese account, often with a local phone number and business registration — none of that is involved here.

Do I get the real result URL or Baidu’s redirect link?

The real one. Baidu wraps every organic result in a baidu.com/link?url= redirect with an expiring token. We resolve each link before returning it, so the url field is the actual destination — and display_url is kept alongside it if you want what Baidu showed the user.

Can I search in English, or does the query have to be Chinese?

Either works — Baidu indexes both. Chinese queries return far richer results because that is where its index is deepest. The language parameter controls script rather than query language: 1 for all results, 2 for simplified Chinese only, 3 for traditional Chinese only.

How many results does one request return?

Web search returns 10 per page by default and up to 50 with the num parameter. Image search returns about 30 a page. Page through with the page parameter — each page is one request.

What happens if a request is blocked?

It returns a 422 and costs you nothing. Credits are only deducted for successful responses, so you never pay for a block or a retry.

Plans & subscriptions

Bigger volume? Save up to 64%

Per-request credit costs are listed above. For higher monthly volume, subscription tiers reduce the per-credit rate substantially. All Baidu endpoints — web search, news, images and autocomplete — are included on every plan.

Get started

Start Scraping Baidu Today

1,000 free credits. No credit card. Get your API key in under a minute.

PAYG credits never expire · Pay only for successful requests · Chinese-language web