Google Autocomplete Keyword Scraper - n8n Workflow

Scrape thousands of keyword suggestions using Google Autocomplete. This n8n workflow automatically handles rate limiting, batching requests, and parsing data for comprehensive SEO research.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Marketing specialists focused on SEO.
Content strategists needing high-volume keyword ideas.
Developers seeking advanced web scraping n8n templates.
Users looking to implement rate-limited bulk data processing using an n8n node setup.

Overview

Effective keyword research is the foundation of any successful SEO strategy. Google Autocomplete provides real-time insights into what users are searching for, but manually extracting these results is time-consuming and prone to errors. This specialized n8n workflow solves this by systematically querying Google for thousands of possible keyword combinations.

The core challenge in scraping search engines is avoiding IP blocking or rate limiting. This sophisticated n8n template manages this by generating 26 targeted queries (one for each letter A-Z appended to the base keyword), batching the requests, and implementing crucial waiting periods between batches. The result is a robust and efficient automation that delivers a complete list of relevant, long-tail keywords directly related to your primary term. This fully automated n8n solution ensures you capture deep keyword data reliably.

How it Works

This powerful n8n workflow follows a seven-step process to ensure thorough keyword extraction while respecting Google’s rate limits:


  1. Input Trigger: The process begins with the "Get Keyword" n8n trigger, which accepts the single base keyword you wish to analyze. The flexible nature of this n8n node allows the input to be easily swapped for a Google Sheets line or a simple webhook.

  2. Query Generation: The "Generate A-Z Queries" code n8n node takes the base keyword and programmatically creates 26 new items. Each new item combines the base keyword with a letter from 'a' through 'z' (e.g., 'n8n a', 'n8n b', etc.).

  3. Batching for Safety: The "Loop Over Items" n8n node (Split In Batches) divides these 26 items into batches of 10. This is the first layer of rate-limit protection for the subsequent HTTP requests.

  4. Scraping Google: The "Google Autocomplete" HTTP Request n8n node sends the batched queries to the Google Suggest API. The configuration allows users to easily adjust the language parameter (&hl=en).

  5. Parsing Results: A subsequent Code n8n node cleans the raw API response, extracting only the relevant keyword suggestions.

  6. Rate Limit Control: The "Wait 1s" n8n node introduces a necessary 1-second pause. After this pause, the workflow loops back to process the next batch of 10 keywords. This controlled speed prevents the n8n workflow from being blocked by Google.

  7. Final Aggregation and Output: Once all batches are processed, the "Extract Keywords" code n8n node merges all individual lists of suggestions into a single, cohesive keyword list, which is then returned via the "Return Keywords" response n8n node.

Installation Guide

To install and utilize this n8n workflow template, follow these steps:


  1. Import: Copy the provided JSON code. Navigate to your n8n instance, click 'New' > 'Import from JSON', and paste the code.

  2. Activation: The workflow uses a Langchain Chat Trigger to get the initial keyword. You can execute this n8n trigger manually during testing.

  3. Customization (Optional):

If you need results in a language other than English, open the "Google Autocomplete" n8n node and change the &hl=en parameter in the URL to your desired language code (e.g., &hl=fr for French).
Adjust the batch size in the "Loop Over Items" n8n node or the wait time in the "Wait 1s" n8n node if you encounter frequent blocking (although the defaults are optimized).

  1. Save and Activate: Save the n8n workflow and toggle it to 'Active'.

Node Details

This n8n workflow leverages several specialized n8n node types to achieve reliable, rate-limited web scraping:

Get Keyword (Chat Trigger): Serves as the starting n8n trigger. It captures the initial base keyword that the user wants to research. It uses the chatInput field to receive data.
Generate A-Z Queries (Code n8n node): Essential for strategy. It iterates through the alphabet, combining the input keyword with 'a' through 'z' to create 26 distinct search queries, significantly expanding the scope of the n8n workflow.
Loop Over Items (Split In Batches n8n node): Crucial flow control element. It splits the 26 queries into manageable batches (set to 10) before hitting the Google API, ensuring the n8n workflow operates smoothly.
Google Autocomplete (HTTP Request n8n node): The core scraper. It uses a specific Google Suggest URL. The query is dynamically inserted using an expression (={{ $json.query }}) based on the input from the batch.
Code (n8n node - Parsing): This node processes the raw JSON output from the HTTP request, extracting the list of suggested keywords (data[1]) and structuring it for the next step.
Wait 1s (Wait n8n node): A critical component for stability. It pauses the execution between batches for one second, drastically reducing the risk of rate-limiting errors when running this n8n workflow.


  • Extract Keywords (Code n8n node - Merging): This final code n8n node takes all the keyword lists collected from every batch and loop, aggregating them into one master list before the final output.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by

Automation enthusiast with a passion for making things click! Got a wild workflow idea or a tedious task to kill? I'm all ears. Use the link below to contact me. Fluent in French, English, and fluent-ish in “n8nish.”

Featured*