Description:
Easily automate your YouTube video giveaways using n8n and the YouTube Comments Scraper API. This workflow fetches comments, selects a random winner, logs results to Google Sheets, and notifies the admin—all hands-free!
Node | Name | Purpose |
---|---|---|
1️⃣ | Form Trigger | Captures a YouTube video URL from a user via form submission. |
2️⃣ | Fetch YouTube Comments | Makes a POST request to YouTube Comments Scraper API to retrieve comments. |
3️⃣ | Check API Response Status | Ensures that the response status is 200 before proceeding. |
4️⃣ | Select Random Commenter | Parses the comments and selects a random commenter as the giveaway winner. |
5️⃣ | Log Winner to Google Sheet | Appends winner name, video URL, and date to a Google Sheet for record-keeping. |
6️⃣ | Notify Winner Email | Sends a congratulatory email to the admin with the selected winner's name. |
7️⃣ | Notify: Invalid API Response | If the API fails, sends an alert to the admin about the issue. |
To use the YouTube Comments Scraper API, follow these steps:
The YouTube Comments Scraper API offers a simple and effective way to extract public YouTube comments programmatically. It’s fast, reliable, and integrates smoothly with platforms like n8n.
You’ll use this API:
Create your free n8n account and set up the workflow in just a few minutes using the link below:
Save time, stay consistent, and grow your LinkedIn presence effortlessly!