Skip to main content

Business lead generation with Apify web scraping and Google Sheets storage

Workflow preview

Workflow preview
100%
Business lead generation with Apify web scraping and Google Sheets storage preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This flexible template scrapes business listings for any industry and location, perfect for sales teams, marketers, and researchers. Good to know Works with any business category (restaurants, cont...

Best for

  • Lead Generation automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.wait, n8n-nodes-base.splitout, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jordan Lee.

Original n8n.io source

1.1 Workflow description

Title
Business lead generation with Apify web scraping and Google Sheets storage
Workflow name
Business lead generation with Apify web scraping and Google Sheets storage

This flexible template scrapes business listings for any industry and location, perfect for sales teams, marketers, and researchers.

Good to know

  • Works with any business category (restaurants, contractors, retailers, etc.)
  • Fully customizable search parameters
  • Results automatically organized in Google Sheets
  • Built-in delay ensures scraping completes before data collection

How it works

  1. Trigger: Manual or scheduled start
  2. Apify Configuration: Sets scraping parameters (industry, location, data fields)
  3. Scraping Execution: Runs the web scraping job
  4. Data Processing: Cleans and structures the raw data
  5. Storage: Saves results to your Google Sheets

What is Apify?

Apify is a webscraping tool, in this workflow the data is scraped from a google maps scraper:

https://apify.com/compass/crawler-google-places

How to use

Apify Small # Lead Generation (Purple)

https://apify.com/compass/crawler-google-places

  1. Add location and industry to scrape (Apify)
  2. Add the number of leads to output (Apify)
  3. Copy over the JSON file into N8N
  4. Copy & paste API endpoint "Get Run URL" in N8N

Apify Large # Lead Generation (Grey)

Configure the Manual Trigger

When clicking 'Execute workflow' node is ready to use as-is This triggers the entire lead generation process

Setup "Start Results (Apify)" Node

Get Your Apify API Information

Go to Apify.com and create a free account

Navigate to Settings → Integrations → API tokens Copy your API token Find the Google Maps scraper actor ID:

Configure the HTTP Request (start results)

Method: POST URL: Replace "enter apify (get run)" with: https://api.apify.com/v2/acts/nwua9Gu5YrADL7ZDj/runs?token=YOUR_API_TOKEN

C. Customize the JSON Body Parameters In the JSON body, modify these key fields: Location & Search:

"locationQuery": Change "Toronto" to your target city "searchStringsArray": Change ["barber"] to your business type

Examples: ["restaurants"], ["dentists"], ["contractors"]

Configure the HTTP Request (start results)

Method : Get Url: enter the get dataset URL from Apify

Split Out Node

Select fields to append in the google sheet

Test the Configuration

Click Execute workflow to test Check that the Apify job starts successfully Note the job ID returned for the next section

This section initiates the scraping process and should complete in 30-60 seconds depending on your lead count.

Setup Google Sheets

Create a new Google Sheet with these columns:

title (business name) address (full address) state (state/province) neighborhood (area/district) phone (contact number) emails (email addresses)

Copy your Google Sheets document ID for workflow configuration

Requirements

  • Apify account
  • Google Sheets document
  • Google OAuth credentials

Customization Options

For different use cases:

  • Lead Gen: Get business leads
  • Local SEO: Collect competitor data
  • Market Research: Analyze industry trends

Advanced mofications:

  • Add email enrichment
  • Integrate with CRM systems
  • Set up automatic daily runs

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Wait for all results

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 3 - Split Out into Google Sheets

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 4 - Update Scraped Information

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Get Results (Apify)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Start Results (Apify)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Get Results (Apify)1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Business lead generation with Apify web scraping and Google Sheets storage
Complexity intermediate
Nodes 12
Categories Lead Generation
Author Jordan Lee
Published 02 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5555/5555.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Business lead generation with Apify web scraping and Google Sheets storage do?

This flexible template scrapes business listings for any industry and location, perfect for sales teams, marketers, and researchers. Good to know Works with any business category (restaurants, cont...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation use case.