Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bighardperson avatar

Baidu Search

  • 8 installs
  • 33 repo stars
  • Updated April 26, 2026
  • bighardperson/computer-science-skills-collection

baidu-search is a skill that searches the web through the Baidu AI Search Engine API for live information and research.

About

This skill searches the web using the Baidu AI Search API via a bundled Python script. It accepts a query with optional result count and freshness time-range filters and returns live search results. A developer uses it for live information, documentation lookups, or research, especially for Chinese-language queries.

  • Searches the web via the Baidu AI Search Engine (BDSE) API
  • Supports result count (1-50) and freshness/time-range filters
  • Requires a BAIDU_API_KEY configured in OpenClaw

Baidu Search by the numbers

  • 8 all-time installs (skills.sh)
  • Ranked #1,522 of 2,719 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Jul 30, 2026 (Skillselion catalog sync)
At a glance

baidu-search capabilities & compatibility

Requires a BAIDU_API_KEY from the Baidu Qianfan console; usage is billed to that key.

Use cases
web search · research
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What baidu-search says it does

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
SKILL.md
This skill requires a **BAIDU_API_KEY** to be configured in OpenClaw.
SKILL.md
Number of results to return, range 1-50
SKILL.md
npx skills add https://github.com/bighardperson/computer-science-skills-collection --skill baidu-search

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars33
Last updatedApril 26, 2026
Repositorybighardperson/computer-science-skills-collection

What it does

Search the web via the Baidu AI Search API for live information, documentation, or research topics.

Who is it for?

Live web search and research via Baidu, including Chinese-language and time-filtered queries.

Skip if: Users without a Baidu Qianfan API key, since it requires a BAIDU_API_KEY.

When should I use this skill?

you need live web information, documentation, or research results via Baidu search.

By the numbers

  • Result count range 1-50
  • Four relative freshness windows (pd, pw, pm, py)

Files

SKILL.mdMarkdownGitHub ↗

Baidu Search

Search the web via Baidu AI Search API.

Prerequisites

API Key Configuration

This skill requires a BAIDU_API_KEY to be configured in OpenClaw.

If you don't have an API key yet, please visit: https://console.bce.baidu.com/ai-search/qianfan/ais/console/apiKey

For detailed setup instructions, see: references/apikey-fetch.md

Usage

python3 skills/baidu-search/scripts/search.py '<JSON>'

Request Parameters

ParamTypeRequiredDefaultDescription
querystryes-Search query
countintno10Number of results to return, range 1-50
freshnessstrnoNullTime 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.

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.