This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
Why Your New Year Competitor Analysis Should Run Itself
Every January, marketers and growth teams sit down to benchmark competitors manually — opening dozens of browser tabs, copy-pasting traffic numbers, and wrestling with spreadsheets. By the time the data is clean, it is already a week old. There is a better way: build a self-updating competitor dashboard that pulls fresh data every Monday morning without you lifting a finger.
This guide walks you through an n8n workflow that queries the Similarweb API, formats the results, and writes them straight into Google Sheets on a weekly schedule. If you want website traffic analysis and competitor benchmarking data at your fingertips, Similarweb gives you the structured API access you need to make this automation possible — covering traffic estimates, engagement metrics, and traffic sources for any domain.
What You Will Build
- A weekly scheduled n8n workflow that triggers every Monday at 08:00
- An HTTP request node pulling traffic data from the Similarweb API for a list of competitor domains
- A data transformation step that normalises the API response into clean rows
- A Google Sheets append node that writes each domain's metrics into a dedicated tab with a timestamp
- An optional Slack or email notification so your team knows the dashboard has been updated
Prerequisites
- An n8n account — self-host for free or use n8n Cloud with 400+ built-in integrations
- A Similarweb API key (available on paid plans)
- A Google account with a prepared Sheets file
- Basic familiarity with n8n nodes (no coding required)
Step 1 — Set Up the Weekly Schedule Trigger
Open your n8n canvas and add a Schedule Trigger node. Set the interval to Every Week and the day to Monday. Set the time to 08:00 in your local timezone. This single node replaces the reminder in your calendar and the person who always forgets to run the report.
Step 2 — Define Your Competitor List
Add a Set node (or a Code node if you prefer) immediately after the trigger. Inside it, create an array called competitors containing the domains you want to track, for example:
competitor-a.comcompetitor-b.comcompetitor-c.com
Connect a Split In Batches node (batch size 1) so that each domain is processed individually in the next step.
Step 3 — Query the Similarweb API
Add an HTTP Request node and configure it as follows:
- Method: GET
- URL:
https://api.similarweb.com/v1/website/{{$json.domain}}/total-traffic-and-engagement/visits - Query parameters:
api_key,start_date,end_date,granularity=monthly,country=world - Authentication: pass your API key via the query string or header as required by your Similarweb plan
Use n8n expressions ({{$json.domain}}) to inject the current domain from the split loop. The node will fire once per competitor domain and return a JSON payload with visit counts, bounce rate, pages per visit, and average session duration.
Step 4 — Transform and Flatten the Response
Similarweb returns a nested JSON object. Add a Code node (JavaScript) to extract the fields you care about and build a flat object:
domainmonth(from the API response date)visitsbounce_ratepages_per_visitavg_visit_durationpulled_at(usenew Date().toISOString())
Keeping a pulled_at timestamp is essential so you can distinguish each weekly snapshot in your historical sheet.
Step 5 — Write to Google Sheets
Add a Google Sheets node in Append Row mode. Connect it to your Google account using OAuth, select your spreadsheet, and choose the tab named Weekly Competitor Data (create it in advance with headers matching your flat object). Map each field from the previous Code node to the corresponding column. Because you are in a split loop, n8n will append one row per competitor per run — giving you a clean time-series table that grows automatically every Monday.
Step 6 — Optional Slack Notification
After the Google Sheets node, add a Slack node (or Gmail node) to post a short summary: how many domains were updated, the date, and a link to the sheet. This closes the loop for your team and means no one has to remember to check the dashboard — the dashboard announces itself.
Recommended Google Sheets Layout
Structure your sheet with these columns in order:
- A: pulled_at
- B: domain
- C: month
- D: visits
- E: bounce_rate
- F: pages_per_visit
- G: avg_visit_duration
Add a second tab called Dashboard with QUERY or FILTER formulas that always pull the latest snapshot per domain. Use conditional formatting to highlight week-over-week changes in red or green. This gives your team a live executive view without touching the raw data tab.
Tips for Reliable Automation
- Rate limits: Similarweb API plans have monthly call quotas. Tracking 10 competitors weekly costs 40 calls per month — well within most entry plans.
- Error handling: Add an IF node after the HTTP Request to catch non-200 responses and route them to a separate error log sheet.
- Backfill: On first run, manually trigger the workflow for each of the past 12 months by temporarily overriding the date parameters. This gives you a full year of historical baseline on day one.
- Credentials security: Store your Similarweb API key in n8n's built-in credential manager, never in a plain Set node.
Why This Beats Manual Research Every Time
Manual competitor research takes 1–3 hours per week when done properly. This workflow takes roughly 90 seconds to run and stores every result permanently. Over a year, that is more than 50 weekly snapshots per competitor — giving you trend lines, seasonality patterns, and anomaly detection that no one-off audit can match. The New Year is the perfect moment to put this in place, so by next December you have a full year of data ready for your annual strategy review.
If you want to track competitors automatically each week, you can get structured website traffic and benchmarking data via Similarweb — including traffic estimates, engagement metrics, and traffic source breakdowns — to feed your n8n dashboard without any manual research.