Export Google Trends data in n8n
Get interest-over-time, interest-by-region, and related topics/queries for any keyword, location, time range and Google surface, with side-by-side comparison for up to five keywords.
What this workflow does
Import it and n8n runs the Google Trends Interest & Related Query Scraper Actor on Apify every day at 08:00 with the starter input below. Each row comes back with terms, trending term, location, time label and 32 more. A Google Sheets append is included and stays off until you add your sheet. The only credential it needs is your Apify API token.
Read from the workflow file, built for Google Trends Interest & Related Query Scraper version 1.0.2. Updated 2026-11-14.How the rows travel
6 nodes, in the order n8n runs them. The yellow stop is the call to the Apify Actor; the dashed stop is optional.
- Daily trigger Schedule trigger
- Configure input Code
- Run Apify Actor HTTP Request
- Normalize + dedupe Code
- Rows ready No operation
- Google Sheets (optional) Google Sheets, off until you switch it on
From the Short
This workflow is the one the video points to: the number in each video opens this page.
Input
The Configure input node holds the starter input. Change it there; every setting the Actor accepts is listed below.
{
"mode": "interest",
"searchTerms": [
"ai agents",
"n8n"
],
"geo": "US",
"timeRange": "today 3-m",
"maxItems": 50
} | Setting | Type | Required | Default | What it does |
|---|---|---|---|---|
| mode | string | No | interest | What to scrape. 'Interest over time & related queries' is the Google Trends Explore view (keywords required). 'Trending now' lists what is spiking in a country right now. One of: interest, trending. |
| searchTerms | array | No | – | One or more search terms to analyze (mode=interest). Each term becomes its own dataset row, or enable Comparison mode to compare up to 5 terms side by side. |
| compareMode | boolean | No | false | Compare all search terms on one shared 0-100 scale in a single row (Google Trends comparison view, maximum 5 terms). Off means each term is scraped independently. |
| startUrls | array | No | – | Paste Google Trends links to scrape them directly: explore links (trends.google.com/trends/explore?q=..., including www.google.com/trends/... |
| geo | string | No | – | Country, state/region or metro area to analyze. Leave empty for worldwide. Trending Now uses the country part of this location. 3681 choices. |
| timeRange | string | No | today 12-m | Time window for the interest data (mode=interest). 'now' ranges return minute-level points; 'today' ranges return day/week points. Choose 'Custom range' to enter exact dates below. 10 choices. |
| customDateRange | string | No | – | Only used when 'Time range' = 'Custom range': 'YYYY-MM-DD YYYY-MM-DD' (e.g. '2024-01-01 2024-12-31') or 'YYYY-MM-DDTHH YYYY-MM-DDTHH' for hourly granularity. |
| category | string | No | 0 | Google Trends category filter (mode=interest). 0 = All categories. 1133 choices. |
| searchType | string | No | – | Which Google surface to query (mode=interest). Web Search is the default. One of: images, news, froogle, youtube. |
| geoResolution | string | No | – | Breakdown level for 'interest by region' (mode=interest). Auto lets Google pick the right level for the location; other levels are applied when the location supports them. One of: COUNTRY, REGION, DMA, CITY. |
| trendingHours | string | No | 24 | How far back the Trending Now list goes (mode=trending). One of: 4, 24, 48, 168. |
| trendingCategory | string | No | all | Filter the Trending Now list to one of Google's trending categories (mode=trending). 19 choices. |
| includeTrendingNews | boolean | No | true | Attach news headlines, links and sources from Google's Trending RSS feed to trending items whose titles it covers (about ten highlighted stories per country, anywhere in the list). |
| maxItems | integer | No | 100 | Maximum dataset records per run: each interest row counts as one record, each trending item as one record. Remaining work stops once the limit is reached. |
What each row holds
Every field the Actor returns stays in the row (36 in its dataset schema). Normalize + dedupe trims text, drops empty fields and adds _source and _scrapedAt. The main fields:
| Field | What it is |
|---|---|
| searchTerms | Terms |
| title | Trending term |
| geoName | Location |
| timeRangeLabel | Time label |
| hoursLabel | Window |
| categoryName | Category |
| searchTypeLabel | Type label |
| averageInterest | Avg |
| volumeText | Volume |
| growthPercent | Growth % |
| exploreUrl | URL |
| trendingUrl | Trends URL |
What the first run costs
With the starter input (maxItems = 50) a first run costs about $0.45 on the Apify Free plan: $0.40 to start the run at 4 GB of memory and $0.05 for the results, plus platform usage.
The Actor lists $0.99 per 1,000 results; its catalogue page breaks the price down by Apify plan. The Apify Free plan includes $5 of usage a month.
The Actor behind it
Google Trends Interest & Related Query Scraper: Get interest-over-time, interest-by-region, and related topics/queries for any keyword, location, time range and Google surface, with side-by-side comparison for up to five keywords.
The same job from an AI agent
The matching agent skill gives Claude Code, Codex, Cursor and other agents the same Actor, input and fields. Install it in one line:
npx skills add https://scraperfinder.com --skill google-trends-interest-and-related-query-scraper The export Google Trends data skill, with manual install and run steps
Questions people ask
How do I import this workflow into n8n?
Copy https://scraperfinder.com/n8n/google-trends-interest-and-related-query-scraper.json. In n8n, open a new workflow, click the three-dot menu, choose Import from URL and paste it. Or download the JSON file and use Import from File; both give the same 6 nodes.
Do I need an Apify account?
Yes. The workflow calls the Google Trends Interest & Related Query Scraper Actor through the Apify API with your own token, and each run is billed to your Apify account. The Free plan includes $5 of usage a month.
What does a run cost?
With the starter input (maxItems = 50) a first run costs about $0.45 on the Apify Free plan: $0.40 to start the run at 4 GB of memory and $0.05 for the results, plus platform usage. The Actor's Store page shows the current price.
Can I change what it collects?
Yes: edit the input object in the Configure input node. The Actor takes 14 settings; the table on this page lists each one with its default. Raise maxItems once the first rows look right.
Does it work without Google Sheets?
Yes. The rows wait in the Rows ready node, so you can connect any other node there: a database, Airtable, a webhook or an email. The Google Sheets node is only one option.