Skip to main content

Comprehensive SEO keyword research & analysis with DataForSEO and Google Sheets

Workflow preview

Workflow preview
100%
Comprehensive SEO keyword research & analysis with DataForSEO 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

Overview This n8n workflow, named "Keyword Search for Blogs," automates the process of gathering and organizing keyword research data for SEO purposes. It integrates with Google Sheets and Google D...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.googledrive, n8n-nodes-base.splitout, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.filter, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Comprehensive SEO keyword research & analysis with DataForSEO and Google Sheets
Workflow name
Comprehensive SEO keyword research & analysis with DataForSEO and Google Sheets

Overview

This n8n workflow, named "Keyword Search for Blogs," automates the process of gathering and organizing keyword research data for SEO purposes. It integrates with Google Sheets and Google Drive to manage input and output data, and leverages the DataForSEO API to fetch comprehensive keyword-related information, including related keywords, keyword suggestions, keyword ideas, autocomplete suggestions, subtopics, and SERP (Search Engine Results Page) analysis. The workflow is designed to streamline SEO research by collecting, processing, and storing data in an organized manner for blog content creation.

Workflow Functionality

The workflow performs the following key functions:

Trigger: Initiated manually via the "When clicking ‘Test workflow’" node, allowing users to start the process on-demand.

Input Data Retrieval: Reads primary keywords, location, and language data from a specified Google Sheet ("SEO PRO").

Spreadsheet Creation: Creates a new Google Sheet with a dynamic title based on the current date (e.g., "YYYY-MM-DD-seo pro") and predefined sheet names for organizing different types of keyword data (e.g., keyword, SERP, Content, related keyword, keyword ideas, suggested keyword, subtopics, autocomplete).

Google Drive Integration: Moves the newly created spreadsheet to a designated folder ("seo pro") in Google Drive for organized storage.

API Data Collection:

Related Keywords: Fetches related keywords using the DataForSEO API (/v3/dataforseo_labs/google/related_keywords/live), including SERP information and keyword metrics like search volume, CPC, and competition.

Keyword Suggestions: Retrieves keyword suggestions via the DataForSEO API (/v3/dataforseo_labs/google/keyword_suggestions/live).

Keyword Ideas: Collects keyword ideas using the DataForSEO API (/v3/dataforseo_labs/google/keyword_ideas/live).

Autocomplete Suggestions: Gathers Google autocomplete suggestions through the DataForSEO API (/v3/serp/google/autocomplete/live/advanced).

Subtopics: Generates subtopics for the primary keyword using the DataForSEO API (/v3/content_generation/generate_sub_topics/live).

People Also Ask & Organic Results: Pulls "People Also Ask" questions and organic SERP results via the DataForSEO API (/v3/serp/google/organic/live/advanced).

Data Processing:

Uses Split Out nodes to break down API responses into individual items for processing.

Employs Edit Fields nodes to map and format data, extracting relevant fields like keyword, search intent, search volume, CPC, competition, keyword difficulty, and SERP item types.

Filters SERP results to separate "People Also Ask" and organic results for targeted processing.

Data Storage: Appends processed data to multiple sheets in the destination Google Sheet ("2025-06-08-seo pro") across different tabs:

Master Sheet: Stores comprehensive data including keywords, search intent, related keywords, SERP analysis, and more.

Related Keywords: Stores related keyword data with metrics.

Suggested Keywords: Stores suggested keyword data.

Keyword Ideas: Stores keyword ideas with relevant metrics.

Autocomplete: Stores autocomplete suggestions.

Subtopics: Stores generated subtopics.

Organic Results: Stores organic SERP data with details like domain, URL, title, and description.

Key Features

Automation: Eliminates manual keyword research by automating data collection and organization.

Scalability: Processes multiple keywords and their related data in a single workflow run, with a limit of 100 related items per API call.

Dynamic Organization: Creates and organizes data in a new Google Sheet with a timestamped title, ensuring easy tracking of research over time.

Comprehensive SEO Insights: Collects diverse SEO metrics (e.g., keyword difficulty, search intent, SERP item types) to inform content strategy.

Error Handling: Uses filters to ensure only relevant data (e.g., "people_also_ask" or "organic" results) is processed and stored.

Use Case

This workflow is ideal for SEO professionals, content creators, and digital marketers who need to perform in-depth keyword research for blog content. It provides a structured dataset that can be used to identify high-potential keywords, understand search intent, analyze SERP competition, and generate content ideas, all of which are critical for optimizing blog posts to rank higher on search engines.

Inputs

Google Sheet ("SEO PRO"): Contains primary keywords, location names, and language names.

Google Drive Folder: Destination folder ("seo pro") for storing the output spreadsheet.

DataForSEO API Credentials: Requires HTTP Basic Authentication credentials for accessing DataForSEO API endpoints.

Outputs

A new Google Sheet titled with the current date (e.g., "2025-06-08-seo pro") containing multiple tabs:

Master Sheet: Aggregated data for all keyword types.

Related Keywords: Detailed metrics for related keywords.

Suggested Keywords: Suggested keywords with metrics.

Keyword Ideas: Keyword ideas with metrics.

Autocomplete: Google autocomplete suggestions.

Subtopics: Generated subtopics for content planning.

Organic Results: Organic SERP data including domains, URLs, titles, and descriptions.

Benefits

Time-Saving: Automates repetitive tasks, reducing manual effort in keyword research.

Organized Data: Stores all data in a structured Google Sheet for easy access and analysis.

Actionable Insights: Provides detailed SEO metrics to guide content creation and optimization strategies.

Scalable and Reusable: Can be reused for different keywords by updating the input Google Sheet.

Technical Details

Nodes: Utilizes n8n nodes including manualTrigger, googleSheets, googleDrive, httpRequest, splitOut, set, and filter.

API Integration: Leverages DataForSEO API for real-time keyword and SERP data.

Credentials: Requires Google Sheets OAuth2 and Google Drive OAuth2 credentials, along with DataForSEO HTTP Basic Authentication.

Data Mapping: Uses set nodes to map API response fields to desired output formats, ensuring compatibility with Google Sheets.

Potential Enhancements

Add error handling for API failures or invalid inputs.

Include additional DataForSEO API endpoints for more granular data (e.g., competitor analysis).

Implement deduplication logic to avoid redundant keyword entries.

Add a scheduling node to run the workflow automatically at regular intervals.

This workflow is a powerful tool for SEO-driven content planning, providing a robust foundation for creating optimized blog content.

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 - When clicking ‘Test workflow’

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

Block 2 - Google Sheets

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

Block 3 - Google Sheets1

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

Block 4 - Google Drive

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

Block 5 - Split Out

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

Block 6 - Edit Fields

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

Block 7 - Split Out1

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

Block 8 - Edit Fields2

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

Block 9 - Split Out2

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

Block 10 - Edit Fields3

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

Block 11 - Split Out3

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

Block 12 - Edit Fields4

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

Block 13 - Split Out4

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

Block 14 - related keyword

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

Block 15 - keyword suggestion

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

Block 16 - keyword ideas

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

Block 17 - get autocomplete

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

Block 18 - get_subtopics

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

Block 19 - Edit Fields6

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

Block 20 - Google Sheets3

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

Block 21 - Google Sheets4

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

Block 22 - Google Sheets5

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

Block 23 - Google Sheets6

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

Block 24 - Google Sheets7

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

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

3. Summary Table

Workflow Comprehensive SEO keyword research & analysis with DataForSEO and Google Sheets
Complexity advanced
Nodes 41
Categories Market Research
Author rana tamure
Published 03 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6931/6931.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 Comprehensive SEO keyword research & analysis with DataForSEO and Google Sheets do?

Overview This n8n workflow, named "Keyword Search for Blogs," automates the process of gathering and organizing keyword research data for SEO purposes. It integrates with Google Sheets and Google D...

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.