Google Maps Business Email Scraper Template - n8n Workflow

Use this powerful n8n workflow template to automatically scrape business emails from Google Maps search results based on custom queries and save them directly to Google Sheets.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Lead generation specialists and sales teams.

  • Marketing professionals building targeted outreach lists.

  • Users looking for advanced web scraping techniques within n8n.

  • Anyone seeking robust, API-less n8n templates for data extraction.

Overview

This solution provides a robust, self-hosted method for high-volume lead generation directly from Google Maps, bypassing the need for expensive third-party APIs. This advanced n8n workflow template utilizes recursive execution and sophisticated regex patterns within several n8n node components to systematically search Google Maps based on a list of queries, extract corresponding website URLs, visit those websites, and finally scrape publicly listed email addresses. The extracted data is cleaned, de-duplicated, and automatically saved to a Google Sheet, offering a powerful, customized data pipeline built entirely within n8n.

How it Works

This complex n8n workflow operates in two main phases: a primary execution loop and a recursive scraping loop.


  1. Initiation and Looping (Primary n8n Workflow): The process begins with the Manual Trigger n8n trigger, which supplies a list of predefined search queries (e.g., 'city + industry'). The Loop over queries n8n node then splits these inputs.

  2. Throttled Execution: For each query, the Execute scraper for query n8n node recursively calls the scraping portion of this n8n workflow template. A Wait between executions n8n node enforces a 2-second delay between initiating each query's scraper, helping to prevent rate limits.

  3. Google Maps Search: The recursive n8n workflow execution starts by receiving the query and using an HTTP Request n8n node to search Google Maps.

  4. URL Extraction and Filtering: A Code n8n node analyzes the HTML response and extracts potential website URLs for the businesses listed. These URLs are cleaned using the Filter irrelevant URLs and Remove Duplicate URLs n8n node steps.

  5. Website Harvesting: The n8n workflow iterates over the unique business URLs (Loop over URLs), using a second HTTP Request n8n node to fetch the content of each specific website.

  6. Email Scraping: The Scrape emails from page Code n8n node uses a robust regex pattern to find and extract email addresses from the website's HTML content.

  7. Data Consolidation and Cleaning: All scraped emails are aggregated, split into individual items (Split out into default data structure), and passed through a final stage of filtering (Filter irrelevant emails) and de-duplication (Remove duplicate emails) to ensure a high-quality lead list.

  8. Final Output: The clean, unique emails are finally appended to the configured Google Sheet using the Save emails to Google Sheet n8n node.

Installation Guide


  1. Import: Copy the entire n8n workflow JSON provided and import it into your n8n instance.

  2. Configuration (Queries): Locate the 'Run workflow' Manual Trigger n8n trigger node. Ensure your desired search queries are set up in the node's input data, defining the targets for your scraping operation.

  3. Google Sheets Setup: Navigate to the 'Save emails to Google Sheet' n8n node.

Set up your Google Sheets credentials if you haven't already. (A video tutorial is linked in the sticky notes within the n8n template).
Select the target Spreadsheet Document and Sheet Name where the scraped emails should be saved.

  1. Execution: Once configured, activate the n8n workflow and click 'Execute Workflow' on the 'Run workflow' n8n trigger node to begin the scraping process.

Node Details

Manual Trigger: The primary n8n trigger starting the execution, containing the list of search queries.
Execute Workflow n8n node: Facilitates running the scraper logic recursively for each query, essential for managing parallel batch execution within this n8n workflow.
Wait n8n node: Introduces a 2-second delay between starting each query's scraping job, crucial for maintaining stability and avoiding external rate limits.
HTTP Request n8n node (Search Google Maps): Performs the initial search query against the Google Maps URL to retrieve the HTML results.
Code n8n node (Scrape URLs from results): Uses custom JavaScript and regex to extract primary domain URLs from the raw Google Maps search HTML.
Filter n8n node (Filter irrelevant URLs): Cleans the extracted URL list, removing generic hostnames (e.g., google, wix) using specific regex patterns.
HTTP Request n8n node (Request web page for URL): Fetches the content of each specific business website, configured to continue output even if a request fails (onError: continueRegularOutput).
Code n8n node (Scrape emails from page): Extracts valid email patterns from the website content using advanced email regex.
Remove Duplicates n8n node: Used twice in the n8n workflow to ensure both the list of URLs and the final list of emails are unique.
Google Sheets n8n node: The final output n8n node, configured to append the clean, validated email leads into a designated spreadsheet.

Related n8n Workflows

Free

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

n8n Automation Freelancer ------------------------ Contact me at: [email protected]

Featured*