Templates / Google maps scraper

Google maps scraper

Needs changes

by Lucas Perret ✓ · 67,433 views · created 2024-01-23 · Lead Generation

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 15 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects Google Sheets. It also calls serpapi.com over HTTP.

How it runs

Trigger: On a schedule (every hour) (plus 1 other trigger).

  1. Google Sheets: uses Google Sheets
  2. Extract keyword and location from URL (Edit Fields (Set)): sets or maps fields
  3. SERPAPI - Scrape Google Maps URL (HTTP Request): calls serpapi.com
  4. Extract next start value (Code): runs custom JavaScript code
  5. Update Status to Error (Google Sheets): update
  6. Continue IF Loop is complete (If): checks a condition and branches into true / false
  7. Merge all values from SERPAPI (Code): runs custom JavaScript code
  8. Split out items (Item Lists): reshapes item lists (legacy Item Lists node)
  9. Remove empty values (Filter): keeps only the items that match a condition
  10. Transform data in the right format (Code): runs custom JavaScript code

…plus 3 more steps. See the full node list below.

Services it uses

Google Sheets

HTTP calls to: serpapi.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Item Lists (legacy) in Remove duplicate items, Split out items: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Item Lists (legacy)
Remove duplicate items, Split out items
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (9)

From the author

This workflow allows to scrape Google Maps data in an efficient way using SerpAPI. You'll get all data from Gmaps at a cheaper cost than Google Maps API. Add as input, your Google Maps search URL and you'll get a list of places with many data points such as:…

Excerpt from Lucas Perret's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.