🎣 Automate business lead scraping from Apify to Google Sheets with data cleaning

⚑ 25,237 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.

View All Scrapers

Description

πŸš€ Automated Lead Scraper Workflow (Apify + n8n + Google Sheets)

🧠 What It Does

This n8n workflow automates the process of scraping leads using Apify, cleaning the extracted data, and exporting it to Google Sheetsβ€”ready for use in outreach, prospecting, or CRM pipelines.


πŸ”„ Workflow Steps

  1. βœ… Start – Manually triggers the workflow.

  2. 🧩 Set Variables – Stores required Apify credentials:

    • APIFY_TOKEN: Your Apify token.
    • APIFY_TASK_ID: The Apify task to run.
  3. πŸ•ΈοΈ Run Apify Scraper – Launches the scraper and fetches the dataset.

  4. 🧹 Clean Data – Processes scraped results to:

    • βœ‚οΈ Strip non-numeric characters from phone numbers.
    • βœ‰οΈ Format emails (lowercase + trimmed).
  5. πŸ“Š Export to Google Sheets – Appends clean data to your spreadsheet:

    • 🏒 company name β†’ from title
    • πŸ“ž phone β†’ cleaned number
    • πŸ“ address β†’ from scraped info

πŸ› οΈ Requirements


🚦 How to Use

  1. βš™οΈ Open the Variables node and plug in your Apify credentials.
  2. πŸ“„ Confirm the Google Sheets node points to your desired spreadsheet.
  3. ▢️ Run the workflow manually from the Start node.

πŸ“₯ Output

A ready-to-use sheet of cleaned lead data containing:


πŸ’Ό Perfect For:


πŸ”— Nodes Used

Google Sheets, HTTP Request

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup