Baidu Search (Free)

Data & APIs

Free Baidu web search, no API key required, supports time range filtering

Install

openclaw skills install baidu-search-free

Baidu Search (Free)

Free Baidu web search tool, no API key or authentication required, ready to use out of box.

Features

✅ No API key required, completely free ✅ Supports Chinese/English search queries ✅ Time range filtering: 1 day/1 week/1 month/1 year/custom date range ✅ Customizable result count (up to 50 results) ✅ Automatic anti-scraping handling with retry mechanism ✅ Returns title, snippet, real URL, and publish time

Usage

python scripts/search.py '{"query": "your search keywords", "count": 10, "freshness": "pd/pw/pm/py/YYYY-MM-DDtoYYYY-MM-DD"}'

⚠️ Note: If you encounter anti-scraping verification errors, this is likely due to Baidu blocking your server's IP. This is a known limitation when scraping Baidu from cloud servers. Consider using a proxy or VPN if needed.

Parameters

ParameterTypeRequiredDefaultDescription
querystringyes-Search keywords
countintno10Number of results to return, max 50
freshnessstringnonullTime range filter: pd(past 24h), pw(past week), pm(past month), py(past year), or custom date range in format YYYY-MM-DDtoYYYY-MM-DD

Example

python scripts/search.py '{"query": "Linzhi Tibet travel guide", "count": 3, "freshness": "pm"}'