Skip to content

Baidu Search Scraper API for SERP Position and Snippet Data

Baidu serves a large share of Chinese-language search traffic, and its result pages mix organic listings, ads, and SERP features that shift by query and region.

OUTPUT FORMATSHTMLJSONMarkdown

A managed scraping API lets you send a Baidu search URL and receive the rendered page back, so your team can focus on parsing positions, titles, and snippets instead of maintaining headless browsers and proxy pools. This page explains what the API returns, which request options control rendering, geotargeting, and structured extraction, and how credit costs and plan limits work.

What a Baidu SERP request returns

Each request targets a Baidu search URL on baidu.com. The API renders the page in a headless browser, rotates residential proxies, and returns rendered HTML ready to parse. When structured extraction is enabled, the response can include ranked positions, result URLs, titles, snippets, ad markers, and SERP-feature flags for the query. Typical workflows include tracking keyword rankings on Baidu, pulling result titles and snippets for competitive monitoring, and comparing how results differ across Chinese cities and provinces.

Request options and what each one controls

The API exposes a small set of request parameters that change how a Baidu page is fetched and what comes back. Use this field map to decide which options your workflow needs.

How credit costs stack

Credit cost per request depends on the options you enable. The base request starts at 1 credit. Enabling JavaScript rendering costs 5 credits. Premium proxies cost 10 credits without JS rendering or 25 credits with it. Stealth proxy costs 75 credits. These figures are the published credit rules for this API and should be checked against the current pricing page before you commit to a monthly plan.

Plan limits and concurrency

The API enforces concurrency limits per plan rather than per-target rate limits. If Baidu throttles aggressive request patterns, space out requests or use multiple sessions. Plan tiers differ in monthly API credits and concurrent request ceilings; the pricing table below lists the captured plan values for reference. Treat those figures as a dated reference and confirm current pricing before purchase.

Decision checklist before you sign up

Use this checklist to match the API to your workflow:

  • Rank tracking: you need weekly or daily Baidu SERP snapshots for a keyword set; enable JavaScript rendering and plan credits at 5 per request.
  • Snippet and title extraction: you need structured fields rather than raw HTML; configure extract_rules with CSS selectors or ai_extract_rules with a natural-language spec.
  • Regional comparison: you need results from specific Chinese cities or provinces; pass country_code to route through a residential IP in that country.
  • Anti-bot handling: Baidu may serve CAPTCHAs or block aggressive patterns; stealth_proxy costs 75 credits per request and should be reserved for pages that fail without it.
  • Volume planning: multiply your keyword count by request frequency and credit cost per request, then compare against the plan credit allowance.
  • Language and SDK: any language works; SDKs are published for Python, Node.js, Go, PHP, Ruby, and Java, and plain cURL is supported.

Worked example: weekly rank tracking for 200 keywords

Suppose you track 200 Chinese-language keywords once per week and enable JavaScript rendering on every request. At 5 credits per request, one weekly run costs 1,000 credits. Four weekly runs cost 4,000 credits per month. If you add stealth_proxy on the 20 keywords that fail without it, those 20 requests cost 75 credits each, adding 1,500 credits per run and 6,000 credits per month, for a combined 10,000 credits per month. Compare that figure against the plan credit allowances in the pricing table and confirm current credit rules before choosing a tier.

Captured plan reference (prices, credits, and concurrency)
PlanPriceAPI CreditsConcurrent requestsPriority Email SupportDedicated Account ManagerTeam Management
Hobby$19 /mo75,00025Not includedNot includedNot included
Freelance$49 /mo250,00050Not includedNot includedNot included
Startup (Recommended)$99 /mo1,000,000100Not includedNot includedNot included
Business$249 /mo3,000,000200IncludedIncludedIncluded
Business +$599 /mo8,000,000400IncludedIncludedIncluded
Enterprise 14$999 /mo14,000,000500IncludedIncludedIncluded
Enterprise 24$1,599 /mo24,000,000600IncludedIncludedIncluded
Enterprise 41 (Recommended)$2,399 /mo41,000,000700IncludedIncludedIncluded
Enterprise 69$3,599 /mo69,000,000800IncludedIncludedIncluded
Enterprise 120$5,799 /mo120,000,000900IncludedIncludedIncluded

Captured plan reference. Prices, credits, and concurrency values are as published at the time of capture and may change. All prices are exclusive of VAT. Confirm current pricing before purchase.

Frequently asked questions

How do I handle JavaScript when scraping Baidu Search?

Pass render_js=true on the request. The page runs in a real headless browser, the JavaScript executes server-side, and the post-render HTML is returned.

Can I scrape Baidu Search from a specific country?

Yes. Pass country_code on the request to route through a residential IP in that country. This is useful when Baidu content varies by geographic location.

What's the rate limit for scraping Baidu Search?

The API enforces concurrency limits per plan, not per-target rate limits. If Baidu throttles aggressive request patterns, space out requests or use multiple sessions.

How do I get structured JSON from Baidu Search?

Pass extract_rules with CSS selectors mapped to field names, or use ai_extract_rules with a natural-language specification. The response comes back as parsed JSON.

Which programming languages can I use to scrape Baidu Search?

Any language works. SDKs are published for Python, Node.js, Go, PHP, Ruby, and Java, and plain cURL is also supported. Choose whatever your stack already uses.

How much does it cost to scrape Baidu Search?

New accounts receive 1,000 free credits on signup with no card required. Paid plans start at $19 per month for higher volume and concurrency. Credit cost per request depends on options: 5 credits for JavaScript rendering, 25 credits for premium_proxy with JS rendering, and 75 credits for stealth_proxy. Confirm current pricing and credit rules before purchase.