
baidu web search
Search the web using Baidu AI Search Engine (BDSE) for live information and documentation
Baidu Search is a community skill for web search using Baidu AI Search Engine, covering Chinese language queries, real-time information retrieval, freshness filtering, result formatting, and API integration for accessing Chinese web content.
What Is This?
Overview
Baidu Search provides AI agents with access to Baidu's web search engine, the dominant search provider for Chinese language content. It covers Chinese language queries that search Baidu's extensive index of Chinese web pages, forums, and knowledge bases with native language understanding, real-time information retrieval that returns current results from Baidu's continuously updated web index, freshness filtering that restricts results to specific time periods using date range codes for recent content, result formatting that returns clean structured data suitable for AI agent consumption, and search customization that controls result count and date ranges through simple API parameters. The skill enables agents to access Chinese web content that is often poorly indexed by Western search engines.
Who Should Use This
This skill serves AI agents processing Chinese language queries, research tools requiring Chinese web content coverage, and teams building bilingual applications that need both Chinese and English search capabilities.
Why Use It?
Problems It Solves
Western search engines like Google have limited coverage of Chinese web content including forums, knowledge platforms, and regional news sites. Chinese language queries on English-focused search APIs return poor results due to weaker indexing of Chinese web pages. Accessing real-time Chinese news and discussion content requires a search engine with strong Chinese web crawling infrastructure. AI agents serving Chinese-speaking users need a search backend optimized for Chinese language understanding and ranking.
Core Highlights
Chinese index provides deep coverage of Chinese language web pages and knowledge platforms. Freshness filter restricts results by time period using date range codes. Result formatter returns structured data optimized for AI agent processing. Query optimizer handles Chinese language nuances for better search relevance.
How to Use It?
Basic Usage
import os, requests
api_key = os.environ[
'BAIDU_SEARCH_KEY']
params = {
'query': 'Python'
' web framework',
'count': 10
}
resp = requests.get(
'https://api.baidu.com'
'/search',
headers={
'Authorization':
f'Bearer {api_key}'
},
params=params)
for r in resp.json()[
'results']:
print(f'{r["title"]}')
print(f'{r["url"]}\n')Real-World Examples
news_params = {
'query': 'AI industry',
'count': 5,
'freshness': 'pw'
}
news = requests.get(
'https://api.baidu.com'
'/search',
headers={
'Authorization':
f'Bearer {api_key}'
},
params=news_params)
for item in news.json()[
'results']:
print(
f'{item["title"]} '
f'({item["date"]})')
range_params = {
'query': 'tech trends',
'count': 10,
'freshness':
'2025-01-01to'
'2025-03-01'
}Advanced Tips
Use the freshness parameter with date range format for precise temporal filtering when researching topics within specific time windows. Combine Baidu search with Western search engines in a multi-search setup to get comprehensive bilingual coverage. Use short freshness codes (pd for past day, pw for past week, pm for past month) for quick recent content filtering.
When to Use It?
Use Cases
Research Chinese market trends and consumer discussions on Chinese web platforms and forums. Build a bilingual AI assistant that searches both Chinese and English web content based on query language. Monitor Chinese news sources for industry developments not covered by English language media.
Related Topics
Chinese web search, Baidu API, bilingual search, information retrieval, news monitoring, and cross-language search integration.
Important Notes
Requirements
A Baidu search API key configured in environment variables for authentication. Python with the requests library for making API calls to Baidu endpoints. Network access to Baidu API servers which may have different availability depending on geographic region.
Usage Recommendations
Do: use freshness filters when searching for current events to avoid outdated results dominating the response. Combine with other search providers for comprehensive cross-language research coverage. Handle character encoding properly since Chinese content requires UTF-8 support throughout the processing pipeline.
Don't: assume Baidu results have the same ranking criteria as Google since different search engines optimize for different relevance signals. Send very long query strings since shorter, focused queries produce better results on Baidu. Ignore API rate limits since exceeding them will result in temporary access restrictions.
Limitations
Baidu's index is strongest for Chinese language content and may have limited coverage of non-Chinese web pages. API availability and latency may vary by geographic region due to network routing. Some Baidu search features available on the web interface may not be exposed through the API endpoints.
More Skills You Might Like
Explore similar skills to enhance your workflow
Shopify Products
A Claude Code skill for shopify products workflows and automation
Discord
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react
Speech
Enhance speech processing with automated synthesis and seamless integration for voice-driven applications
Blocknative Automation
Automate Blocknative tasks via Rube MCP (Composio)
ClickUp
ClickUp API integration with managed OAuth. Access tasks, lists, folders, spaces, workspaces
Langbase Automation
Automate Langbase operations through Composio's Langbase toolkit via