← Back to Skills Marketplace
cgxxxxxxxxxxxx

Baidu Search

by cgxxxxxxxxxxxx · GitHub ↗ · v1.1.4 · MIT-0
cross-platform ✓ Security Clean
111
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install baidu-search-engine
Description
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
README (SKILL.md)

Baidu Search

Search the web via Baidu AI Search API.

Usage

python3 skills/baidu-search/scripts/search.py '\x3CJSON>'

Request Parameters

Param Type Required Default Description
query str yes - Search query
count int no 10 Number of results to return, range 1-50
freshness str no Null Time range, two formats: format one is ”YYYY-MM-DDtoYYYY-MM-DD“, and format two includes pd, pw, pm, and py, representing the past 24 hours, past 7 days, past 31 days, and past 365 days respectively

Examples

# Basic search
python3 scripts/search.py '{"query":"人工智能"}'

# Freshness first format "YYYY-MM-DDtoYYYY-MM-DD" example
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"2025-09-01to2025-09-08"
}'

# Freshness second format pd、pw、pm、py example
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"pd"
}'

# set count, the number of results to return
python3 scripts/search.py '{
  "query":"旅游景点",
  "count": 20,
}'

Current Status

Fully functional.

Usage Guidance
This skill appears to do what it claims, but take these precautions before installing: (1) Only provide a BAIDU_API_KEY you trust to this skill — the key will be sent to Baidu's qianfan.baidubce.com endpoint. (2) Verify the publisher or obtain an official homepage if you need provenance (the package metadata in the files shows inconsistent owner/slug/version values). (3) Ensure Python's 'requests' is installed in the runtime environment or the script will fail. (4) Monitor your Baidu API usage and rotate or scope the key if possible. If you need stronger assurance, ask the publisher for an official homepage or signed release artifacts.
Capability Assessment
Purpose & Capability
The name/description (Baidu web search) matches the code and declared requirements: the script sends queries to a Baidu AI search endpoint (qianfan.baidubce.com) and uses BAIDU_API_KEY for Authorization. Required binary (python3) is appropriate for running the included Python script.
Instruction Scope
SKILL.md instructs the agent to invoke the provided Python script with a JSON payload. The script only reads the BAIDU_API_KEY environment variable and the provided JSON argument, calls the Baidu endpoint, and returns filtered results; it does not access other files, unrelated env vars, or external endpoints beyond Baidu.
Install Mechanism
There is no install spec (instruction-only), which minimizes install risk. The package includes a Python script that makes HTTP requests but the metadata does not declare the Python 'requests' dependency — callers will need that package available or the script will fail. No remote downloads or archive extraction are performed.
Credentials
Only BAIDU_API_KEY is required and is the declared primary credential. That key is used only to authenticate requests to the Baidu search API (sent in the Authorization header). No other credentials or broad filesystem/config paths are requested.
Persistence & Privilege
The skill is not always-enabled, is user-invocable, and does not request persistence or modify other skills or system-wide settings. It does not elevate privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install baidu-search-engine
  3. After installation, invoke the skill by name or use /baidu-search-engine
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.4
- Improved documentation with clear usage instructions and parameter descriptions - Added detailed examples for various search options (basic, freshness, and count) - Clarified request parameter formats and usage scenarios - Stated current status: fully functional
Metadata
Slug baidu-search-engine
Version 1.1.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Baidu Search?

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics. It is an AI Agent Skill for Claude Code / OpenClaw, with 111 downloads so far.

How do I install Baidu Search?

Run "/install baidu-search-engine" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Baidu Search free?

Yes, Baidu Search is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Baidu Search support?

Baidu Search is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Baidu Search?

It is built and maintained by cgxxxxxxxxxxxx (@cgxxxxxxxxxxxx); the current version is v1.1.4.

💬 Comments