openakita/skills@baidu-search

Search the Chinese web and images in real time via the Baidu Qianfan API.

2.0k|274|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/openakita/openakita --skill openakita-skills-baidu-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openakita/skills@baidu-search
Source: https://github.com/openakita/openakita/tree/main/skills/baidu-search
Command: npx skills add https://github.com/openakita/openakita --skill openakita-skills-baidu-search

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Static model knowledge cannot answer questions about current events, recent news, or up-to-date information on the Chinese web. This Skill connects an agent to Baidu's live search index so it can retrieve fresh web and image results on demand.

Core Features & Use Cases

  • Web Search: Query Baidu's real-time index for the latest Chinese-language news and information.
  • Image Search: Perform multimodal image and similar-image retrieval through the same API.
  • Time Filtering & Authority Ratings: Filter results by publish time and review relevance and authority scores attached to each result.
  • Use Case: A user asks their agent for today's trending tech news in China; the agent runs the baidu_search.py script with the query and returns ranked, time-filtered results with authority ratings.

Quick Start

Set the BAIDU_QIANFAN_AK and BAIDU_QIANFAN_SK environment variables, then ask the agent to search Baidu for the latest news on any topic.

Frequently Asked Questions about openakita/skills@baidu-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search the Chinese web from an AI agent?

Run the baidu_search.py script with the web subcommand and your query, for example python3 scripts/baidu_search.py web "your query". The script authenticates with Baidu Qianfan and returns JSON search results.

How to get a Baidu Qianfan API key for search?

Register at the Baidu Qianfan console (console.bce.baidu.com/qianfan) to obtain an API Key and Secret Key. Set them as the BAIDU_QIANFAN_AK and BAIDU_QIANFAN_SK environment variables before running the script.

Does Baidu search API support image search?

Yes, the script supports image search via the image subcommand, which queries Baidu's multimodal image retrieval endpoint. You can control result count with the --page-size flag.

Why does baidu_search.py fail with an authentication error?

Authentication fails when BAIDU_QIANFAN_AK or BAIDU_QIANFAN_SK are missing or invalid, since the script exchanges them for an access token before searching. Verify both environment variables are set and the credentials are active in the Qianfan console.

What are the limitations of the Baidu search CLI?

The tool only covers Baidu's index, so it is best suited for Chinese-language content rather than global English sources. Results depend on your Qianfan account quota, and pagination is limited to page number and page size parameters.