ScavioScavio
Pricing
Tools
Sign InsGet Startedg
Blog
Google5 min readNov 29, 2026

Why Does Scraping Google Trends in n8n Return an Empty Output? Call a Trending Now API Instead

The Trends page fills in its numbers after it loads, so n8n gets an empty shell. Scavio's Google Trends API returns trending searches as JSON, 1 credit a call.

Scavio Team

Nov 29, 2026

Try the Google Trends API free
scavio
n8n / Automation
Google

An n8n workflow that scrapes Google Trends gets an empty output because the Trends page fills in its numbers after it loads, so the HTTP Request node only sees the page before the data arrives. Call an API that returns the data instead: Scavio's Google Trends API answers POST /api/v2/google/trending with the searches trending in a country right now, each with a search-volume figure, growth, start time and status, as JSON that an n8n Code node can turn into a Slack message. Each call costs 1 credit, about $0.001 on the Growth plan.

On r/n8n, a new n8n user wanted a simple workflow that pushes real-time Google Trends data into a Slack channel. They had a trigger, an HTTP Request node and an HTML node, but "the output of the string is empty". The thread drew 28 comments and a score of 20. One reply suggested an Apify actor, and another user answered that it returned 0 items for them. Another said there were no Google Trends APIs to use at all. Since then Google has announced an official Google Trends API, but it is an alpha for approved testers and is built for interest over time, not a live trending feed. The rest of this post builds the workflow the poster wanted.

Step 1: Ask for what is trending now

Bash
curl -s https://api.scavio.dev/api/v2/google/trending \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"geo": "US", "hours": 4, "status": "active", "sort": "search_volume"}'

geo is required and takes a country code. hours is the window Google's Trending now page offers (4, 24, 48 or 168), status: "active" drops searches that have already cooled off, and sort orders the list. At 02:55 UTC on November 29, 2026, the evening of November 28 in the US, this returned 92 active searches in 1.2 s. The first, with its 44 related searches trimmed to 3:

JSON
{
  "title": "alabama football",
  "search_volume": 200000,
  "growth_percentage": 300,
  "started_at": 1795912800,
  "status": "active",
  "related_queries": [
    "alabama football",
    "auburn football",
    "iron bowl score"
  ],
  "category_ids": [
    17
  ],
  "trend_url": "https://trends.google.com/trends/explore?q=alabama+football&geo=US"
}

search_volume is Google's volume band rather than an exact count, growth_percentage is the rise Google reports, started_at is a Unix timestamp, and category_ids follows Google's categories (17 is sports, which was 71 of the 92). trend_url opens the term on the Trends website, which makes a useful link in a Slack message.

Step 2: Add the call to n8n

Install the verified community node n8n-nodes-scavio (setup guide), add a Scavio node, pick the Google resource and the Trending Now operation, and set:

  • Geo: US
  • Additional Options: Hours 4, Status Active, Sort Search Volume

Put a Schedule Trigger in front of it, for example every hour. If you prefer not to install a node, an HTTP Request node does the same job: method POST, URL https://api.scavio.dev/api/v2/google/trending, a header credential that sends Authorization: Bearer <your key>, and the JSON body from step 1. Either way the node outputs one item holding the full response, so there is no HTML to parse.

Step 3: Turn the list into Slack messages

Add a Code node in "Run Once for All Items" mode that keeps the big searches and writes one line each:

JavaScript
const trends = $input.first().json.trends || [];
return trends
  .filter((t) => t.search_volume >= 20000)
  .slice(0, 10)
  .map((t) => ({
    json: {
      text: `${t.title}: ${t.search_volume.toLocaleString("en-US")}+ searches, up ${t.growth_percentage}% ${t.trend_url}`,
    },
  }));

Then a Slack node with the message text set to {{ $json.text }}. On the capture above, the filter kept 9 of the 92 searches, from "alabama football" at 200,000 down to five searches at 20,000. To skip sports, add "cat" to the request with the category you want, or filter on category_ids in the Code node. To avoid posting the same search every hour, store the titles you have sent, for example in n8n's workflow static data, and drop repeats.

Step 4 (optional): Check whether a spike is new

A search can trend because it always does at this time of year. One more call to /api/v2/google/trends with the title as query and "date": "today 12-m" returns its weekly interest for the past year, 1 credit, so the workflow can post only searches whose current week is near their yearly peak. How to get Google Trends data without pytrends covers that call and its traps.

What it costs

Polling one country every hour is 24 calls a day, about 720 credits a month: $0.72 at the Growth rate of $1 per 1,000 credits, or within the 3,000 credits of the $15 Hobby plan. Five countries every hour is 3,600 credits a month. New accounts get 50 free credits, enough to build and test the workflow. Try the Google Trends API free, no card, or run the call in the playground first. For how other Trends APIs compare, see the best Google Trends APIs.

Reference: Google Trends API overview · trending docs · trends docs · n8n node

Frequently asked questions

Why does an n8n HTTP Request to Google Trends return nothing?

Because the Trends page you see in a browser fills in its charts and lists after the page has loaded. A plain HTTP request gets the page before that happens, so an HTML node finds no numbers to extract. Ask an API that returns the data itself as JSON instead of parsing the page.

Is there a Google Trends node for n8n?

Scavio's verified community node, n8n-nodes-scavio, has a Google resource with a Trending Now operation for what is spiking in a country and a Trends operation for a term's interest over time and by region. Each call costs 1 credit, and a comparison of two to five terms costs 3. Any HTTP Request node can call the same endpoints with an API key.

Does Google have an official real-time Trends API?

Google's official Google Trends API, announced on July 24, 2025, is an alpha for a limited number of approved testers, and its published scope is search interest over about five years rather than a live trending feed. Until it opens, third-party APIs such as Scavio's /api/v2/google/trending return the searches Google lists as trending now.

How many trending searches does Google list at once?

It depends on the country and window. At 02:46 UTC on November 29, 2026, Scavio's trending endpoint returned 525 US searches for the past 24 hours, 156 of them still active, and a UK call 17 minutes later returned 391. With a 4-hour window and only active searches, the US list was 92 long, and 9 of them had a search volume of 20,000 or more.

Is it allowed to pull Google Trends data with an API?

Scavio fetches the public Google Trends data when your request asks for it and returns it as JSON; Trends data is aggregated search interest with no personal information. Google's Terms of Service apply to its services, so read them for your use case. This is not legal advice.

Google trending searches as JSON

  • Trending now by country, with volume and growth
  • A ready-made n8n node, no HTML parsing
  • 1 credit a call, 50 free credits
Try the Google Trends API free

50 free credits, no credit card

On this page

  1. Step 1: Ask for what is trending now
  2. Step 2: Add the call to n8n
  3. Step 3: Turn the list into Slack messages
  4. Step 4 (optional): Check whether a spike is new

Related articles

View all
  • scavio
    Keyword research / Market research
    Google
    6 Best Google Trends APIs in 2026: Scavio Put ChatGPT, Gemini, Claude, Perplexity and Copilot on One Scale in One Call, and Claude Climbed From 6 to 38
  • scavio
    Keyword research / Python
    Google
    How to Get Google Trends Data Through an API Without pytrends
ScavioScavio

One scraper API for every social, search, e-commerce and real estate platform. Built for AI agents.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative
  • Serper Alternative
  • Tavily vs Scavio
  • SerpAPI vs Scavio
  • All alternatives
  • Compare Scavio vs alternatives

Search APIs

  • Google Search API
  • Amazon Product API
  • YouTube API
  • Reddit API
  • Walmart Product API
  • TikTok API
  • Instagram API

Tools

  • All Tools

Ask AI about Scavio

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy