跳到正文
cccskills
免费在 GitHub 公开

websearchapi

网页/新闻/财经/视频/地图/酒店/航班搜索工具,基于 SearchAPI (Google)。支持多种搜索类型,适合 Agent 获取实时网络信息。

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(6)

  • SKILL.md3.2 KB
  • _meta.json279 B
  • tools/websearchapi/config.json120 B
  • tools/websearchapi/package.json533 B
  • tools/websearchapi/README.md2.9 KB
  • tools/websearchapi/websearchapi.js16.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

WebSearchAPI

基于 SearchAPI (Google) 的多类型搜索工具,适合 Agent 获取实时网络信息。

功能特点

  • 多种搜索类型: 网页、新闻、视频、财经、地图、酒店、航班
  • 自动重试: 网络错误自动重试,提高稳定性
  • 结构化返回: Agent 直接可用的 JSON 格式
  • 零外部依赖: 纯 Node.js 内置模块

安装

# 复制 tools/websearchapi 目录到你的项目
# 配置 API Key
cd tools/websearchapi
node websearchapi.js config set-key YOUR_API_KEY

API Key 获取: https://searchapi.io (免费注册)

使用方法

使用 exec 工具调用:

node <path>/websearchapi.js <命令> [关键词] [选项]

搜索类型

类型命令说明
网页s 或 search通用网页搜索
新闻news最新新闻
视频video视频搜索
财经finance股票/金融信息
地图maps地点/商户
酒店hotels酒店搜索
航班flights航班搜索

选项

选项说明默认值
--num结果数量5
--lang语言zh-CN
--gl地区cn
--jsonJSON 格式输出文本

Agent 调用示例

# 网页搜索
node websearchapi.js s "MCP 协议"

# 新闻搜索
node websearchapi.js news "人工智能"

# 财经搜索 (用股票代码)
node websearchapi.js finance "AAPL"

# JSON 格式 (推荐,便于解析)
node websearchapi.js s "关键词" --json

返回格式

JSON 模式返回:

{
  "success": true,
  "query": "关键词",
  "type": "google",
  "count": 5,
  "results": [
    {
      "title": "结果标题",
      "link": "链接地址",
      "snippet": "摘要内容",
      "source": "来源"
    }
  ],
  "metadata": {
    "totalResults": 数量,
    "timeTaken": 耗时,
    "engine": "google"
  }
}

配置

查看配置

node websearchapi.js config

设置 API Key

node websearchapi.js config set-key YOUR_API_KEY

修改默认选项

node websearchapi.js config set-num 10      # 默认结果数
node websearchapi.js config set-lang en     # 默认语言
node websearchapi.js config set-gl us       # 默认地区
node websearchapi.js config set-retry 5     # 重试次数

迁移部署

将整个 tools 目录复制到新机器:

# 复制到新机器
scp -r ./tools/websearchapi user@new-server:/path/to/tools/

# 配置 API Key
cd /path/to/tools/websearchapi
node websearchapi.js config set-key YOUR_API_KEY

# 测试
node websearchapi.js test

故障排除

搜索失败

  • 检查 API Key 是否正确: node websearchapi.js config
  • 检查网络连接

财经搜索无结果

  • 尝试用股票代码: finance "AAPL"
  • 尝试英文: finance "Tesla stock"

请求超时

  • 网络较慢时可增加重试次数: config set-retry 5

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

0protocol

免费

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

0xarchive

免费

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

Calculate ROI for AI-as-a-Service (managed AI agents). Estimates cost savings, efficiency gains, and payback period for deploying AI agents across business operations. Use when evaluating whether managed AI agents make financial sense for a company.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

Design, build, deploy, and operate production AI agent systems — single agents, multi-agent teams, and autonomous swarms. Complete methodology from agent architecture through orchestration, memory systems, safety guardrails, and operational excellence.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

Design, build, test, document, and secure production-grade APIs. Covers the full lifecycle from schema design through deployment, monitoring, and versioning. Use when designing new APIs, reviewing existing ones, generating OpenAPI specs, building test suites, or debugging production issues.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.

中文简介正在准备中。当前显示原文说明。

johnalbertini14-glitch/openclaw-skills22026年2月26日 更新

查看 johnalbertini14-glitch 的全部技能

报告此技能的问题