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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install google-trends-api - After installation, invoke the skill by name or use
/google-trends-api - Provide required inputs per the skill's parameter spec and get structured output
What is Google Trends API?
Fetches Google Trends data including daily trending topics, real-time trends, interest by region, related topics, related queries, and autocomplete suggestio... It is an AI Agent Skill for Claude Code / OpenClaw, with 155 downloads so far.
How do I install Google Trends API?
Run "/install google-trends-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Google Trends API free?
Yes, Google Trends API is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Google Trends API support?
Google Trends API is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Google Trends API?
It is built and maintained by Terry Djony (@terryds); the current version is v1.0.0.