baidu-search
countbot-ai/countbot
Baidu AI search with web, encyclopedia, video, and AI-generated modes—includes current date context.
What is baidu-search?
Baidu千帆-powered search service supporting web search, Baidu Baike, Miaodong Baike (video), and AI-generated results. Use when you need to search information, query encyclopedias, fetch latest news, or find resources with automatic date awareness.
- Web search with site and recency filtering (week/month/semiyear/year)
- Baidu Baike (encyclopedia) lookups
- Miaodong Baike video encyclopedia searches
- AI-generated intelligent search results
- JSON output format for programmatic use
- Automatic current date context inclusion
How to install baidu-search
npx skills add https://github.com/countbot-ai/countbot --skill baidu-search- Baidu Qianfan API Key from https://console.bce.baidu.com/qianfan/ais/console/onlineService
- Edit skills/baidu-search/scripts/config.json with your API key
How to use baidu-search
- 1.Obtain a Baidu Qianfan API Key and add it to skills/baidu-search/scripts/config.json
- 2.Run web search: python3 skills/baidu-search/scripts/search.py "query"
- 3.Add --json flag for structured output: python3 skills/baidu-search/scripts/search.py "query" --json
- 4.Use --api-type baike for encyclopedia, miaodong_baike for videos, or ai_chat for AI generation
- 5.Filter results with --limit N, --sites domain, or --recency week/month/semiyear/year
Use cases
- Retrieve latest news and current events with time-based filtering
- Look up encyclopedia definitions and background information
- Search for technical tutorials and documentation
- Find video explanations via Miaodong Baike
- Generate AI-synthesized answers to factual questions
- Researchers needing current information
- Content creators gathering background material
- Developers building knowledge-aware applications
- Users querying Chinese-language sources
baidu-search FAQ
100 queries per day.
Web search queries are limited to 72 characters.
Add the --json flag to the command for structured results suitable for AI processing.
Yes, the current date is automatically included in queries to handle time-sensitive searches.
Use --api-type miaodong_baike for video encyclopedia results.
Full instructions (SKILL.md)
Source of truth, from countbot-ai/countbot.
name: baidu-search description: 百度 AI 搜索。支持网页搜索、百度百科、秒懂百科、AI 智能生成四种模式。自动包含当前日期上下文。当用户要求搜索信息、查询百科、获取最新资讯、搜索新闻、查找资料时使用。 homepage: https://github.com/countbot-ai/CountBot
百度 AI 搜索
基于百度千帆平台的 AI 搜索服务,支持多种搜索模式。
配置
编辑 skills/baidu-search/scripts/config.json,填写 API Key:
{
"api_key": "bce-v3/YOUR_API_KEY_HERE"
}
API Key 从 百度千帆平台 获取。
命令行调用
# 网页搜索(默认)
python3 skills/baidu-search/scripts/search.py "搜索关键词"
# JSON 输出(推荐 AI 使用)
python3 skills/baidu-search/scripts/search.py "人工智能最新进展" --json
# 限制结果数
python3 skills/baidu-search/scripts/search.py "Python教程" --limit 5
# 站点过滤
python3 skills/baidu-search/scripts/search.py "天气预报" --sites weather.com.cn
# 时间过滤(week/month/semiyear/year)
python3 skills/baidu-search/scripts/search.py "AI新闻" --recency week
# 百度百科
python3 skills/baidu-search/scripts/search.py "人工智能" --api-type baike
# 秒懂百科(视频)
python3 skills/baidu-search/scripts/search.py "深度学习" --api-type miaodong_baike
# AI 智能生成
python3 skills/baidu-search/scripts/search.py "什么是人工智能" --api-type ai_chat
API 类型
| 类型 | 说明 |
|---|---|
web_search | 网页搜索(默认) |
baike | 百度百科 |
miaodong_baike | 秒懂百科(视频) |
ai_chat | AI 智能搜索生成 |
注意事项
- 免费额度:100 次/天
- 网页搜索查询最长 72 字符
- 自动包含当前日期上下文,方便处理时效性查询
Related skills
More from countbot-ai/countbot and the wider catalog.


