Quick overview
This workflow collects a Google Maps search URL and lead filters through an n8n form, uses Apify to scrape matching places (including phone numbers and website emails), then returns a downloadable CSV file of the lead list.
How it works
- Receives a lead request via an n8n form with a Google Maps search URL, lead count, and optional filters.
- Sends the search URL and filters to Apify’s Google Places crawler to scrape matching businesses and their contact details.
- Extracts and standardizes key fields (business name, category, rating, reviews, phone, website, email, and location details) into a clean lead list.
- Converts the lead list into a CSV file named
google-maps-leads.csv.
- Returns the CSV as a downloadable file on the form completion page.
Setup
- Create an Apify account, generate a Personal API token, and add it to n8n as an Apify API credential.
- Ensure the Apify credential is selected in the HTTP request that calls Apify’s
compass~crawler-google-places actor.
- Activate the workflow and use the n8n form URL to submit a Google Maps search link and your desired filters.
Requirements
- A free Apify account (the free tier includes monthly credits).
Customization
- Filter from the form: minimum rating, only businesses with a website, and skip permanently-closed places.
- Change how many leads you pull per run in the form.
- Add or remove output columns in the "Build lead list" node.