{"slug": "google-trends-rising-and-breakout-queries-as-json-python-js-n8n", "title": "Google Trends rising and breakout queries as JSON (Python, JS, n8n)", "summary": "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.", "body_md": "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.\n\nGoogle 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.\n\n``` python\nimport os\nfrom apify_client import ApifyClient\n\nclient = ApifyClient(os.environ[\"APIFY_TOKEN\"])\nrun = client.actor(\"cybermax/google-trends\").call(run_input={\n    \"keywords\": [\"ai agents\", \"mcp server\", \"vibe coding\"],\n    \"geo\": \"US\", \"timeRange\": \"today 3-m\", \"maxRelated\": 25,\n})\nfor r in client.dataset(run[\"defaultDatasetId\"]).iterate_items():\n    print(f\"{r['keyword']}: {r['direction']} ({r.get('trendChangePct')}%)\")\n    for q in r[\"relatedQueries\"][\"rising\"]:\n        print(\"   \", q[\"query\"], q[\"formattedValue\"], \"BREAKOUT\" if q[\"breakout\"] else \"\")\njs\nimport { ApifyClient } from 'apify-client';\n\nconst client = new ApifyClient({ token: process.env.APIFY_TOKEN });\nconst run = await client.actor('cybermax/google-trends').call({ keywords: ['claude'], timeRange: 'today 3-m' });\nconst { items } = await client.dataset(run.defaultDatasetId).listItems();\nconst breakouts = items.flatMap((r) => r.relatedQueries.rising.filter((q) => q.breakout).map((q) => q.query));\nconsole.log(breakouts);\nn8n: HTTP Request node (or the Apify node, action \"Run an Actor and get dataset\")\nMethod:  POST\nURL:     https://api.apify.com/v2/acts/cybermax~google-trends/run-sync-get-dataset-items\nAuth:    Header Auth  ->  Authorization: Bearer <your Apify token>\nBody:    JSON  {\"keywords\": [\"your niche\", \"your product\"], \"geo\": \"US\", \"timeRange\": \"today 3-m\", \"monitor\": true}\nOutput:  one n8n item per result row, ready for Google Sheets / Airtable / a Slack message\n\nMake:    Apify app -> \"Run an Actor\" (Actor: cybermax/google-trends, wait for finish = yes)\n         -> Apify \"Get Dataset Items\" (dataset = the run's defaultDatasetId) -> Google Sheets \"Add a Row\"\nZapier:  Apify app -> action \"Run Actor\" (cybermax/google-trends, input JSON as above)\n         -> trigger \"Finished Actor Run\" -> \"Fetch Dataset Items\" -> your app\nRuns longer than 5 minutes: start with POST /v2/acts/cybermax~google-trends/runs and read the dataset when the run finishes.\n\nAdd 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.\n# Any MCP client (Claude Desktop, Claude Code, Cursor, VS Code): Apify's hosted MCP server\n{\n  \"mcpServers\": {\n    \"google-trends\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-remote\", \"https://mcp.apify.com/?tools=cybermax/google-trends\",\n               \"--header\", \"Authorization: Bearer ${APIFY_TOKEN}\"],\n      \"env\": { \"APIFY_TOKEN\": \"<your Apify token>\" }\n    }\n  }\n}\n# The agent sees one tool, cybermax--google-trends, with the Actor's input schema.\n```\n\n**Rising queries for \"claude\" (Swellmeter real record, US, past 12 months)**\n\n| Rising query | Value | Breakout | \n|---|---|---|\n| claude cowork | Breakout | yes | \n| claude mythos | Breakout | yes | \n| claude fable | Breakout | yes | \n\n*Source: Swellmeter (Apify Actor cybermax/google-trends) README, real record*\n\nTop 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.\n\nLeave 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.\n\n**Does Google have an official Trends API?**\n\nGoogle 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.\n\n**What does Breakout mean?**\n\nGoogle shows Breakout when a related search grew by more than 5,000% versus the previous period.\n\n**Can I compare more than 5 keywords?**\n\nGoogle compares up to 5 per chart. Swellmeter can compare 5 on one scale (compare: true) or analyze any number one by one.\n\n**Can an AI agent use it?**\n\nYes. Apify's MCP server exposes it as cybermax--google-trends.\n\nTry it on your own list: [Swellmeter on Apify](https://apify.com/cybermax/google-trends) (Apify's free plan includes $5 of usage a month).\n\n*Published automatically by CyberMax. Every number above comes from the linked public data; nothing is estimated.*", "url": "https://wpnews.pro/news/google-trends-rising-and-breakout-queries-as-json-python-js-n8n", "canonical_source": "https://dev.to/cybermax/google-trends-rising-and-breakout-queries-as-json-python-js-n8n-3d0m", "published_at": "2026-12-01 00:10:53+00:00", "updated_at": "2026-12-01 00:14:30.960008+00:00", "lang": "en", "topics": ["ai-tools", "agent-protocols", "developer-tools"], "entities": ["Google Trends", "Apify", "Swellmeter", "n8n", "Zapier", "Make", "Claude Desktop", "Cursor"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/google-trends-rising-and-breakout-queries-as-json-python-js-n8n", "markdown": "https://wpnews.pro/news/google-trends-rising-and-breakout-queries-as-json-python-js-n8n.md", "text": "https://wpnews.pro/news/google-trends-rising-and-breakout-queries-as-json-python-js-n8n.txt", "jsonld": "https://wpnews.pro/news/google-trends-rising-and-breakout-queries-as-json-python-js-n8n.jsonld"}}