本文へ移動
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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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 のスキルをすべて見る

このスキルの問題を報告する