test
v1.0.0搜索 the 网页 using BAIdu AI 搜索 Engine (BDSE). Use for live in格式化ion, documentation, or re搜索 topics.
运行时依赖
安装命令
点击复制技能文档
BAIdu 搜索
搜索 the 网页 via BAIdu AI 搜索 API.
Prerequisites API Key Configuration
This 技能 requires a BAIDU_API_KEY to be 配置d in OpenClaw.
If you don't have an API key yet, please visit: https://console.bce.bAIdu.com/AI-搜索/qianfan/AIs/console/APIKey
For detAIled 设置up instructions, see: references/APIkey-fetch.md
Usage python3 技能s/bAIdu-搜索/scripts/搜索.py ''
请求 Parameters Param Type Required Default Description 查询 str yes - 搜索 查询 count int no 10 Number of 结果s to return, range 1-50 freshness str no Null Time range, two 格式化s: 格式化 one is ”YYYY-MM-DDtoYYYY-MM-DD“, and 格式化 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 搜索 python3 scripts/搜索.py '{"查询":"人工智能"}'
# Freshness first 格式化 "YYYY-MM-DDtoYYYY-MM-DD" example python3 scripts/搜索.py '{ "查询":"最新新闻", "freshness":"2025-09-01to2025-09-08" }'
# Freshness second 格式化 pd、pw、pm、py example python3 scripts/搜索.py '{ "查询":"最新新闻", "freshness":"pd" }'
# 设置 count, the number of 结果s to return python3 scripts/搜索.py '{ "查询":"旅游景点", "count": 20, }'
Current 状态
Fully functional.