by meka-im
Open-source (MIT) pytrends alternative for AI agents, CLI & MCP — calibrated daily search volume via 59 Google Ads anchors
# Add to your Claude Code skills
git clone https://github.com/meka-im/google-trends-for-agentGuides for using ai agents skills like google-trends-for-agent.
Last scanned: 11/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-30T16:20:18.400Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}google-trends-for-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by meka-im. Open-source (MIT) pytrends alternative for AI agents, CLI & MCP — calibrated daily search volume via 59 Google Ads anchors. It has 107 GitHub stars.
Yes. google-trends-for-agent passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/meka-im/google-trends-for-agent" and add it to your Claude Code skills directory (see the Installation section above).
google-trends-for-agent is primarily written in TypeScript. It is open-source under meka-im on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh google-trends-for-agent against similar tools.
No comments yet. Be the first to share your thoughts!
google-trends-for-agent (gtfa) is a modern open-source (MIT) alternative to the archived pytrends library, built for AI agents, CLI workflows, and MCP clients. Instead of raw 0–100 relative curves or frequent HTTP 429 failures, it returns a stable JSON envelope, calibrated daily search volume estimates (using 59 public Google Ads anchors), charts, and explicit error codes.
[!WARNING] Unofficial. Not affiliated with or endorsed by Google. This project calls undocumented public Google Trends web endpoints that can change or fail without notice, and use may conflict with Google's Terms of Service. Use it for light, interactive analysis, not bulk scraping or an SLA.
Run immediately with npx on your own local IP ($0 unlimited — also honors your own HTTPS_PROXY / HTTP_PROXY with zero quota cap):
npx -y -p google-trends-for-agent gtfa snapshot Sora --geo US --json --pretty
Or install globally from npm (google-trends-for-agent):
npm install -g google-trends-for-agent
Add the local MCP server (gtfa-mcp) to Claude Code, Cursor, Codex, or Windsurf:
{
"mcpServers": {
"google-trends": {
"command": "npx",
"args": ["-y", "-p", "google-trends-for-agent", "gtfa-mcp"]
}
}
}
gtfa snapshot <term> (trends_snapshot) — trend curve, calibrated daily search volume, and related queries in one call.gtfa ask <term> (trends_ask) — quick single-term momentum check with optional anchor validation (--validate).gtfa compare <a,b,...> (trends_compare) — compare up to 5 keywords side by side (--calibrate for daily searches).gtfa now (trends_now) — real-time trending searches across up to 30 countries.google-trends-for-agent?| Capability | google-trends-for-agent (MIT) |
pytrends (Archived Apr 2025) |
Legacy SEO Tools (Ahrefs / Semrush) |
|---|---|---|---|
| Status & License | Actively maintained · 100% Free MIT | Archived read-only (last push 2024) | Paid subscription ($99–$139+/mo) |
| Breakout Keywords | Real-time capture (e.g. gemini 4 carbon at 18,000/day) |
Relative 0–100 only |
Shows 0 for 30+ days |
| Daily Search Volume | Calibrated via 59 open Google Ads anchors | No absolute volume | Lagging monthly averages |
| HTTP 429 Recovery | $0 unlimited on Local IP or your own HTTPS_PROXY / HTTP_PROXY · or 1-click switch to Public Open-Source Actor ($5/mo Apify free tier ≈ 3,000–7,000 queries) or Self-Hosted Actor (same MIT repo) |
Frequent TooManyRequestsError (429) |
Closed database |
| Surfaces | CLI (gtfa), MCP (gtfa-mcp), DeepSeek Harness (dsh) plugin, Apify Actor |
Python script only | Web UI / paid API |
pytrendspytrends call |
google-trends-for-agent (gtfa) equivalent |
|---|---|
pytrends.interest_over_time() (single term) |
gtfa snapshot "cursor" --geo US --json (adds calibrated daily volume + related queries) |
pytrends.interest_over_time() (2–5 terms) |
gtfa compare "cursor,windsurf,codex" --geo US --calibrate --json |
pytrends.related_queries() |
Included automatically in gtfa snapshot (related.top & related.rising) |
pytrends.trending_searches(pn='united_states') |
gtfa now --geo US --json |
TooManyRequestsError: 429 |
Set HTTPS_PROXY ($0 unlimited), or add --egress actor-public with APIFY_TOKEN for residential proxy rotation |
See the full walkthrough: Fixing pytrends HTTP 429 & Migrating to google-trends-for-agent.
AI agents: start at the Client Setup Router and open the guide for your exact host before installing or calling tools.
| Route | Where it runs | Execution |
|---|---|---|
| Local | This machine | Default $0 unlimited direct access (also honors custom HTTPS_PROXY / HTTP_PROXY) via CLI, stdio MCP, or native dsh tools |
| Public Actor | Your Apify account | One run per query; exits when done, no deployment ($5/mo free tier) |
| My own Actor | Your Apify account | Deploy this MIT repo once, then run on demand |
Muse, GrokBot and Dots: use Apify on demand by default, with either the public Actor or your own deployment. Use the managed remote MCP gateway where supported, or the client's authenticated Apify connector/API. Local access remains available for development and explicit direct-use setups.
Fork the repository and build it with Link Git repository in Apify Console, or run apify push. Keep Server / Standby disabled. In dsh, select My own Actor, sign in with Apify, and select the built Actor.
For an existing deployment from official main, use Update selected Actor in dsh. After the build finishes, Test connection shows keyword access and the actual Actor/plugin versions separately. Custom or pinned source is updated in Apify Console. See the release and acceptance checklist.
For Muse, GrokBot and Dots with remote MCP support, use Apify's hosted gateway and complete OAuth in the client:
{
"mcpServers": {
"google-trends": {
"url": "https://mcp.apify.com?tools=meka.im/google-trends-for-agent"
}
}
}
For your own deployment, replace meka.im/google-trends-for-agent in tools= with your account's <username>/<actor-name>. The account must have access to it.
The gateway exposes this project as an Actor tool and supplies Dataset, key-value-store, and abort to