SEO Keyword Generation via Google Autosuggest API - n8n Workflow

Use this efficient n8n workflow to generate SEO keywords instantly via the Google Autosuggest endpoint. A powerful n8n template for marketers and content creators.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • SEO specialists and digital marketers needing fast keyword research tools.

  • Content creators looking to optimize articles based on current search trends.

  • Users searching for practical n8n templates for data extraction.

  • Developers integrating a keyword API into their applications using an n8n trigger.

Overview

Generating relevant keywords is crucial for effective SEO strategies. This powerful n8n workflow automates the often tedious process of scraping Google Autosuggest results, providing a clean, actionable list of suggestions based on a single input query.

This specific n8n template is designed for efficiency. By utilizing the Webhook n8n trigger, users can integrate this keyword generator into existing applications or call it directly via a simple HTTP request. The workflow handles the complexity of communicating with Google, processing the resulting XML data, and structuring the keywords into a usable JSON output. This robust n8n node configuration ensures you get reliable, structured data every time, saving countless hours compared to manual research.

How it Works

This automation operates entirely on demand, starting with the Webhook n8n trigger.


  1. Receive Input: The Receive Keyword n8n trigger waits for an incoming HTTP request containing the base keyword in a query parameter (e.g., ?q=keyword).

  2. API Call: The Autogenerate Keywords n8n node executes an HTTP Request to the Google Autosuggest endpoint, appending the input keyword dynamically.

  3. Data Transformation (XML to JSON): Because the Google endpoint returns data in XML format, the Format Keywords n8n node converts this XML response into a structured JSON object, making it processable.

  4. Item Splitting: The Split Out n8n node takes the JSON array of suggestions and splits it into individual items. It specifically targets the toplevel.CompleteSuggestion array to ensure each suggestion is handled separately.

  5. Data Cleaning: The Clean Keywords n8n node (a Set node) extracts only the core keyword value, mapping it to a clean field named Keywords by retrieving data from the sub-structure (suggestion.data).

  6. Aggregation: The Aggregate n8n node collects all the individually cleaned keyword items and merges them back into a single, clean array containing all generated Keywords.

  7. Final Response: The return Keywords n8n node sends the final aggregated array of generated keywords back to the original request source, completing the entire n8n workflow execution.

Installation Guide

To deploy this n8n template:


  1. Import the n8n workflow JSON: Copy the provided JSON data and paste it into your n8n instance via the 'New' menu -> 'Import from JSON'.

  2. Activate the Webhook: The Receive Keyword n8n trigger node is pre-configured. Ensure your n8n instance is running and accessible externally if you plan to call it from outside your local network.

  3. Test the n8n trigger: Run the n8n workflow manually or call the provided webhook URL, making sure to include a query parameter ?q=your-keyword (e.g., http://your.n8n.url/webhook/76a63718-b3cb-4141-bc55-efa614d13f1d?q=n8n%20templates).

  4. No Credentials Needed: This specific n8n workflow uses an open Google endpoint, requiring no special API keys or credentials.

Node Details


  • Receive Keyword (Webhook n8n trigger): Acts as the starting point, listening for incoming HTTP requests. It captures the initial keyword query parameter (q) which drives the entire n8n workflow.

  • Autogenerate Keywords (HTTP Request n8n node): Calls the https://google.com/complete/search endpoint. It dynamically constructs the URL using the input query: {{ $json.query.q }}.

  • Format Keywords (XML n8n node): Essential for converting the XML output received from Google's endpoint into a structured, usable JSON format for subsequent n8n nodes.

  • Split Out (n8n node): Splits the incoming dataset based on toplevel.CompleteSuggestion, processing each keyword suggestion individually before final consolidation.

  • Clean Keywords (Set n8n node): Used to isolate and rename the desired data field. It specifically extracts the keyword from suggestion.data and assigns it to the clearer field name Keywords.

  • Aggregate (n8n node): Gathers all the individually processed keywords from the split items back into a single array, providing a neat output structure for this n8n workflow.

  • return Keywords (Respond to Webhook n8n node): The final step, returning the aggregated list of keywords as the response to the initial n8n trigger request.

Related n8n Workflows

Free

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

Automation expert with years of experience helping businesses improve their efficiency and productivity with smart automations that are affordable, scalable, and flexible.

Featured*