πŸ“Š Automated SEO Keyword Tracking and Research via Semrush API in Google Sheets

⚑ 1,032 views Β· πŸ“Š Market Research & Insights

Description

πŸ”Ž Automated Keyword Research Workflow with Google sheet logging & Semrush API

Description:
Easily collect keywords and country input, run automated keyword research via the Semrush Keyword Research API on RapidAPI, and store results in Google Sheets for seamless tracking and analysis.


βš™οΈ Node-by-Node Explanation

🟒 On form submission (formTrigger)

🌐 Keyword Research (httpRequest)

πŸ“„ Append Data to Google Sheet (googleSheets)


πŸ“ˆ Example Spreadsheet Structure

KeywordCountrySearch VolumeCPCCompetitionKeyword DifficultyRelated KeywordsDate of Research
keyword1US10,000$2.500.7545keyword2, keyword32025-09-09
example termUK15,000$1.800.6038term1, example keyword2025-09-09

🌟 Benefits


πŸš€ Use Cases


πŸ”‘ How to Get Your API Key for Semrush Keyword Research

  1. Visit the API Page:
    Go to the Semrush Keyword Research on RapidAPI.

  2. Sign Up/Login:
    Create an account or log in if you already have one.

  3. Subscribe to the API:
    Click β€œSubscribe to Test” and choose a plan (free or paid).

  4. Copy Your API Key:
    After subscribing, your API Key will be available in the β€œX-RapidAPI-Key” section under β€œEndpoints”.

  5. Use the Key:
    Include the key in your API requests like this:

    -H "X-RapidAPI-Key: YOUR_API_KEY"

πŸ›  Customizing the Workflow

To modify the automated workflow and adapt it to your specific use case, follow these guidelines:

  1. Adjust the Data Retrieval Process:
    You can modify the data you want to receive from the Semrush API. For example, if you’re only interested in search volume and CPC, you can filter out the other results in the API request.

  2. Add More Countries:
    If you work with multiple regions, modify the workflow to accept multiple country inputs. You could either pass in a list of countries or have a dropdown on the form that lets users select their country of choice.

  3. Expand Keyword Types:
    The workflow can be expanded to collect data for different types of keywords, such as long-tail or LSI (Latent Semantic Indexing) keywords, depending on your SEO needs.

  4. Set Up Scheduled Keyword Reporting:
    To automate reporting, you can schedule keyword research reports to run at regular intervals, such as monthly, using Google Apps Script or another task scheduler. This way, you’ll always have fresh data on hand for analysis.

βœ… Tips for Smooth Workflow Integration

  1. Test Your API Integration:
    Run a test to check if data is properly flowing into your Google Sheet before automating the process.

  2. Set Up Notifications:
    Use Google Sheets’ built-in notifications or an external automation tool (e.g., Zapier, Integromat) to notify you when new data is added or if there’s an issue with the workflow.

  3. Handle Errors Gracefully:
    Add error handling in your automated process to prevent issues like missing data or API request failures from disrupting your workflow.

πŸ”— Nodes Used

Google Sheets, HTTP Request, n8n Form Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup