Baidu search results and Chinese SERP data via the Apify Baidu Search Scraper, hosted MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | 中文
The most efficient, reliable, and developer-friendly way to use the Baidu API.
Actor page: apify.com/johnvc/Baidu-Search-Scraper Input schema: apify.com/johnvc/Baidu-Search-Scraper/input-schema
The Baidu API (百度) runs a Baidu search for any keyword and returns clean, structured JSON. Each run gives you organic results (title, link, snippet, position), answer boxes, related videos, "people also search for" suggestions, related searches, and trending top searches, plus per-page metadata and pagination details. It supports desktop, mobile, and tablet results, Simplified and Traditional Chinese localization, time-range filtering, and multi-page pagination.
Clone the repository
Install dependencies with UV
Configure your API key
Run the example
Complete SERP coverage. One call returns the full Baidu results page as structured data: organic listings, answer boxes, related videos, "people also search for", related searches, and trending top searches. You get the whole page, not just ten blue links.
Built for China-market research. Target Simplified or Traditional Chinese results, switch between desktop, mobile, and tablet, and filter by a precise date range. That makes it practical for SEO, market research, and brand monitoring in Chinese-language markets.
Predictable, pay-per-use pricing. Billing is per run plus per page processed, with no monthly rental. You pay for the searches you actually make, and you control cost directly with the page limit.
Clean, consistent JSON. Every response uses the same shape, so you parse results once and reuse the code across queries. Per-page metadata and pagination details make it easy to page through larger result sets.
Easy to automate. Call it from Python in a few lines, or load it as an MCP tool so assistants like Claude and Cursor can run Baidu searches for you on demand.
A single-page desktop search for one keyword. This is the cheapest way to try the API.
A multi-field search with Simplified Chinese localization, more results per page, and a date-range filter.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | - | The search term to look up on Baidu. |
device | string | No | desktop | Device to simulate: desktop, mobile, or tablet. |
localization | integer | No | 1 | Language filter: 1 = all languages, 2 = Simplified Chinese, 3 = Traditional Chinese. |
page | integer | No | 1 | Starting page number for results. |
num_results | integer | No | 10 | Results to retrieve per page (max 50). |
time_period | string | No | (none) | Date-range filter using Unix timestamps, format `stf=START_UNIX,END_UNIX |
max_pagination | integer | No | 3 | Maximum pages to fetch (0 = no limit). |
output_file | string | No | (none) | Optional filename to save results; auto-generated if omitted. |
A representative response for the query machine learning. Some related arrays are trimmed here for readability; they are returned with the same per-item structure shown for organic_results.
You can load the Baidu API as an MCP tool so assistants call it for you. The MCP server URL preloads just this one Actor:
Authenticate with OAuth in the browser when offered, or with your Apify API token (the same APIFY_API_TOKEN used by the Python example). Get a token at https://console.apify.com/settings/integrations and a free Apify account at https://apify.com?fpr=9n7kx3 .

Cowork is the desktop app's automation mode. To give it the Baidu API as a tool, add the Apify MCP server as a connector.
claude_desktop_config.json directly).
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonDownload the desktop app and start a free trial: https://claude.ai/referral/uIlpa7nPLg More help: https://docs.apify.com/platform/integrations/claude-desktop

Claude Code is the command-line tool. Add the Actor's MCP server with one command:
To use a token instead of browser OAuth:
Then verify with claude mcp list, or run /mcp inside a session. Ask Claude Code to call the Baidu API.
Try Claude Code free: https://claude.ai/referral/uIlpa7nPLg Claude Code MCP docs: https://code.claude.com/docs/en/mcp

On claude.ai you add Apify as a connector, then enable just this Actor's tool.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/baidu-search)<a href="https://allmcps.com/mcp/baidu-search"><img src="https://allmcps.com/api/badge/baidu-search?style=directory" alt="Baidu Search on AllMCPs" /></a>