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
-
Visit the API Listing
π SEMrush Website Traffic Checker API -
Sign In or Create an Account
- Log in to RapidAPI or sign up for a free account.
-
Subscribe to the API
- Choose the appropriate pricing plan and click Subscribe.
-
Access Your API Key
- Go to the Endpoints tab.
- Your API key is located under the
X-RapidAPI-Keyheader.
-
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
POSTand the URL to the SEMrush API endpoint. - Add the necessary headers:
X-RapidAPI-Host: semrush-website-traffic-checker.p.rapidapi.comX-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.visitstrafficSummary.bounceRatetrafficSummary.pageViewstrafficSummary.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.
Save time, improve accuracy, and supercharge your traffic insights workflow!
n8n Form Trigger to Google Sheets
This n8n workflow provides a simple yet powerful way to capture data submitted through an n8n form and automatically record it into a Google Sheet. It also includes a custom code step and an HTTP Request node, which can be further configured for advanced processing or external API calls.
What it does
- Listens for Form Submissions: The workflow is triggered whenever a user submits data through a configured n8n form.
- Processes Form Data (Code): It passes the submitted data to a Code node, allowing for custom JavaScript logic to transform, validate, or enrich the data before further processing.
- Makes an HTTP Request: The processed data is then sent to an HTTP Request node, which can be configured to interact with any external API or webhook.
- Appends to Google Sheets: Finally, the workflow appends the data (likely the original form submission or the output from the Code/HTTP Request nodes, depending on configuration) as a new row in a specified Google Sheet.
Prerequisites/Requirements
- n8n Instance: You need a running n8n instance to import and execute this workflow.
- Google Account: A Google account with access to Google Sheets is required.
- Google Sheets Credential: An n8n Google Sheets credential configured with access to your desired spreadsheet.
- n8n Form: You will need to create and configure an n8n Form to act as the trigger for this workflow.
- (Optional) External API/Service: If you intend to use the HTTP Request node, you'll need access to the relevant API or service and potentially an API key or other authentication.
Setup/Usage
- Import the Workflow:
- Copy the provided JSON code.
- In your n8n instance, go to "Workflows" and click "New".
- Click the "Import from JSON" button and paste the JSON code.
- Click "Import".
- Configure the n8n Form Trigger:
- Double-click the "On form submission" node.
- Define the fields you expect in your form.
- Save the node.
- Configure the Code Node:
- Double-click the "Code" node.
- Modify the JavaScript code to process the incoming form data as needed. The
itemsvariable will contain the data from the previous node (the form submission). - Ensure the output of this node is in a format suitable for the subsequent nodes.
- Save the node.
- Configure the HTTP Request Node:
- Double-click the "HTTP Request" node.
- Set the "URL", "Method" (e.g., POST, GET), "Headers", and "Body" according to the external API you wish to call.
- Add any necessary API credentials or authentication.
- Save the node.
- Configure the Google Sheets Node:
- Double-click the "Google Sheets" node.
- Select your Google Sheets credential.
- Choose the "Append Row" operation.
- Specify the "Spreadsheet ID" and "Sheet Name" where you want to add the data.
- Map the data from the previous nodes (e.g., from the "Code" or "HTTP Request" node) to the columns in your Google Sheet.
- Save the node.
- Activate the Workflow:
- Click the "Activate" toggle in the top right corner of the n8n editor to enable the workflow.
Now, whenever your n8n form is submitted, the workflow will automatically process the data, make an HTTP request, and log the information into your Google Sheet.
Related Templates
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Whoβs it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting β all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0β10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your teamβs channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow β reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why itβs valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n β combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your teamβs review history transparent and centralized.
Generate Weather-Based Date Itineraries with Google Places, OpenRouter AI, and Slack
π§© What this template does This workflow builds a 120-minute local date course around your starting point by querying Google Places for nearby spots, selecting the top candidates, fetching real-time weather data, letting an AI generate a matching emoji, and drafting a friendly itinerary summary with an LLM in both English and Japanese. It then posts the full bilingual plan with a walking route link and weather emoji to Slack. π₯ Who itβs for Makers and teams who want a plug-and-play bilingual local itinerary generator with weather awareness β no custom code required. βοΈ How it works Trigger β Manual (or schedule/webhook). Discovery β Google Places nearby search within a configurable radius. Selection β Rank by rating and pick the top 3. Weather β Fetch current weather (via OpenWeatherMap). Emoji β Use an AI model to match the weather with an emoji π€οΈ. Planning β An LLM writes the itinerary in Markdown (JP + EN). Route β Compose a Google Maps walking route URL. Share β Post the bilingual itinerary, route link, and weather emoji to Slack. π§° Requirements n8n (Cloud or self-hosted) Google Maps Platform (Places API) OpenWeatherMap API key Slack Bot (chat:write) LLM provider (e.g., OpenRouter or DeepL for translation) π Setup (quick) Open Set β Fields: Config and fill in coords/radius/time limit. Connect Credentials for Google, OpenWeatherMap, Slack, and your LLM. Test the workflow and confirm the bilingual plan + weather emoji appear in Slack. π Customize Adjust ranking filters (type, min rating). Modify translation settings (target language or tone). Change output layout (side-by-side vs separated). Tune emoji logic or travel mode. Add error handling, retries, or logging for production use.
AI-powered document search with Oracle and ONNX embeddings for recruiting
How it works Create a user for doing Hybrid Search. Clear Existing Data, if present. Add Documents into the table. Create a hybrid index. Run Semantic search on the Documents table for "prioritize teamwork and leadership experience". Run Hybrid search for the text input in the Chat interface on the Documents table. Setup Steps Download the ONNX model allMiniLML12v2augmented.zip Extract the ZIP file on the database server into a directory, for example /opt/oracle/onnx. After extraction, the folder contents should look like: bash bash-4.4$ pwd /opt/oracle/onnx bash-4.4$ ls allMiniLML12_v2.onnx Connect as SYSDBA and create the DBA user sql -- Create DBA user CREATE USER app_admin IDENTIFIED BY "StrongPassword123" DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA UNLIMITED ON users; -- Grant privileges GRANT DBA TO app_admin; GRANT CREATE TABLESPACE, ALTER TABLESPACE, DROP TABLESPACE TO app_admin; Create n8n Oracle DB credentials hybridsearchuser β for hybrid search operations dbadocuser β for DBA setup (user and tablespace creation) Run the workflow Click the manual Trigger It displays Pure semantic search results. Enter search text in Chat interface It displays results for vector and keyword search. Note The workflow currently creates the hybrid search user, docuser with the password visible in plain text inside the n8n Execute SQL node. For better security, consider performing the user creation manually outside n8n. Oracle 23ai or 26ai Database has to be used. Reference Hybrid Search End-End Example