Skip to main content

Track SEO keyword position in Google SERP (Google Sheets + SerpAPI integration)

Workflow preview

Workflow preview
100%
Track SEO keyword position in Google SERP (Google Sheets + SerpAPI integration) preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n workflow automates scheduled checks for your target keywords’ positions in Google’s organic search results using SerpAPI . It logs new positions in Google Sheets , compares them to previou...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.googlesheetstrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track SEO keyword position in Google SERP (Google Sheets + SerpAPI integration)
Workflow name
Track SEO keyword position in Google SERP (Google Sheets + SerpAPI integration)

This n8n workflow automates scheduled checks for your target keywords’ positions in Google’s organic search results using SerpAPI. It logs new positions in Google Sheets, compares them to previous rankings, and sends notifications via WhatsApp and/or email based on the movement.


Problem Statement & Target Audience

Who is this for?

This workflow is ideal for:

  • SEO specialists monitoring keyword rankings.
  • Website owners tracking performance.
  • Agencies managing multiple client campaigns.

It helps reduce manual effort by automatically checking rankings on a schedule and sending notifications only when there’s movement in position.


Pre-conditions & API Requirements

APIs & Services Used

  1. SerpAPI – Fetch Google search results

  2. Google Sheets API – To store and update keyword data

  3. Email API – To notify users of position changes

  4. WhatsApp API (e.g., Twilio, Ultramsg) – To send notifications

> Setup help for Google Sheets, Email, and WhatsApp is available via the Docs tab in each respective node in n8n.


Step-by-Step Workflow Explanation

🗓 1. Scheduled Trigger (Support Workflow)

  • Marks all rows in the sheet as "notchecked" in the checkstatus column.
  • This is the user-defined frequency trigger (e.g. weekly, daily).
  • Triggers the main workflow.

🚀 2. Main Workflow Trigger

  • Starts when a row with checkstatus = notchecked is found.

🔍 3. HTTP Node (SerpAPI Call)

  • Sends a request to SerpAPI for each keyword.
  • Fetches the current Google SERP for that keyword.

🧠 4. JavaScript Node (Parse Position)

  • Loops through the SERP results and finds the position of the target URL.
  • Extracts and returns the current rank.

✍️ 5. Google Sheets Node (Update Data)

  • Writes the new ranking into the spreadsheet.
  • Updates the currentposition and sets checkstatus to "checked".

🔀 6. Switch Node (Compare Rankings)

  • Compares previousposition with currentposition:
    • If rank has improved → send positive alert.
    • If rank has dropped → send negative alert.
    • If unchanged → no alert.

📩 7. Notification Nodes (WhatsApp / Email)

  • Sends a message to chosen channels when a change is detected.

Customization Guide

⏱️ Change Frequency

  • Adjust the supporting schedule workflow to change how often the tracker runs.

✉️ Edit Notification Content

  • Customize the WhatsApp and Email message content in their respective nodes.

🔗 Track Multiple URLs per Keyword (Advanced)

  • Extend the JavaScript logic if you need to monitor several pages for the same keyword.

🌐 Expand Search Engine Targets

  • SerpAPI also supports other search engines like Bing and Yahoo. Modify the request params to switch.

How to Set Up This Workflow

✅ Step 1: Use This Google Sheets Template

To get started quickly, make a copy of the template below:

👉 Google Sheets Template

This template includes the required structure:

  • keyword
  • Website_url
  • position
  • timestamp
  • checkstatus

> ⚠️ Be sure to make your own copy to edit and connect via the Google Sheets node.


🔐 Step 2: Configure Your APIs

  • SerpAPI: Get API key from serpapi.com/manage-api-key
    • Set credential type to Generic in n8n for compatibility.
  • Google Sheets, Email & WhatsApp: Use the instructions found in each node’s Docs tab to connect your accounts.

📦 Step 3: Import the Workflow

  • Both the main keyword tracking workflow and the supporting scheduler workflow are in one file

▶️ Step 4: The workflow will start

  • Since the check status columns will be 'notChecked' schedule workflow.
  • The update sheets node will update each processed row's checkstatus to 'checked' and the workflow will process the next row
  • the schedule trigger workflow will update checkstatus = notchecked and triggers the keyword tracking automatically.

🎉 Done!

From now on, your keyword positions will be monitored at the frequency you set. You’ll receive WhatsApp and/or email updates only when rankings change. in case you need customized workflows or wanna reach out here is my twitter and email.

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 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Sticky Note

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

Block 3 - Sticky Note1

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

Block 4 - Sticky Note2

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

Block 5 - Map Organic Results Array

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Google Serp Request

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

Block 7 - Set Keyword (s)

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

Block 8 - Web URL Position Finder

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

Block 9 - Sticky Note3

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

Block 10 - Sticky Note4

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

Block 11 - When clicking ‘Test workflow’

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

Block 12 - Google Sheets

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

Block 13 - Google Sheets2

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

Block 14 - Google Sheets Trigger

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

Block 15 - Get Row (notChecked Column)

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

Block 16 - Update Check Status Column (to Checked)

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

Block 17 - WA Start Checks Notification

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

Block 18 - GMAIL Start Checks Notification

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 19 - Sticky Note5

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

Block 20 - Notifications Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 21 - Send Email Improved

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 22 - Send WA Message Improved

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

Block 23 - Send Email Dropped

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 24 - Send WA Message Dropped

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

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Track SEO keyword position in Google SERP (Google Sheets + SerpAPI integration)
Complexity advanced
Nodes 25
Categories Market Research
Author Joseph
Published 29 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3792/3792.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 SEO keyword position in Google SERP (Google Sheets + SerpAPI integration) do?

This n8n workflow automates scheduled checks for your target keywords’ positions in Google’s organic search results using SerpAPI . It logs new positions in Google Sheets , compares them to previou...

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.