360 Secure SkillHub
360 安全技能中心
当前公开展示的是 Baidu Search。本作品已批准的版本仍可按原地址安装和更新。

百度搜索

封装百度 AI 搜索接口的检索 Skill,以单个 Python 脚本为入口,读取 JSON 参数中的查询词、返回结果数量和时间范围过滤条件并返回检索结果。运行需配置 BAIDU_API_KEY 环境变量,并通过网络调用外部搜索服务,材料未说明返回结果的具体字段格式。

jeayoo
jeayoo
热度 60.33
最近更新 2026-05-11 17:36:54
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add baidu-search-1-1-2
Metadata
name
baidu-search
description
Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.
metadata
{"openclaw":{"emoji":"🔍︎","requires":{"bins":["python3"],"env":["BAIDU_API_KEY"]},"primaryEnv":"BAIDU_API_KEY"}}

Baidu Search

Search the web via Baidu AI Search API.

Usage

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

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.