# Baidu Search Scraper: Search Results as JSON | Scrapier (https://scrapier.io/scrapers/baidu/search/)

> Baidu Search Scraper API: organic results for any keyword as JSON with title, link, displayed link, snippet and position. 1 credit per call. Get a free API key.

Last updated: 2026-11-12

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

[Get a free API key →](https://app.scrapier.io/sign-up) [View API docs](https://scrapier.io/scrapers/baidu/search/api/)

Free API key · 1 credit per page of results · failed calls free

Last updated 9 Nov 2026

// 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

Pricing

[1 credit / page of results](https://scrapier.io/pricing/)

From $1.58 per 1,000 on Pro

Endpoint facts

Credits per call**1**

Pagination**cursor**

Baidu login**Not needed**

Format**JSON**

Auth

`X-API-Key: <your key>`

MCP tool

`run_scrape · baidu-search`

One of six tools in the Scrapier MCP server, which reach all 199 endpoints.

Platform

[Baidu: 1 endpoints →](https://scrapier.io/scrapers/baidu/)

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](#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.

Baidu**Baidu Search Scraper**Live

Platform

Endpoint

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 →](https://scrapier.io/scrapers/baidu/search/mcp/)

### Run it yourself

1. **Get your free Scrapier API key**Sign up at [app.scrapier.io](https://app.scrapier.io/sign-up); the free tier lets you try it first.
2. **Open Baidu Search Scraper in the catalog**It lives under [Scrapers / Baidu](https://scrapier.io/scrapers/baidu/), next to the other Baidu tools.
3. **Enter the search term**For example `机器学习` in `query`. Set `days` to keep only the last N days, or `time_period` for exact dates.
4. **Send your API request**One 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 results**Each 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 results**`title`, `link` and `snippet` for every result
- **Position**`position` gives each result's rank on its page
- **Date filter**`days` or `time_period` limits results to a date range
- **Domain**`displayed_link` carries the domain Baidu displays
- **Paging**`next_cursor` reads the next page of results
- **Raw mode**`raw_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](https://scrapier.io/scrapers/baidu/search/mcp/) 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).

| 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

POST body · input.json

{
  "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](https://docs.scrapier.io/errors/). 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

| 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?

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](https://scrapier.io/scrapers/baidu/search/api/).

### 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 →](https://scrapier.io/scrapers/baidu/search/mcp/)

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

| 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](https://scrapier.io/enterprise/#contact) |

Prices from the live billing page. [See all plans and limits](https://scrapier.io/pricing/).

## Call cost and timing

**1**credit per successful call

**0**credits for a failed call

**3**parallel requests per key

**210s**recommended 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](https://docs.scrapier.io/rate-limits/) 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](https://scrapier.io/terms/).

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

## Related scrapers

All 1 Baidu endpoints are on the [Baidu scraper hub](https://scrapier.io/scrapers/baidu/).

## Your feedback

Found a bug or missing a field? Let us know. Write to support@scrapier.io and the team replies to every report.

[Report an issue](https://scrapier.io/contact/)[Email support](mailto:support@scrapier.io)

Get started

## Start Scraping Baidu Pages Of Results

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

[Get a free API key →](https://app.scrapier.io/sign-up)[View pricing](https://scrapier.io/pricing/)

---
Canonical page: https://scrapier.io/scrapers/baidu/search/
Site index for AI agents: https://scrapier.io/llms.txt
