Skip to main content

Collect keyword clusters for URLs in Google Sheets with DataForSEO

Workflow preview

Workflow preview
100%
Collect keyword clusters for URLs in Google Sheets with DataForSEO preview
Open on n8n.io

1. Workflow Overview

This workflow automatically fetches up to 100 ranked keywords for specific URLs based on Google search data and s...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-dataforseo.dataforseolabsapi, n8n-nodes-base.splitinbatches

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Collect keyword clusters for URLs in Google Sheets with DataForSEO
Workflow name
Collect keyword clusters for URLs in Google Sheets with DataForSEO

This workflow automatically fetches up to 100 ranked keywords for specific URLs based on Google search data and stores your full ranking history in Google Sheets.

On each scheduled run, the workflow reads a list of URLs and related input from your Google Sheets, and uses the DataForSEO Labs API to collect ranking keywords together with all relevant SEO metrics, such as position, search volume, keyword difficulty, CPC, competition, intent, result type, and estimated traffic.

The workflow then saves the results in a separate Spreadsheet tab corresponding to each URL. Table rows contain your keywords, columns store ranking positions by run date, and keyword metrics. Every execution creates a new historical snapshot without replacing previous data.

As a result, you get a clean historical table by URL that lets you easily compare keyword coverage between runs, detect ranking changes, and analyze organic search trends without manual exports.

Who’s it for

This workflow is ideal for SEO specialists, content marketers, agencies, and website owners who want to automatically collect and store historical data on ranked keyword clusters for specific URLs.

What it does

This workflow automatically retrieves a list of URLs, extracts up to 100 ranked organic keywords for each from the DataForSEO Labs API for Google search, and saves the results to Google Sheets in a historical append-only format where each tab represents a separate URL.

How it works

Triggers on your preferred schedule or manually.

Fetches URLs from your input in Google Sheets.

Check the top-100 ranked keywords for your URLs using the DataForSEO Labs API.

Creates a dedicated sheet for each URL, saves SEO metrics from the API response, such as keyword, ranking positions, search volume, keyword difficulty, CPC, competition, search intent, and more.

Adds new columns for each date of the run, creating a historical data record in Google Sheets.

Requirements

  • n8n cloud account with the DataForSEO node installed or a self-hosted n8n instance
  • DataForSEO account and API credentials
  • Google Sheets account and connection to n8n

Customization

You can easily customize this workflow by changing the run frequency, switching the target search location or language, storing results in another database instead of Google Sheets, or extending the output with alerts, summaries, or dashboard reporting.

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.3

Block 2 - Create sheet

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

Block 3 - Append row in sheet

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

Block 4 - Merge

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

Block 5 - Normalize URL

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

Block 6 - Prepare data for GS

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

Block 7 - Prepare columns data for GS

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

Block 8 - Sticky Note

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

Block 9 - Sticky Note1

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

Block 12 - Get URLs

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

Block 13 - Get ranked keywords

Type / Role
n8n-nodes-dataforseo.dataForSeoLabsApi - dataForSeoLabsApi
Config choices
Version 1

Block 14 - Append row in sheet1

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

Block 15 - Loop Over Items (each URL)

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

Block 16 - Split out (items)

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

Block 17 - Filter

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

Block 18 - Filter (only active)

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

Block 19 - If a new sheet created

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

3. Summary Table

Workflow Collect keyword clusters for URLs in Google Sheets with DataForSEO
Complexity advanced
Nodes 19
Categories Market Research
Author DataForSEO
Published 27 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15319/15319.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 Collect keyword clusters for URLs in Google Sheets with DataForSEO do?

This workflow automatically fetches up to 100 ranked keywords for specific URLs based on Google search data and s...

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.