Overview
Manually gathering business leads from Google Maps is tedious and error-prone. This workflow automates scraping by leveraging Apify's cloud service, extracting precise business data, cleaning it with a Python script, and archiving it directly into your Google Sheets—turning hours of grunt work into minutes.
The Impact
- Slash manual data collection. Automate lead gathering with a single parameter set.
- Standardize output. Extract only essential business info for clean, actionable data.
- Instantly archive. Append leads directly to your Google Sheet without extra steps.
- Scale effortlessly. Repeat for any city, country, or business type with ease.
Who This Is For
- Sales Professionals building targeted regional lead lists for outreach campaigns.
- Market Researchers analyzing competitor landscapes in specific locales.
- Entrepreneurs scouting business density and ratings in potential expansion areas.
- Travel Planners compiling local points of interest like hotels and restaurants.
- Directory Builders creating and maintaining comprehensive business databases.
How It Works
- Execute Scrape
- Send search parameters (city, country code, keywords) to Apify's Google Maps Scraper API and retrieve raw business data.
- Pre-process Data
- Parse the raw JSON response to extract only the key fields: name, address, website, phone, rating, reviews, and category.
- Format Each Business
- Convert each business object into a fixed-order string array for Google Sheets compatibility.
- Append to Sheet
- Write each formatted business record as a new row into the specified Google Sheets spreadsheet.
What You'll Need
Before using this template, make sure you have:
- A Google Sheets file with a sheet tab containing exactly 7 column headers: Name, Address, Website, Phone, Rating, Reviews, Category.
- Access to your Google Sheets Spreadsheet ID and the exact SheetName where data will be appended.
- An active Apify account with a valid Personal API Token for accessing the Google Maps Scraper API.
- Search parameters: city name, lowercase two-letter ISO country code, and business keywords.
How to Use
- Step 1. Prepare Your Google Sheet
- Step 2. Set Start Node Parameters
- Step 3. Configure Credentials
- Step 4. Run the Workflow
- Step 5. Verify Results
Create or select a Google Sheets file and set up the first row with these exact headers: Name, Address, Website, Phone, Rating, Reviews, Category.
Fill in SpreadsheetId from your Google Sheet URL, the SheetName tab, your Apify API token, target city, country code, and search keywords.
Ensure the 'Append Row to Google Sheet' node has the correct credentials to write into your Google Sheet.
Trigger the workflow to start scraping, processing, and appending business leads automatically.
Check your Google Sheet to confirm that new rows with clean, formatted business data have been appended.