cd /news/ai-tools/google-trends-rising-and-breakout-qu… · home › topics › ai-tools › article
[ARTICLE · art-178975] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Google Trends rising and breakout queries as JSON (Python, JS, n8n)

A developer documented a method for extracting Google Trends rising and breakout related queries as structured JSON across many keywords, using the Swellmeter Apify Actor (cybermax/google-trends) since Google offers no public Trends API. The writeup provides Python and JavaScript client examples, an n8n HTTP Request configuration, Make and Zapier recipes, a scheduled monitoring mode that returns only keywords whose verdict changed, and an MCP server setup for clients like Claude Desktop and Cursor, at $0.003 per keyword.

key takeaway

Pulling Google Trends rising queries in bulk requires a third-party scraper like the Swellmeter Apify Actor, which returns per-keyword JSON with breakout flags and trend-change percentages at $0.003 per keyword.

by read3 min views2 publishedDec 1, 2026

Rising related queries are the most useful part of Google Trends for content and product research, and the hardest to get out of the UI in bulk. This walks through what top vs rising vs Breakout mean and how to pull them for many keywords as JSON.

Google has no public Trends API for everyone, so rising queries come from tools that read the Trends website. Swellmeter on Apify returns, for each keyword, the top and rising related queries ("Breakout" flagged as breakout: true), a rising/falling/spiking verdict with the % change, the peak and top regions, as one JSON record per keyword at $0.003 per keyword.

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("cybermax/google-trends").call(run_input={
    "keywords": ["ai agents", "mcp server", "vibe coding"],
    "geo": "US", "timeRange": "today 3-m", "maxRelated": 25,
})
for r in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{r['keyword']}: {r['direction']} ({r.get('trendChangePct')}%)")
    for q in r["relatedQueries"]["rising"]:
        print("   ", q["query"], q["formattedValue"], "BREAKOUT" if q["breakout"] else "")
js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('cybermax/google-trends').call({ keywords: ['claude'], timeRange: 'today 3-m' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const breakouts = items.flatMap((r) => r.relatedQueries.rising.filter((q) => q.breakout).map((q) => q.query));
console.log(breakouts);
n8n: HTTP Request node (or the Apify node, action "Run an Actor and get dataset")
Method:  POST
URL:     https://api.apify.com/v2/acts/cybermax~google-trends/run-sync-get-dataset-items
Auth:    Header Auth  ->  Authorization: Bearer <your Apify token>
Body:    JSON  {"keywords": ["your niche", "your product"], "geo": "US", "timeRange": "today 3-m", "monitor": true}
Output:  one n8n item per result row, ready for Google Sheets / Airtable / a Slack message

Make:    Apify app -> "Run an Actor" (Actor: cybermax/google-trends, wait for finish = yes)
         -> Apify "Get Dataset Items" (dataset = the run's defaultDatasetId) -> Google Sheets "Add a Row"
Zapier:  Apify app -> action "Run Actor" (cybermax/google-trends, input JSON as above)
         -> trigger "Finished Actor Run" -> "Fetch Dataset Items" -> your app
Runs longer than 5 minutes: start with POST /v2/acts/cybermax~google-trends/runs and read the dataset when the run finishes.

Add a Schedule trigger (weekly) in front and a Slack or email step after it: with monitor: true only keywords whose verdict changed or that gained new rising queries come back.
{
  "mcpServers": {
    "google-trends": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.apify.com/?tools=cybermax/google-trends",
               "--header", "Authorization: Bearer ${APIFY_TOKEN}"],
      "env": { "APIFY_TOKEN": "<your Apify token>" }
    }
  }
}

Rising queries for "claude" (Swellmeter real record, US, past 12 months)

Rising query Value Breakout
claude cowork Breakout yes
claude mythos Breakout yes
claude fable Breakout yes

Source: Swellmeter (Apify Actor cybermax/google-trends) README, real record

Top queries are the searches most often made together with your keyword in the period. Rising queries are the ones whose search frequency grew most compared with the period before; Google shows very large growth as "Breakout". Rising queries are where new demand shows up first, which is why content, SEO and product teams watch them.

Leave keywords empty and set trendingGeos (for example ["US", "GB"]) to get Google's trending-now list per country with traffic estimates and news links, one record per country.

Does Google have an official Trends API?

Google opened an official Trends API to a small group of alpha testers in 2025; most teams still use tools that read the public Trends site.

What does Breakout mean?

Google shows Breakout when a related search grew by more than 5,000% versus the previous period.

Can I compare more than 5 keywords?

Google compares up to 5 per chart. Swellmeter can compare 5 on one scale (compare: true) or analyze any number one by one.

Can an AI agent use it?

Yes. Apify's MCP server exposes it as cybermax--google-trends.

Try it on your own list: Swellmeter on Apify (Apify's free plan includes $5 of usage a month).

Published automatically by CyberMax. Every number above comes from the linked public data; nothing is estimated.

── more in #ai-tools 4 stories · sorted by recency
── more on @google trends 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/google-trends-rising…] indexed:0 read:3min 2026-12-01 · —