🎣 Scrape Google Maps leads with Apify and export them to CSV
⚡ 89 views · 🎣 Lead Generation & Enrichment
💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.
Description
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-placesactor. - 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.
🔗 Nodes Used
HTTP Request, n8n Form Trigger, Convert to File, n8n Form
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File