Back to articles
Building a YouTube Subscriber Email Scraper with n8n, Apify, and Gmail

Building a YouTube Subscriber Email Scraper with n8n, Apify, and Gmail

via Dev.to TutorialHackceleration

Architecture Overview YouTube doesn't expose subscriber email addresses through their API — but many creators list their contact email publicly on their channel page. Here's how I architected an n8n workflow to extract those emails and automate outreach: 1. Daily Cron Trigger ↓ 2. YouTube Data API → Fetch recent subscribers ↓ 3. Split array → Process each subscriber individually ↓ 4. Google Sheets lookup → Check for duplicates ↓ 5. IF subscriber exists → Skip to next ↓ (new subscriber) 6. Apify YouTube Scraper → Extract email from channel page ↓ 7. IF email found → Send Gmail welcome + log to Sheets ↓ (no email) 8. Log subscriber without email → Prevent re-scraping This workflow processes subscribers in batches of 1 to avoid rate limits, uses conditional logic to handle missing data gracefully, and maintains a Google Sheet as the source of truth for processed subscribers. YouTube Data API Integration The core data source is the YouTube Data API v3 subscriptions endpoint. You'll need OA

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
6 views

Related Articles