Automate business lead scraping from Apify to Google Sheets with data cleaning
Ready for 3.0Ready 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)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set
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 ---