Skip to main content

Track Google keyword rankings with ScraperAPI, Google Sheets, and Gmail

Workflow preview

Workflow preview
100%
Track Google keyword rankings with ScraperAPI, Google Sheets, and Gmail preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs daily to read keywords from Google Sheets, scrape Google Search results via ScraperAPI, store ranking history back in Google Sheets, and email a Gmail digest when ...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-scraperapi-official.scraperapi, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.gmail

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track Google keyword rankings with ScraperAPI, Google Sheets, and Gmail
Workflow name
Track Google keyword rankings with ScraperAPI, Google Sheets, and Gmail

Quick Overview

This workflow runs daily to read keywords from Google Sheets, scrape Google Search results via ScraperAPI, store ranking history back in Google Sheets, and email a Gmail digest when notable keyword ranking movements are detected.

How it works

  1. Runs every day at 8:00 AM on a schedule.
  2. Reads the keyword list (including target domain and optional locale fields) from Google Sheets.
  3. For each keyword, uses ScraperAPI’s Google Search endpoint to fetch SERP results and extracts the target domain’s rank, top competitor, and SERP features.
  4. Appends the parsed ranking snapshot (timestamp, keyword, rank, URLs, and features) to a Google Sheets history tab for tracking over time.
  5. Reads the ranking history from Google Sheets and compares the two most recent snapshots per keyword/domain to calculate movements and flag notable changes.
  6. If any notable movements are found, builds an HTML digest and sends it via Gmail.

Setup

  1. Connect Google Sheets credentials and fill in the document ID and sheet names for both the keyword source sheet and the ranking history sheet.
  2. Add a ScraperAPI credential and ensure your plan/access supports the Google Search structured data endpoint used by the workflow.
  3. Connect Gmail credentials and set the recipient email address in the Gmail send step.
  4. Ensure your keyword sheet includes fields the workflow expects (at minimum keyword and target_domain, optionally tld and country_code).

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Sticky Note5

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

Block 7 - When Daily at 8am

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

Block 8 - Read Keywords in Sheets

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

Block 9 - Loop Keywords

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

Block 10 - Scrape Google SERP

Type / Role
n8n-nodes-scraperapi-official.scraperApi - scraperApi
Config choices
Version 1

Block 11 - Parse Search Rankings

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

Block 12 - Append Rankings in Sheets

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

Block 13 - Read History in Sheets

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

Block 14 - Compute Keyword Changes

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

Block 15 - If Notable Movements

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 16 - Build Movement Digest

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

Block 17 - Send Digest Email via Gmail

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

3. Summary Table

Workflow Track Google keyword rankings with ScraperAPI, Google Sheets, and Gmail
Complexity advanced
Nodes 17
Categories Market Research
Author ScraperAPI
Published 10 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16239/16239.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 Google keyword rankings with ScraperAPI, Google Sheets, and Gmail do?

Quick Overview This workflow runs daily to read keywords from Google Sheets, scrape Google Search results via ScraperAPI, store ranking history back in Google Sheets, and email a Gmail digest when ...

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.