Generate city-based business leads with Google Maps and Google Sheets
Quick overview This workflow collects business leads from Google Maps by geocoding a user-provided city, searching across a small coordinate grid with Places Nearby Search pagination, and writing enriched business details (name, address, phone, website, ratings) to a Google Sheets spreadsheet.
How it works Receives a form submission with a search term, target city, max results value, and a Google Maps API key. Calls the Google Geocoding API to convert the target city into latitude/longitude coordinates. Generates a 4-point coordinate grid around the city center and searches Google Places Nearby Search for the keyword at each grid point, paging through up to three result pages with delays to allow page tokens to activate. Merges results from all pages, collects the returned Place IDs, and iterates through them in batches. Fetches each business’s details from the Google Places Details API and maps the response into standardized lead fields (name, address, phone numbers, website, rating, review count, status, types). Appends each lead as a new row into a Google Sheets tab, including the original search term as the category.
Setup Enable the Google Maps Geocoding API and Places API (Places Nearby Search and Place Details) in a Google Cloud project and generate an API key. Connect a Google Sheets OAuth2 credential in n8n and select (or replace) the target spreadsheet and sheet tab where leads are appended. Open the workflow’s form trigger, run a test execution to get the form URL, and submit your keyword, city, and Google Maps API key to start populating the sheet.
Related Templates
Extract Title tag and Meta description from url for SEO analysis with Airtable
Extract Title tag and meta description from url for SEO analysis. How it works The workflows takes records from Airtabl...
Restore your workflows from GitHub
This workflow restores all n8n instance workflows from GitHub backups using the n8n API node. It complements the Backup ...
Extract Named Entities from Web Pages with Google Natural Language API
Who is this for? Content strategists analyzing web page semantic content SEO professionals conducting entity-based anal...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments