Arcadium Data Scrapers
Home / Integrations / n8n / Weekly Google Trends interest over time to Google Sheets

Weekly Google Trends interest over time to Google Sheets

Up to five keywords, one row per keyword and week over the past 12 months, refreshed every Monday. Uses Google Trends Scraper.

Every Monday this workflow runs Google Trends Scraper (arcadium/google-trends) for up to five keywords and keeps a Google Sheet with one row per keyword and week: the weekly interest (0-100) over the past 12 months. Existing weeks are updated and new weeks are added, so the sheet is a ready source for a line chart or a pivot table.

Schedule (Mon 06:00) → Apify: Run actor and get dataset → Code: one row per keyword and week → Google Sheets: Append or update row

File: workflow.json (n8n workflow export format, with a sticky note that repeats the setup steps). Want only one summary row per keyword and week (average and last week) as a growing log? Use the n8n-google-trends-compare-to-google-sheets template.

What you need

CredentialWherePlaceholder in the file
Apify API tokenApify Console → Settings → API & IntegrationsREPLACE_WITH_YOUR_APIFY_CREDENTIAL_ID (credential type Apify API)
Google Sheetsn8n's Google Sheets OAuth2 credentialREPLACE_WITH_YOUR_GOOGLE_SHEETS_CREDENTIAL_ID
A spreadsheetYour Google DriveREPLACE_WITH_YOUR_SPREADSHEET_ID in the sheet URL

The Apify node is Apify's official n8n node, package @apify/n8n-nodes-apify (checked against version 0.9.0, node version 2, operation Run actor and get dataset). On n8n Cloud search for "Apify" in the nodes panel. On self-hosted n8n: Settings → Community nodes → Install → @apify/n8n-nodes-apify.

Import

  1. Create a Google Sheet with a tab named Interest and this header row (the node maps columns by name and matches rows on key):

key | week | keyword | geo | interest | partial | scale | updatedAt

  1. n8n → Workflows → Import from File → workflow.json.
  2. Get Google Trends: pick your Apify credential and edit the JSON input:
  3. searchTerms: up to 5 keywords. compareKeywords: true puts them on one shared 0-100 scale, so 50 is half as popular as 100 within the same run.
  4. geo: a two-letter country code, a region code (US-CA), or "" for worldwide.
  5. timeRange: the default ("", past 12 months) gives one point per week. today 5-y also gives weekly points for 5 years.
  6. Update Google Sheets: pick your credential and paste your sheet URL.
  7. Execute once, check the sheet, then Activate.

Cost per run

Pay per event. Prices are the actor's Store pricing at the time of writing (Free plan; paid Apify plans pay less). The live price is on the Store page.

EventPriceIn this template
Result row (one keyword with its whole timeline)$0.0027 ($2.70 per 1,000)3 keywords = $0.0081
Error rowsfree

Plus Apify's small start event per run. About $0.04 a month on a weekly schedule. The node caps a run at $0.20 (maxTotalChargeUsd).

What to expect