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

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

Ready for 3.0

by David Olusola โœ“ ยท 26,535 views ยท created 2025-05-21 ยท Lead Generation

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (5)

Google Sheets

What it does

๐Ÿš€ 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: APIFYTOKEN: Your Apify token. APIFYTASKID: 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 ๐Ÿ•ท๏ธ Apify Account A valid APIFYTOKEN An existing Apify task (APIFYTASKID) ๐Ÿ“— Google Sheets Access OAuth2 credentials set up in n8n (e.g., "Google Sheets account 2") --- ๐Ÿšฆ 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: Company names Phone numbers Addresses --- ๐Ÿ’ผ Perfect For: Sales teams doing outbound prospecting Marketers building lead lists Agencies running data aggregation tasks ---

View the original on n8n.io โ†’ Check your own copy

Get the weekly โ€œwhat brokeโ€ email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.