Baidu Search Scraper
The organic results Baidu shows for a keyword as typed JSON: title, link, displayed link, snippet and position, with a date filter if you want one. 1 credit per page. No Baidu login, no proxies to manage.
Free API key · 1 credit per page of results · failed calls free
// GET /api/v2/baidu-search/?query=机器学习 · sample from the catalog { "success": true, "data": { "query": "机器学习", "page": 1, "page_size": 10, "organic_results": [ { "title": "什么是机器学习? - 百度百科", "link": "https://baike.baidu.com/item/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0", "displayed_link": "baike.baidu.com", "snippet": "机器学习是人工智能的一个分支,它使计算机能够通过数据学习,而不是通过明确的编程指令...", "position": 1, "keyword": "机器学习" } ], "answer_box": [], "next_cursor": "eyJoIjoiYWJjMTIzZGVmNDU2IiwicG4iOjEwLCJxIjoi5py65Zmo5a2m5LmgIiwidHAiOiIifQ" } }
| field | value | type | Has a value✓ |
|---|
Scrapier's Baidu Search Scraper returns the organic results Baidu shows for a keyword as JSON, a page at a time: title, link, displayed_link, snippet, position and keyword. It costs 1 credit per successful call. No Baidu login is needed.
Baidu Search Scraper extracts the organic results Baidu returns for a search phrase, one page per call: each result's title, destination link, displayed domain, snippet and position, plus the page number and the query it answered. Limit results to recent pages with <code>days</code> or a date range, and page through with a cursor. Every response is structured JSON, ready to pass directly to an LLM, index into a vector store or feed an SEO pipeline. It is a Baidu data scraper on the same API key used by 12,000+ developers. Next, follow next_cursor for page two.
What data can I extract with Baidu Search Scraper?
Using this Baidu Search Scraper, you can extract the following data from public Baidu pages of results:
Want the exact field names? See the example output.
Try Baidu Search Scraper Live
Press Run to see the catalog sample. Add your API key and it runs a real call to the Scrapier API from your browser. The key is sent only to proxy.scrapier.io and never stored.
+ Run live with your API key
How to use Baidu Search Scraper
Hand it to your AI assistant, or run it yourself in five steps.
Copy to your AI assistant
Paste this into ChatGPT, Claude or Cursor and it knows how to call the scraper.
Use the Scrapier Baidu Search Scraper to get public Baidu pages of results. Endpoint: GET https://proxy.scrapier.io/api/v2/baidu-search/?query={query} with header "X-API-Key: YOUR_API_KEY" and a 210-second timeout. Send one value per call in query; for a list, make one call per value, at most 3 in parallel. It returns JSON under data.organic_results: title, link, displayed_link, snippet, position, keyword. Each successful call costs 1 credit; failed calls are free. If you support MCP, run: claude mcp add -t http scrapier https://mcp.scrapier.io/mcp --header "X-API-Key: YOUR_API_KEY" and call run_scrape with endpoint "baidu-search" (find it with search_endpoints).Use this scraper from ChatGPT, Claude or Cursor. Point your assistant at Scrapier and it reads Baidu pages of results on its own: no glue code, no scraping logic in your prompts.
Run it yourself
- Get your free Scrapier API keySign up at app.scrapier.io; the free tier lets you try it first.
- Open Baidu Search Scraper in the catalogIt lives under Scrapers / Baidu, next to the other Baidu tools.
- Enter the search termFor example
机器学习inquery. Setdaysto keep only the last N days, ortime_periodfor exact dates. - Send your API requestOne GET with your key in the
X-API-Keyheader, or onerun_scrapecall from your agent. No browser, no HTML parsing. Set a 210-second client timeout. - Save your resultsEach page comes back as JSON in
data.organic_results: store it as is, or flatten it to CSV. Passdata.next_cursorback ascursorto get the next page until it is null.
How to scale to bulk Baidu pages of results
query takes one search term per call, so for a keyword list you loop: one request per term. Within a term, pass back data.next_cursor unchanged to read the next page. Run up to 3 requests in parallel per API key; above that the API answers 429 with a Retry-After header, and throttled calls cost nothing. Each page is 1 credit and failed calls are free, so 1,000 pages cost 1,000 credits, inside the Hobby plan's 15,000.
Features
This Baidu SERP scraper turns a Baidu results page into rows you can rank, filter and store. It suits SEO research on the Chinese web, market and trend monitoring, content gap analysis and any workflow that needs Baidu results without parsing HTML.
- Organic results
title,linkandsnippetfor every result - Position
positiongives each result's rank on its page - Date filter
daysortime_periodlimits results to a date range - Domain
displayed_linkcarries the domain Baidu displays - Paging
next_cursorreads the next page of results - Raw mode
raw_datareturns Baidu's upstream payload instead
Proxies, retries and parsing run on Scrapier's side, so you send one request and get JSON back, at 1 credit per page of results and 0 credits for a failed call.
Use cases
- SEO analyst searches target keywords on Baidu and stores
position,linkanddisplayed_linkto see which domains show up for each term. - Market researcher searches a product category in Chinese with
daysset to 30 and collects the titles and snippets of what was published recently. - Content strategist runs a list of topic queries and reads
titleandsnippetto see how existing pages cover each topic. - Competitive intel tracks which competitor pages appear for category queries by comparing the
linkvalues from one run to the next. - AI engineer gives an agent a tool that searches Baidu, so it can ground answers in current Chinese-language results and cite the links.
Running these from an agent? Use the MCP integration and let Claude or Cursor call the scraper directly.
Why choose this Scraper API?
Use days or time_period on the first call and the filter stays locked for the following pages through the cursor.
Each result arrives as typed fields with title, link, displayed_link and snippet, so you skip selectors and layout changes.
The same key and response envelope work across Scrapier's endpoints, so search results can feed the next call without new code.
Input
The scraper takes one search phrase per call in query. It is required on the first call and ignored when cursor is supplied. days and time_period are optional date filters. Send parameters in the query string (GET) or as a JSON body (POST).
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | A search phrase, one per call. Required on the first call; ignored when cursor is supplied. Aliases: queries, q, keyword |
cursor | string | No | — | Pass back data.next_cursor from the previous response, unchanged, to get the next page; null means the last page |
time_period | string | No | — | Restrict results to a date range: stf=START,END|stftype=1 or a JSON object with start_date and end_date (camelCase startDate/endDate also accepted) |
days | integer | No | 0 | Shorthand for the last N days, default 0. Overrides time_period when above 0 |
use_proxy | boolean | No | true | Route through Scrapier's residential proxy pool, on by default. Leave as is |
raw_data | boolean | No | false | Return Baidu's raw upstream payload under raw_responses instead of the formatted items |
One term per call: to search ten terms, make ten calls and page each with cursor. Booleans are the strings true or false.
Example input
{
"query": "机器学习",
"time_period": "",
"days": "0",
"use_proxy": "true",
"raw_data": "false"
}Error codes
| Status | Meaning | Billed | Fix |
|---|---|---|---|
| 200 | Page of results data returned in data.organic_results | Yes | — |
| 400 | Bad or missing input | No | Check query: one value per call |
| 401 | X-API-Key header missing | No | Add the header |
| 402 | Out of credits (body has balance) | No | Top up; retrying will not help |
| 403 | Invalid or revoked API key | No | Check the key in your dashboard |
| 429 | Throttled | No | Wait Retry-After seconds, then retry |
| 5xx | Upstream failure or timeout | No | Retry with backoff; set a 210 s client timeout |
From the error reference. Any non-2xx response costs 0 credits.
Output
Typed JSON with the same schema on every call. One call returns a page of results under organic_results, each with 6 fields, inside the standard data envelope. Field names stay the same on every call. Set raw_data to true if you want the raw upstream payload instead.
Example output
{
"success": true,
"data": {
"query": "机器学习",
"page": 1,
"page_size": 10,
"organic_results": [
{
"title": "什么是机器学习? - 百度百科",
"link": "https://baike.baidu.com/item/%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0",
"displayed_link": "baike.baidu.com",
"snippet": "机器学习是人工智能的一个分支,它使计算机能够通过数据学习,而不是通过明确的编程指令...",
"position": 1,
"keyword": "机器学习"
}
],
"answer_box": [],
"next_cursor": "eyJoIjoiYWJjMTIzZGVmNDU2IiwicG4iOjEwLCJxIjoi5py65Zmo5a2m5LmgIiwidHAiOiIifQ"
}
}The catalog's sample response for query=机器学习, labelled as a sample: live calls return the account's current values.
Organic result
| Field | Type | Example | Description |
|---|---|---|---|
organic_results.title | string | "什么是机器学习? - 百度百科" | Result title as Baidu shows it |
organic_results.link | string | "https://baike.baidu.com/item/%E6%9C%BA%E5%9…" | Destination URL of the result |
organic_results.displayed_link | string | "baike.baidu.com" | Domain Baidu displays under the title |
organic_results.snippet | string | "机器学习是人工智能的一个分支,它使计算机能够通过数据学习,而不是通过明确的编程指令..." | Description text under the title |
organic_results.position | integer | 1 | Rank of the result on the page, from 1 |
organic_results.keyword | string | "机器学习" | The search term that produced the row |
Response envelope and paging
| Field | Type | Example | Description |
|---|---|---|---|
success | boolean | true | true on every 200 response |
data.query | string | "机器学习" | Your search term, echoed back |
data.page | integer | 1 | Page number of this response |
data.page_size | integer | 10 | Results per page |
data.answer_box | array | [] | Answer panel entries; an empty list when Baidu shows none |
data.next_cursor | string | "eyJoIjoiYWJjMTIzZGVmNDU2IiwicG4iOjEwLCJxIjo…" | Pass back as cursor for the next page; null on the last page |
How does it work?
Scrapier sends each request through its residential proxy pool (use_proxy, on by default), so you never manage IPs or proxy accounts.
Retries and parsing of Baidu's pages happen on Scrapier's side. You send one HTTP request and get typed JSON back.
Only publicly visible data is returned: the results any visitor sees without signing in. No Baidu account or cookie is used.
The schema is stable. When Baidu changes its pages, Scrapier updates the scraper; the field names in the result stay the same.
How do you integrate Baidu Search Scraper into your stack?
It works with what you already use: any HTTP client, AI agents over MCP, and no-code automation tools. Code samples for cURL, Python and Node.js are on the API tab.
MCP integration for AI agents
This registers the Scrapier MCP server, whose tools reach every Scrapier scraper, including baidu-search: the agent finds it with search_endpoints and calls it with run_scrape. Works with Claude Code, Cursor and Windsurf. MCP calls are billed like REST: 1 credit per successful call. Full MCP setup →
No-code tools (n8n, Make, LangChain)
Use the HTTP Request node with your Scrapier API key in an X-API-Key header and point it at /api/v2/baidu-search/ with a query query parameter. Map the result list into the next node.
Add an HTTP "Make a request" module with the same header and URL, and parse the response as JSON. Map title, link and snippet straight into Sheets, Airtable or your CRM.
Wrap the endpoint in a requests-based tool, or load the Scrapier MCP server through LangChain's MCP adapters so the agent finds baidu-search with search_endpoints itself.
Pricing and Rate Limits
One Baidu page of results costs 1 credit, so 1,000 pages of results cost 1,000 credits: $1.58 on the Pro plan. Failed and empty calls are not billed. Run up to 3 requests in parallel per key; above that the API answers 429 with a Retry-After header.
| Plan | Monthly price | Credits | Pages of results included | Per 1,000 pages of results |
|---|---|---|---|---|
| Hobby | $29 | 15,000 | 15,000 | $1.93 |
| Pro | $79 | 50,000 | 50,000 | $1.58 |
| Scale | $299 | 250,000 | 250,000 | $1.20 |
| Enterprise | Custom volume and terms | |||
Prices from the live billing page. See all plans and limits.
Call cost and timing
How we measure this
Credit cost, pagination and the sample come from the live catalog (GET /api/v2/endpoints, /baidu-search/, checked 9 Nov 2026). Concurrency and timeout guidance come from the rate limits page of the docs. Scrapier does not publish latency or success-rate figures for this endpoint, so none are shown here.
Baidu Search Scraper vs the Official Baidu API
| Feature | Scrapier Baidu scraper | DIY Baidu scraping |
|---|---|---|
| Access needed | One Scrapier API key | Your own proxies, parser and servers |
| Which data | Organic results for any keyword, as Baidu shows them | Whatever your parser extracts |
| Fields returned | 6 fields per result: title, link, displayed link, snippet, position and keyword | Whatever you build and maintain |
| Setup | Sign up, copy a key, send a request | Write selectors, handle blocks and retries |
| Cost | 1 credit per page, from $1.20 per 1,000 pages | Proxy, server and engineering time |
If you need a fully custom crawler or already run your own scraping stack, DIY gives more control; Scrapier suits teams that want one key and one JSON shape across many platforms.
Is it legal to scrape Baidu data?
Scraping publicly available web pages is generally lawful in many countries, but the answer depends on what you collect, where you are and how you use it. In the US, hiQ Labs v. LinkedIn is the case most often cited on public-data scraping. Scrapier returns only data any visitor can see without logging in. Under GDPR and similar laws, collecting public data can be permissible, but how you store and use personal data must still comply with local data-protection rules, and Baidu's terms apply. Consult legal counsel if your use case involves bulk storage of personal data. This is not legal advice; see our Terms of Use.
Frequently asked questions
What fields does Baidu Search Scraper return?
Each organic result has title, link, displayed_link, snippet, position and keyword: 6 fields in data.organic_results. The envelope adds query, page, page_size, answer_box and next_cursor. Each call costs 1 credit.
Is there a Baidu search API I can call?
Scrapier's Baidu scraper API is a REST endpoint at /api/v2/baidu-search/: send a query and your key in the X-API-Key header, and get Baidu results as JSON. It costs 1 credit per page and failed calls are free.
Can I search in Chinese?
Yes. The query is a normal UTF-8 string, and the catalog default is the Chinese term 机器学习. Send any Chinese or English phrase in query, one per call. The echoed query and each result's keyword field return the same text.
How do I get the next page of Baidu results?
Take data.next_cursor from the response and send it back unchanged as cursor. Repeat until next_cursor is null, which means you have reached the last page. Each page is one call and costs 1 credit.
How do I limit Baidu results to recent pages?
Set days to a number to keep the last N days, for example 7. It overrides time_period when above 0. For exact dates, pass time_period as stf=START,END|stftype=1 or a JSON object with start_date and end_date.
What is the position field?
position is the rank of the result on the page of results this call returned, starting at 1. Use it with page and page_size to place a result in the order Baidu showed it on that request.
What is answer_box?
answer_box is a list in the response envelope for the answer panel Baidu shows above the organic results. In the catalog sample it is an empty list, so check its length before you read it.
Can I search several terms in one call?
No. query takes one term per call. To search ten terms, make ten calls, up to 3 in parallel per API key, and page each with cursor. Throttled calls return 429 with a Retry-After header and cost nothing.
Does Baidu Search Scraper require a Baidu account or login?
No. The Baidu Search Scraper uses no Baidu account or cookies: you send your Scrapier API key in the X-API-Key header and a search term, and get JSON back. Only public results are returned.
How fast does Baidu Search Scraper run?
Scrapier does not publish a latency figure for this endpoint. Each call reads Baidu live, so timing depends on the page. Set a client timeout of 210 seconds, as the docs recommend for every endpoint.
What happens if the input is wrong or Baidu returns nothing?
If a call fails, the API returns a non-2xx status and costs 0 credits. In code, check the status, then skip that input or retry it later. Throttled calls (429 with a Retry-After header) are free as well, so retry loops cost nothing.
Does Baidu Search Scraper work with Claude, ChatGPT and other AI agent tools?
Yes. Connect the Scrapier MCP server with claude mcp add -t http scrapier https://mcp.scrapier.io/mcp and your API key in an X-API-Key header; it works in Claude Code, Cursor and Windsurf. The agent finds baidu-search with search_endpoints and calls it with run_scrape. Any agent that can call an HTTP endpoint can use the REST API directly.
How much does it cost to run Baidu Search Scraper 1,000 times?
1,000 credits, because each call is 1 credit. That is about $1.93 on Hobby, $1.58 on Pro and $1.20 on Scale, at the plans' price per credit. Failed calls are free.
How do I use Baidu Search Scraper with Python?
For a Baidu SERP scraper in Python, send a GET request with the requests library to https://proxy.scrapier.io/api/v2/baidu-search/ with params={"query": "机器学习"}, your key in the X-API-Key header and timeout=210. Read r.json()["data"]["organic_results"]: it is already JSON, so no HTML parsing is needed.
Your feedback
Found a bug or missing a field? Let us know. Write to support@scrapier.io and the team replies to every report.
Start Scraping Baidu Pages Of Results
Public Baidu pages of results as JSON, 1 credit each, from REST or MCP.