Google Trends API & MCP for AI Agents: Real-Time Interest & Breakout Queries
Query Google Trends interest over time and rising breakout queries programmatically via API, CLI, or remote MCP—without brittle unofficial Python scrapers or 429 blocks.
Unofficial pytrends scripts break frequently on Google 429 challenges—call normalized google.trends.interest and google.trends.related pay-per-call from one Duang balance.
Why unofficial Google Trends scrapers keep breaking
Google does not offer an open public REST API for Google Trends. Community libraries like pytrends rely on undocumented internal cookies and quickly trigger HTTP 429 rate limits when run from cloud servers or AI agent loops.
- Session cookies expire unpredictably and fail in serverless or CI environments.
- Regional, category, and timeframe parameters are fragile across undocumented endpoints.
- Agents need deterministic JSON arrays of trend scores and breakout queries to compare topics accurately.
Query interest over time and breakout topics via MCP or CLI
Duang normalizes Google Trends into two typed capabilities—google.trends.interest for time-series demand curves and google.trends.related for rising and breakout queries—ready to combine with google.keywords.volume and news.search.
npx @fastagent-sh/duang call google.trends.interest --input '{"query":"mcp server","country":"US"}'
npx @fastagent-sh/duang call google.trends.related --input '{"query":"mcp server","country":"US"}'Combine trend velocity with real search volume
Google Trends scores are relative (0–100). Pair google.trends.related with google.keywords.volume and google.serp.organic in one agent workflow to validate whether a breakout topic also has real commercial volume.
Try live capabilities right now.
Connect to your AI agent in 60 seconds.
Read https://duang.ai/SKILL.md and use duang to run google.trends.interest.
Frequently asked questions
Can Claude Code or Cursor query Google Trends directly via MCP?
Yes. Connect https://api.duang.ai/mcp and ask your agent to call google.trends.interest or google.trends.related with any keyword and country code.
Do I need a monthly SERP subscription just to check Google Trends?
No. New teams start with $1 free credit on Duang and pay exact USD per call with $0 charged on failed upstream calls.
Can I combine Google Trends with real monthly keyword search volume?
Yes. Chain google.trends.related with google.keywords.volume in one agent prompt to pair relative breakout velocity with absolute monthly search volume and CPC.