New: the Scrapier MCP server. Every scraper in Claude Code with one command. See how →
GET/api/v2/baidu-search/

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

Last updated
// 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"
  }
}
Copy for your AI agent
Quick answer

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.

Every request is fetched live at call time · failed calls are free

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:

Result title
Destination link
Displayed link (domain)
Result snippet
Position on the page
Keyword that produced the result
Answer box entries
Page number
Page size
Next-page cursor

Want the exact field names? See the example output.

Playground

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.

BaiduBaidu Search ScraperLive

Parameters
+ Run live with your API key
Response
Sample dataCatalog sample, run to see live data

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).
Baidu Search Scraper MCP Server

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.

MCP setup →

Run it yourself

  1. Get your free Scrapier API keySign up at app.scrapier.io; the free tier lets you try it first.
  2. Open Baidu Search Scraper in the catalogIt lives under Scrapers / Baidu, next to the other Baidu tools.
  3. Enter the search termFor example 机器学习 in query. Set days to keep only the last N days, or time_period for exact dates.
  4. Send your API requestOne GET with your key in the X-API-Key header, or one run_scrape call from your agent. No browser, no HTML parsing. Set a 210-second client timeout.
  5. Save your resultsEach page comes back as JSON in data.organic_results: store it as is, or flatten it to CSV. Pass data.next_cursor back as cursor to 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.

It extracts, per page of results
  • Organic resultstitle, link and snippet for every result
  • Positionposition gives each result's rank on its page
  • Date filterdays or time_period limits results to a date range
  • Domaindisplayed_link carries the domain Baidu displays
  • Pagingnext_cursor reads the next page of results
  • Raw moderaw_data returns 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, link and displayed_link to see which domains show up for each term.
  • Market researcher searches a product category in Chinese with days set to 30 and collects the titles and snippets of what was published recently.
  • Content strategist runs a list of topic queries and reads title and snippet to see how existing pages cover each topic.
  • Competitive intel tracks which competitor pages appear for category queries by comparing the link values 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?

Date filter in the request.

Use days or time_period on the first call and the filter stays locked for the following pages through the cursor.

Clean rows, no HTML parsing.

Each result arrives as typed fields with title, link, displayed_link and snippet, so you skip selectors and layout changes.

One key for Baidu and the rest of the catalog.

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).

NameTypeRequiredDefaultDescription
querystringYes—A search phrase, one per call. Required on the first call; ignored when cursor is supplied. Aliases: queries, q, keyword
cursorstringNo—Pass back data.next_cursor from the previous response, unchanged, to get the next page; null means the last page
time_periodstringNo—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)
daysintegerNo0Shorthand for the last N days, default 0. Overrides time_period when above 0
use_proxybooleanNotrueRoute through Scrapier's residential proxy pool, on by default. Leave as is
raw_databooleanNofalseReturn 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

POST body · input.json
{
  "query": "机器学习",
  "time_period": "",
  "days": "0",
  "use_proxy": "true",
  "raw_data": "false"
}

Error codes

StatusMeaningBilledFix
200Page of results data returned in data.organic_resultsYes—
400Bad or missing inputNoCheck query: one value per call
401X-API-Key header missingNoAdd the header
402Out of credits (body has balance)NoTop up; retrying will not help
403Invalid or revoked API keyNoCheck the key in your dashboard
429ThrottledNoWait Retry-After seconds, then retry
5xxUpstream failure or timeoutNoRetry 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

200 OK · 1 credit · catalog sample
{
  "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

FieldTypeExampleDescription
organic_results.titlestring"什么是机器学习? - 百度百科"Result title as Baidu shows it
organic_results.linkstring"https://baike.baidu.com/item/%E6%9C%BA%E5%9…"Destination URL of the result
organic_results.displayed_linkstring"baike.baidu.com"Domain Baidu displays under the title
organic_results.snippetstring"机器学习是人工智能的一个分支,它使计算机能够通过数据学习,而不是通过明确的编程指令..."Description text under the title
organic_results.positioninteger1Rank of the result on the page, from 1
organic_results.keywordstring"机器学习"The search term that produced the row

Response envelope and paging

FieldTypeExampleDescription
successbooleantruetrue on every 200 response
data.querystring"机器学习"Your search term, echoed back
data.pageinteger1Page number of this response
data.page_sizeinteger10Results per page
data.answer_boxarray[]Answer panel entries; an empty list when Baidu shows none
data.next_cursorstring"eyJoIjoiYWJjMTIzZGVmNDU2IiwicG4iOjEwLCJxIjo…"Pass back as cursor for the next page; null on the last page

How does it work?

01

Scrapier sends each request through its residential proxy pool (use_proxy, on by default), so you never manage IPs or proxy accounts.

02

Retries and parsing of Baidu's pages happen on Scrapier's side. You send one HTTP request and get typed JSON back.

03

Only publicly visible data is returned: the results any visitor sees without signing in. No Baidu account or cookie is used.

04

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

claude mcp add -t http scrapier …

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)

n8n

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.

Make

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.

LangChain

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.

PlanMonthly priceCreditsPages of results includedPer 1,000 pages of results
Hobby$2915,00015,000$1.93
Pro$7950,00050,000$1.58
Scale$299250,000250,000$1.20
EnterpriseCustom volume and terms

Prices from the live billing page. See all plans and limits.

Call cost and timing

1credit per successful call
0credits for a failed call
3parallel requests per key
210srecommended client timeout

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

FeatureScrapier Baidu scraperDIY Baidu scraping
Access neededOne Scrapier API keyYour own proxies, parser and servers
Which dataOrganic results for any keyword, as Baidu shows themWhatever your parser extracts
Fields returned6 fields per result: title, link, displayed link, snippet, position and keywordWhatever you build and maintain
SetupSign up, copy a key, send a requestWrite selectors, handle blocks and retries
Cost1 credit per page, from $1.20 per 1,000 pagesProxy, 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.

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.

Get started

Start Scraping Baidu Pages Of Results

Public Baidu pages of results as JSON, 1 credit each, from REST or MCP.