Skip to main content

Track weekly keyword rankings with Google SERP, Serper API, and Google Sheets

Workflow preview

Workflow preview
100%
Track weekly keyword rankings with Google SERP, Serper 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

This template is designed for SEO specialists, content marketers, and digital growth teams who want to automate the process of tracking keyword rankings. Manually checking SERPs every week is time ...

Best for

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

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.manualtrigger

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track weekly keyword rankings with Google SERP, Serper API, and Google Sheets
Workflow name
Track weekly keyword rankings with Google SERP, Serper API, and Google Sheets

This template is designed for SEO specialists, content marketers, and digital growth teams who want to automate the process of tracking keyword rankings.

Manually checking SERPs every week is time-consuming and prone to error. This workflow solves that by automatically querying Google search results with the Serper API, updating rankings in Google Sheets, and keeping historical data for up to 12 weeks.

Prerequisites

Before you begin, make sure you have:

A Google Sheet with columns:

Sr.no (unique row identifier)

Keyword

Target Page (the URL you want to track)

A Google Service Account credential set up in n8n

A Serper API key (added to n8n credentials as serperApiKey)

Detailed Setup

Import the workflow into n8n.

Update the Google Sheets nodes:

Replace your-google-sheet-id with your actual Google Sheet ID

Replace your-sheet-name with the correct tab name

Add your Google Service Account credentials to the Google Sheets nodes.

Add your Serper API key to the HTTP Request node (serperApiKey).

(Optional) Update the HARDCODED_DOMAIN variable in the Code node if you want to lock rankings to a specific domain.

Run the workflow once manually to confirm everything is working.

Usage & Customization

By default, the workflow runs every Monday at 00:00 (midnight). You can adjust this by editing the Cron node.

The workflow stores ranking history for 12 weeks. If you want more, simply extend the columns in your Google Sheet and update the Code node logic.

The workflow checks for both exact URLs and domains. You can customize this in the Code node depending on whether you want to track page-level or domain-level rankings.

Data is updated only for the current week unless you allow overwriting, ensuring historical accuracy.

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 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Get Targeted Keywords

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

Block 3 - Keyword Searching on Google

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

Block 4 - Extracting Ranking & URL

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

Block 5 - Merging Result

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

Block 6 - Formating output

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

Block 7 - Sticky Note

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

Block 8 - Run Every Monday

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

Block 9 - Update Rank and URLs (Google Sheet)

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

Block 10 - Sticky Note (Setup Checklist)

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

Block 11 - Sticky Note (Keywords)

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

Block 12 - Sticky Note (Serper)

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

Block 13 - Sticky Note (Extract)

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

Block 14 - Sticky Note (Update Sheet)

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

Block 15 - Sticky Note (Cron)

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

Block 16 - Sticky Note (Formatting)

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

Block 17 - When clicking ‘Execute workflow’

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

Block 18 - Delay Between Keyword Queries

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

3. Summary Table

Workflow Track weekly keyword rankings with Google SERP, Serper API, and Google Sheets
Complexity advanced
Nodes 18
Categories Market Research
Author Amuratech
Published 03 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8225/8225.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 weekly keyword rankings with Google SERP, Serper API, and Google Sheets do?

This template is designed for SEO specialists, content marketers, and digital growth teams who want to automate the process of tracking keyword rankings. Manually checking SERPs every week is time ...

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.