Skip to main content

Track website traffic data with SEMrush API and Google Sheets

Workflow preview

Workflow preview
100%
Track website traffic data with SEMrush API and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Website Traffic Monitoring with SEMrush API and Google Sheets Integration Leverage the powerful [ SEMrush Website Traffic Checker API ](https://rapidapi.com/PrineshPatel/api/semrush website traf...

Best for

  • Market Research automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.formtrigger, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Evoort Solutions.

Original n8n.io source

1.1 Workflow description

Title
Track website traffic data with SEMrush API and Google Sheets
Workflow name
Track website traffic data with SEMrush API and Google Sheets

šŸš€ Website Traffic Monitoring with SEMrush API and Google Sheets Integration

Leverage the powerful SEMrush Website Traffic Checker API to automatically fetch detailed website traffic insights and log them into Google Sheets for real-time monitoring and reporting. This no-code n8n workflow simplifies traffic analysis for marketers, analysts, and website owners.


āš™ļø Node-by-Node Workflow Breakdown

1. 🟢 On Form Submission
  • Trigger: The workflow is initiated when a user submits a website URL via a form. This serves as the input for further processing.
  • Use Case: When you want to track multiple websites and monitor their performance over time.
2. 🌐 Website Traffic Checker
  • API Request: The workflow makes a POST request to the SEMrush Website Traffic Checker API via RapidAPI using the website URL that was submitted.
  • API Data: The API returns detailed traffic insights, including:
    • Visits
    • Bounce rate
    • Page views
    • Sessions
    • Traffic sources
    • And more!
3. šŸ”„ Reformat
  • Parsing: The raw API response is parsed to extract the relevant data under trafficSummary.
  • Data Structure: The workflow creates a clean dataset of traffic data, making it easy to store in Google Sheets.
4. šŸ“„ Google Sheets
  • Logging Data: The traffic data is appended as a new row in your Google Sheet.
  • Google Sheet Setup: The data is organized and updated in a structured format, allowing you to track website performance over time.

šŸ’” Use Cases

  • šŸ“Š SEO & Digital Marketing Agencies: Automate client website audits by pulling live traffic data into reports.
  • 🌐 Website Owners & Bloggers: Monitor traffic growth and analyze content performance automatically.
  • šŸ“ˆ Data Analysts & Reporting Teams: Feed traffic data into dashboards and integrate with other KPIs for deeper analysis.
  • šŸ•µļø Competitor Tracking: Regularly log competitor site metrics for comparative benchmarking.

šŸŽÆ Key Benefits

  • āœ… Automated Traffic Monitoring — Run reports automatically on-demand or on a scheduled basis.
  • āœ… Real-Time Google Sheets Logging — Easily centralize and structure traffic data for easy sharing and visualization.
  • āœ… Zero Code Required — Powered by n8n’s visual builder, set up workflows quickly without writing a single line of code.
  • āœ… Scalable & Flexible — Extend the workflow to include alerts, additional API integrations, or other automated tasks.

šŸ” How to Get Your SEMrush API Key via RapidAPI

  1. Visit the API Listing
    šŸ‘‰ SEMrush Website Traffic Checker API

  2. Sign In or Create an Account

    • Log in to RapidAPI or sign up for a free account.
  3. Subscribe to the API

    • Choose the appropriate pricing plan and click Subscribe.
  4. Access Your API Key

    • Go to the Endpoints tab.
    • Your API key is located under the X-RapidAPI-Key header.
  5. Secure & Use the Key

    • Add your API key to the request headers in your workflow.
    • Never expose the key publicly.

šŸ”§ Step-by-Step Setup Instructions

1. Creating the Form to Capture URL

  • In n8n, create a new workflow and add a Webhook trigger node to capture website URLs.
  • Configure the webhook to accept URL submissions from your form.
  • Add a form to your website or app that triggers the webhook when a URL is submitted.

2. Configure SEMrush API Request Node

  • Add an HTTP Request node after the webhook.
  • Set the method to POST and the URL to the SEMrush API endpoint.
  • Add the necessary headers:
    • X-RapidAPI-Host: semrush-website-traffic-checker.p.rapidapi.com
    • X-RapidAPI-Key: [Your API Key]
  • Pass the captured website URL from the webhook as a parameter in the request body.

3. Reformat API Response

  • Add a Set node to parse and structure the API response.
  • Extract only the necessary data, such as:
    • trafficSummary.visits
    • trafficSummary.bounceRate
    • trafficSummary.pageViews
    • trafficSummary.sessions
  • Format the response to be clean and suitable for Google Sheets.

4. Store Data in Google Sheets

  • Add the Google Sheets node to your workflow.
  • Authenticate with your Google account.
  • Select the spreadsheet and worksheet where you want to store the traffic data.
  • Configure the node to append new rows with the extracted traffic data.
Google Sheets Columns Setup
  • A: Website URL
  • B: Visits
  • C: Bounce Rate
  • D: Page Views
  • E: Sessions
  • F: Date/Time (optional, you can use a timestamp)

5. Test and Deploy

  • Run a test submission through your form to ensure the workflow works as expected.
  • Check the Google Sheets document to verify that the data is being logged correctly.
  • Set up scheduling or additional workflows as needed (e.g., periodic updates).

šŸ“ˆ Customizing the Template

You can modify the workflow to suit your specific needs:

  • Add more data points: Customize the SEMrush API request to fetch additional metrics (e.g., traffic sources, keywords, etc.).
  • Create separate sheets: If you're tracking multiple websites, you can create a different sheet for each website or group websites by category.
  • Add alerts: Set up email or Slack notifications if specific traffic conditions (like sudden drops) are met.
  • Visualize data: Integrate Google Sheets with Google Data Studio or other tools for more advanced visualizations.

šŸš€ Start Automating in Minutes

Build your automated website traffic dashboard with n8n today — no coding required.

šŸ‘‰ Start with n8n for Free

Save time, improve accuracy, and supercharge your traffic insights workflow!

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 2 - Reformat

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - website traffic checker

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Append Data In Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

3. Summary Table

Workflow Track website traffic data with SEMrush API and Google Sheets
Complexity intermediate
Nodes 9
Categories Market Research
Author Evoort Solutions
Published 21 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7685/7685.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track website traffic data with SEMrush API and Google Sheets do?

Website Traffic Monitoring with SEMrush API and Google Sheets Integration Leverage the powerful [ SEMrush Website Traffic Checker API ](https://rapidapi.com/PrineshPatel/api/semrush website traf...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.