Google Trends API
/install google-trends-api
Google Trends
Fetch Google Trends data using the bundled script. No API key required.
Quick start
Run the script from the skill directory:
node scripts/trends.mjs \x3Ccommand> [options]
Available commands
| Command | Description |
|---|---|
daily-trends |
Get daily trending search topics |
realtime-trends |
Get real-time trending topics |
autocomplete |
Get autocomplete suggestions for a keyword |
explore |
Explore trend data for a keyword |
interest-by-region |
Get search interest breakdown by region |
related-topics |
Get topics related to a keyword |
related-queries |
Get queries related to a keyword |
Usage examples
Daily trending topics in the US:
node scripts/trends.mjs daily-trends --geo US
Real-time trends (last 4 hours):
node scripts/trends.mjs realtime-trends --geo US --hours 4
Autocomplete suggestions:
node scripts/trends.mjs autocomplete "artificial intelligence"
Explore a keyword:
node scripts/trends.mjs explore "machine learning" --geo US --time "now 7-d"
Interest by region:
node scripts/trends.mjs interest-by-region "bitcoin" --geo US --resolution REGION
Related topics:
node scripts/trends.mjs related-topics "python programming" --geo US
Related queries:
node scripts/trends.mjs related-queries "python programming" --geo US
Options reference
For full option details per command, see reference.md.
Output
All commands output JSON to stdout. Parse the output to extract relevant data for the user. Present results in a readable format (tables, lists, summaries) based on context.
Error handling
If Google rate-limits the request, the script retries with exponential backoff (up to 3 retries). If it still fails, inform the user and suggest waiting before retrying.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install google-trends-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/google-trends-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Google Trends API 是什么?
Fetches Google Trends data including daily trending topics, real-time trends, interest by region, related topics, related queries, and autocomplete suggestio... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 155 次。
如何安装 Google Trends API?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-trends-api」即可一键安装,无需额外配置。
Google Trends API 是免费的吗?
是的,Google Trends API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Google Trends API 支持哪些平台?
Google Trends API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Google Trends API?
由 Terry Djony(@terryds)开发并维护,当前版本 v1.0.0。