OpenClaw · Skill

Baidu Search

Search the web via Baidu AI Search API.

Search & Research
v1.1.2
VirusTotal: Benign

Install

Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.

Primary command

clawhub install ide-rea/baidu-search

ClawHub installer

npx clawhub@latest install ide-rea/baidu-search

OpenClaw CLI

openclaw skills install ide-rea/baidu-search

Direct OpenClaw install

openclaw install ide-rea/baidu-search

What this skill does

Search the web via Baidu AI Search API.

Why it matters

Gives agents access to Baidu's index, which covers Chinese-language content more comprehensively than Western search engines.

Typical use cases

  • Looking up recent Chinese-language news
  • Researching topics with Baidu's index
  • Fetching results from the past 24 hours or a custom date range
  • Finding documentation or references via Baidu
  • Gathering multiple results in a single query

Source instructions

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 OpenClaw skills

Browse all →
Featured slot

Your product here

Reserve this slot to reach operators and coding-agent buyers.

Shown where builders are actively comparing tools and deployment options.

Advertise