How to Scrape Business Emails From Google Maps With n8n

TL;DR
An n8n workflow can collect business emails from Google Maps for free, without external APIs or credits. A trigger workflow feeds search queries, such as dentists in different California sub regions, into a scraping workflow. That workflow requests Google Maps, extracts website domains with a code node, filters and dedupes them, pulls emails, and writes them to Google Sheets. In a demo run it gathered 909 emails.
Transcript
all right what we have here is a trigger workflow that's going to take all 97 of these search queries which are looking for sub regions in California and looking for dentists and it's going to run them through this workflow which is going in and scraping them in Google getting their emails and then putting it into a Google sheet for us so let's tes... Read More
Key Insights
- The workflow scrapes business emails from Google Maps search results for free, using n8n HTTP requests instead of external APIs or paid credits, and writes the results straight into a Google Sheet.
- Breaking a broad search into many sub regions returns more businesses. A search like California real estate surfaces mainly the top SEO results, while queries such as Bay Area real estate return more hits per area.
- HTTP requests cannot contain blank spaces, so search terms are joined with plus signs, as in Bay+Area+real+estate, and appended to the google.com/maps/search URL.
- A code node is required after the first HTTP request because Google Maps returns a large chunk of raw HTML, and the code parses out business domains from that HTML.
- A filter node set to does not match a regular expression removes unwanted domains such as Google, Google user content, gstatic and schema. In the test, it kept 32 of the returned items.
- The regular expression lists excluded domains inside parentheses separated by vertical bars, and it fails if spaces are placed between the entries. A slower alternative is several does not contain conditions.
- A Remove Duplicates node set to remove items repeated within current input cleans out repeated business domains before the second HTTP request visits each site to extract emails.
- A separate trigger workflow sends each query to the scraping workflow in turn, with a 6 second wait between executions. In the demo, 97 queries about California dentists were queued.
Install to Summarize YouTube Videos and Get Transcripts
Explore YouTube Video Summarizer or Get YouTube Transcript Extractor
Questions & Answers
Q: How to scrape business emails from Google Maps for free with n8n?
Build a workflow that is called by another workflow with a search query. It sends an HTTP GET request to google.com/maps/search with the query, parses the returned HTML with a code node to get business domains, filters out unwanted domains with a regular expression, removes duplicates, then requests each site and extracts emails before writing them to Google Sheets. No external APIs or credits are needed.
Q: How many emails can this n8n Google Maps scraper collect?
In the demo, a trigger workflow fed 97 queries for dentists in California sub regions. After the first 10 queries finished there were 159 emails, after 58 of 97 there were 814, and the run was stopped at 909 emails after about 60 executions. The creator noted it would easily have cleared 1,000 if left to finish, and that more queries produce more emails.
Q: Why should Google Maps searches be split into sub regions?
A broad search such as California real estate mainly returns the top SEO businesses and does not give many results. Narrowing the search to sub regions or neighborhoods, such as Bay Area real estate, returns more hits for each area. Running many sub region queries through the workflow, like the 97 used in the demo, multiplies the number of businesses and emails collected.
Q: How do you format a search query for the n8n HTTP request to Google Maps?
HTTP requests cannot contain blank spaces, so each space is replaced with a plus sign, for example Bay+Area+real+estate. In n8n, the test input is written as a JSON field named query, and the HTTP request URL is set to google.com/maps/search followed by that query as an expression. The query then changes for each call made by the trigger workflow.
Q: Why does the workflow need a code node after the first HTTP request?
The Google Maps request returns a large, messy chunk of HTML rather than clean data. A code node parses that HTML and pulls out business domains. The output still contains many duplicates and irrelevant domains, which is why a filter node and a Remove Duplicates node follow it. The creator shares the code snippet in their free Skool community under YouTube resources.
Q: How do you filter out unwanted domains in n8n with a regular expression?
Add a filter node on the URL value and set the condition to does not match a regular expression. List the unwanted domains, such as google, googleusercontent, gstatic and schema, inside parentheses separated by vertical bars. Do not put spaces between entries, because that breaks the match. In the test, the filter kept 32 items. An alternative is adding several does not contain conditions, one per domain.
Q: How do you remove duplicate domains in the n8n email scraping workflow?
After the filter node, add a Remove Duplicates node and choose the option remove items repeated within current input, not the other two actions. The filter step still leaves repeated business domains, so this node ensures each website is only processed once before the workflow moves on to the second HTTP request that visits each site to extract email addresses.
Q: How does the trigger workflow run many queries through the email scraper?
A separate trigger workflow holds the list of search queries, such as 97 California sub regions for dentists, and calls the scraping workflow once for each query. In the demo it waits 6 seconds between each execution. The executions list shows every run individually, so you can see that each one searched a different sub region and added its emails to the Google Sheet.
Summary & Key Takeaways
-
The demo runs a trigger workflow that feeds 97 search queries for dentists in California sub regions into a scraping workflow. After the first 10 queries it had 159 emails, after 58 queries 814, and it was stopped at 909 emails after about 60 executions, all without paid APIs or credits.
-
The scraping workflow starts when another workflow calls it with a query. An HTTP GET request goes to google.com/maps/search with the query appended, using plus signs in place of spaces. A code node then parses business domains out of the raw HTML that Google Maps returns.
-
A filter node uses a regular expression to discard unwanted domains like Google and gstatic, and a Remove Duplicates node drops repeats. Later steps visit each site to extract emails, organize the data for Google Sheets, and connect a trigger workflow that loops over many queries.
-
The build was inspired by a workflow from Akram Kadri found on LinkedIn, and the template and code snippets are available in the creator's free Skool community.
Read in Other Languages (beta)
Share This Summary 📚
Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator
Explore More Summaries from Nate Herk | AI Automation 📚






Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator