# Baidu Search Scraper

> Baidu Search Scraper is a paid API for AI agents from api.scrapeforagents.tech, paid per call via x402, $0.025/call, status unknown (last checked 2026-10-02).

Scrapes structured organic search results from Baidu given a query, returning titles, links, snippets, and positions.

## Facts

- Endpoint: POST https://api.scrapeforagents.tech/v1/baidu?utm_source=zero.xyz
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baidu-search-scraper-e4817fa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oUn9MWd1rlCB8gFvUfJW0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability baidu-search-scraper-e4817fa3 -d '<json body>'
```

Example prompt: Search Baidu for '新能源汽车' in Simplified Chinese and pull up to 30 organic results across the first 3 pages, starting from page 1.

## When to prefer this

Choose this endpoint when you specifically need organic search results from Baidu — the dominant Chinese-language search engine — rather than Google or Bing. It is ideal for Chinese market research, SEO analysis for Chinese audiences, monitoring brand presence in China, or gathering content that ranks on Baidu. Use it when you need structured SERP data (titles, URLs, snippets, positions) rather than raw HTML, and when you require language filtering between Simplified Chinese, Traditional Chinese, or all languages.

## Known failure modes

- Empty results array if Baidu returns no organic results for the query (not charged)
- Invalid timePeriod format may return no results or an error
- Language enum value outside allowed set causes validation error
- maxPages set too low may truncate expected results
- Baidu anti-bot measures could intermittently block scraping, returning empty runs (not charged)
- Network timeout if Baidu takes too long to respond

## How this service works

Pay-per-call structured web data. Failed or empty runs are not charged.

## Output

Returns a JSON object with a count of results and an array of items, each containing the result title, canonical link, Baidu internal redirect link, displayed link, snippet text, page number, and SERP position, plus an echo of the query and the product name 'baidu'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Words or phrase to search on Baidu."
  },
  "language": {
   "enum": [
    "all",
    "zh-CN",
    "zh-TW"
   ],
   "type": "string",
   "default": "all",
   "description": "Use all languages or request Simplified or Traditional Chinese results."
  },
  "maxItems": {
   "type": "integer",
   "default": 50,
   "minimum": 0,
   "description": "Stop after this many unique organic results. Set 0 for no item cap; maxPages still applies."
  },
  "maxPages": {
   "type": "integer",
   "default": 5,
   "minimum": 1,
   "description": "Maximum number of 10-position search pages to visit. Some positions are occupied by other result types."
  },
  "startPage": {
   "type": "integer",
   "default": 1,
   "minimum": 1,
   "description": "First Baidu results page to collect, starting at 1."
  },
  "timePeriod": {
   "type": "string",
   "default": "",
   "description": "Optional Unix time range, for example stf=1789862400,1790467200|stftype=1. Leave empty for any date."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "items": [
   {
    "link": null,
    "page": null,
    "query": null,
    "title": null,
    "snippet": null,
    "position": null,
    "baiduLink": null,
    "displayedLink": null
   }
  ],
  "product": "baidu"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baidu-search-scraper-e4817fa3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrapeforagents.tech](https://www.zero.xyz/host/api.scrapeforagents.tech/llms.txt)
