This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
Why Manual Competitor Research Wastes Your Time
Checking competitor traffic by hand every week means logging into tools, copying numbers into spreadsheets, and forgetting half the domains you wanted to track. The data is stale before you even act on it. A better approach: pull fresh traffic data automatically and push it into a dashboard that updates itself.
This guide shows you how to combine Similarweb's API with n8n to build a live competitor traffic dashboard in about 25 minutes. You get scheduled data pulls, automatic storage in Google Sheets, and an always-current view of how your competitors are performing. To follow along, grab your API key from Similarweb — it covers website traffic and competitor analysis — and have your n8n instance ready.
What You Will Build
- A scheduled n8n workflow that runs daily (or hourly)
- HTTP requests to the Similarweb API for each competitor domain
- Parsed, cleaned data stored in Google Sheets or Airtable
- Optional: a Slack or email alert when a competitor's traffic spikes
Prerequisites
- Similarweb API key — available on paid plans; the API returns monthly visits, traffic sources, bounce rate, and top countries
- n8n — self-hosted (free) or via n8n Cloud; install it in under 5 minutes
- Google account — for the Sheets destination (Airtable works too)
- A list of competitor domains you want to track (3–10 is a good start)
If you do not have n8n yet, n8n offers open-source workflow automation with 400+ integrations — you can self-host it for free or start immediately on n8n Cloud.
Step 1 — Create the Schedule Trigger (2 minutes)
Open n8n and create a new workflow. Add a Schedule Trigger node. Set it to run every day at 08:00 or every hour, depending on how fresh you need the data. Click Save.
Step 2 — Define Your Competitor List (3 minutes)
Add a Set node directly after the trigger. Inside it, create an array field called domains and populate it with your competitors:
competitor-one.comcompetitor-two.comcompetitor-three.com
This single node is the only place you ever need to edit when adding or removing domains. Everything downstream loops over this list automatically.
Step 3 — Split Into Individual Domain Items (2 minutes)
Add a Split In Batches node (or use the Loop Over Items node in newer n8n versions). Connect it to the Set node. This turns your domains array into individual items so the next HTTP node runs once per domain.
Step 4 — Fetch Traffic Data from Similarweb (5 minutes)
Add an HTTP Request node. Configure it as follows:
- Method: GET
- URL:
https://api.similarweb.com/v1/website/{{$json.domain}}/total-traffic-and-engagement/visits - Query Parameters:
api_key→ your Similarweb API key,start_date→{{$now.minus(1, 'month').format('yyyy-MM')}},end_date→{{$now.format('yyyy-MM')}},granularity→monthly,main_domain_only→false - Authentication: None (key passed as query param)
Test the node with one domain. You should see a JSON response containing monthly visit counts. If you get a 403, double-check that your Similarweb plan includes API access.
Step 5 — Parse and Clean the Response (3 minutes)
Add a Set node after the HTTP Request. Map the following fields from the response:
domain→{{$json.domain}}month→{{$json.visits[0].date}}visits→{{$json.visits[0].visits}}fetched_at→{{$now.toISO()}}
This gives you a clean, flat row per domain per month — exactly what Google Sheets needs.
Step 6 — Write to Google Sheets (4 minutes)
Add a Google Sheets node. Choose Append Row as the operation. Select your spreadsheet and the target sheet. Map the four fields from Step 5 to the corresponding columns: Domain, Month, Visits, Fetched At.
Run the full workflow. After one pass you should see a row per competitor in your sheet. After a week of daily runs you will have a time series you can chart instantly.
Step 7 — Add a Traffic-Spike Alert (Optional, 5 minutes)
Insert an IF node after the Set node in Step 5. Set the condition: visits greater than a threshold you define (e.g. 500000). Connect the true branch to a Slack or Send Email node with a message like: "⚠️ competitor-one.com hit 620,000 visits this month." This turns passive monitoring into active intelligence.
Step 8 — Visualize in Google Looker Studio (2 minutes)
Open Google Looker Studio (free). Connect your Google Sheet as a data source. Add a Time Series chart with Month on the X-axis and Visits as the metric. Add a Dimension filter on Domain so each competitor gets its own line. You now have a live, auto-refreshing competitor traffic dashboard.
Workflow Summary
- Schedule Trigger → fires daily at 08:00
- Set (domains) → defines competitor list
- Loop Over Items → one pass per domain
- HTTP Request → calls Similarweb API
- Set (parse) → flattens JSON to clean row
- IF (spike check) → optional alert branch
- Google Sheets → appends row to time-series log
Tips to Get More from the Dashboard
- Add a second HTTP Request node to fetch traffic sources (organic vs paid vs direct) using the
/traffic-sources/overviewendpoint. - Store data in Airtable instead of Sheets if you want relational views and filtered galleries per competitor.
- Use n8n's Error Trigger node to catch API failures and send yourself a Slack ping rather than silently losing a data point.
- Track 3–5 core competitors closely rather than 20 loosely — signal-to-noise stays high.
Total Time Breakdown
- Schedule Trigger + domain list: 5 min
- HTTP Request + parsing: 8 min
- Google Sheets write: 4 min
- Spike alert (optional): 5 min
- Looker Studio chart: 2 min
- Total: ~24 minutes
Once built, the workflow runs itself. You open your Looker Studio dashboard on Monday morning and the numbers are already there — no manual exports, no forgotten checks.
If you want to monitor competitor traffic automatically without touching the workflow again, you can get your API data from Similarweb — including website traffic and competitor analysis — to keep your dashboard live and always up to date.