Back to Templates

Automated SEO Keyword Tracking and Research via Semrush API in Google Sheets

Last update

Last update 2 months ago

Categories

Share


๐Ÿ”Ž 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)

  • Collects keyword and country inputs from the user via a simple form to start the research process.
  • Triggers the workflow execution upon submission.

๐ŸŒ Keyword Research (httpRequest)

  • Sends a POST request with user inputs (keyword and country) to the Semrush Keyword Research.
  • Retrieves keyword suggestions, search volume, and related data for comprehensive keyword insights.

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

  • Automatically appends the keyword research results into a connected Google Sheets document.
  • Enables easy tracking, sharing, and further analysis of keyword data.

๐Ÿ“ˆ Example Spreadsheet Structure

Keyword Country Search Volume CPC Competition Keyword Difficulty Related Keywords Date of Research
keyword1 US 10,000 $2.50 0.75 45 keyword2, keyword3 2025-09-09
example term UK 15,000 $1.80 0.60 38 term1, example keyword 2025-09-09

๐ŸŒŸ Benefits

  • ๐Ÿš€ Powered by Semrush Keyword Research API on RapidAPI: Reliable, up-to-date keyword insights accessible via a simple API integration.
  • ๐Ÿ”„ Fully Automated: From user input to data storage, the process is seamless and requires no manual handling.
  • ๐Ÿ“Š Centralized Data Storage: Storing results in Google Sheets ensures accessibility and easy collaboration.
  • ๐Ÿ“ˆ Scalable & Repeatable: Run keyword research on-demand for multiple keywords and countries effortlessly.

๐Ÿš€ Use Cases

  • ๐Ÿข SEO Agencies: Quickly gather keyword data for clients in different markets using the Semrush Keyword Research.
  • ๐Ÿ“ฑ Digital Marketing Teams: Monitor and expand keyword strategies by collecting keyword ideas and volume regularly through the Semrush Keyword Research.
  • ๐Ÿ”Ž Content Creators: Identify trending and high-traffic keywords tailored by country to optimize content via the Semrush Keyword Research API.
  • ๐Ÿ“… Automated Reporting: Generate scheduled keyword research reports by integrating this workflow into larger marketing automation pipelines.

๐Ÿ”‘ 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.