Track weekly brand and competitor search interest with Apify and Google Sheets
Quick overview
Description
Quick overview This workflow runs every Monday and pulls Google Trends comparison data for a list of brand and competitor keywords via Apify, then calculates weekly interest metrics and logs one row per keyword into Google Sheets. How it works Runs every Monday at 7:00 based on the built-in schedule. Defines the keywords to compare (for example, your brand and competitors) and the target country/geo. Calls the Apify Google Trends Scraper API to fetch the last 3 months of interest-over-time and related queries for all keywords on the same 0–100 scale. Keeps only keyword results that have available Trends data. Calculates per-keyword weekly metrics including last 7 days average, previous 7 days average, percent change, 3‑month average interest, and the top rising related query, and builds a unique Row ID using the week start date and keyword. Appends or updates the matching row in Google Sheets using the Row ID as the unique key. Setup Create an Apify account and add an HTTP Header Auth credential with Authorization: Bearer for the Apify Google Trends Scraper request. Connect your Google Sheets account in n8n and set the target spreadsheet (document URL/ID) and sheet tab. Create a sheet with headers matching the logged fields (Row ID, Week, Keyword, Compared with, Country, Last 7 days, Previous 7 days, Change %, 3-month average, Top rising search, Trends link) and ensure the Google Sheets node matches on Row ID. Update the keyword list and country code in the workflow to match your brand/competitors and preferred region (or leave geo empty for worldwide). Requirements An Apify account (free plan available) and a Google Sheets account connected in n8n. Customization Use specific brand names rather than everyday words, swap Google Sheets for Slack or email alerts, or change the country and schedule. Additional info After picking the sheet tab in the Google Sheets node, set Mapping Column Mode back to Map Automatically and Column to match on to Row ID. Disclosure: I built the Apify Actor this template uses. An n8n automation workflow template by rafi siddiq.
Community Metrics
Author
rafi siddiq
Platform
web
Pricing model
free
Categories
- Automation
Tags
- n8n
- workflow
- google-sheets
- http-request
Capabilities
- 2 nodes