π Extract and store YouTube video comments in Google Sheets
β‘ 6,689 views Β· π Market Research & Insights
π‘ Pro Tip β YouTubeβs API quotas can be a bottleneck when youβre pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β no quota limits, just structured data.
Description
This n8n template demonstrates how to use the tool to crawl comments from a YouTube video and simply get all the results in a linked Google Sheet.
Use cases are many: Whether youβre a YouTube creator trying to understand your audience, a marketer running sample analysis, a data analyst compiling engagement metrics, or part of a growth team tracking YouTube or social media campaign performance, this workflow helps you extract real, actionable insights from YouTube video comments at scale.
How It Works
- The workflow starts when you manually click Test Workflow or Execute Workflow in N8N.
- It reads the list of YouTube video URLs from the Video URLs tab in the connected YouTube β Get Video Comments Google Sheet. Only the URLs marked with the Ready status will be processed.
- The tool loops through each video and sends an HTTP request to the YouTube API to fetch comment data.
- Then, it checks whether the request is successful before continuing.
- If comments are found, they are split and processed.
- Each comment is then inserted in the Results tab of the connected YouTube β Get Video Comments Google Sheet.
- Once a URL has been finished, its status in the Video URLs tab of the YouTube β Get Video Comments Google Sheet is updated to Finished.
How To Use
- Download the workflow package.
- Import the workflow package into your N8N interface.
- Duplicate the βYouTube - Get Video Commentsβ Google Sheet template into your Google Sheets account.
- Set up Google Cloud Console credentials in the following nodes in N8N, ensuring enabled access and suitable rights to Google Sheets and YouTube services:
- For Google Sheets access, ensure each node is properly connected to the correct tab in your connected Google Sheet template: Node Google Sheets - Get Video URLs β connected to the Video URLs tab; Node Google Sheets - Insert/Update Comment β connected to the Results tab; Node Google Sheets - Update Status connected to the Video URLs tab.
- For YouTube access: Set up a GET method in Node HTTP Request - Get Comments.
- Open the template in your Google Sheets account. In the tab Video URLs, fill in the video URLs you want to crawl in Column B and update the status for each row in Column A to Ready.
- Return to the N8N interface and click Execute Workflow.
- Check the results in the Results tab of the template - the collected comments will appear there.
Requirements
- Basic setup in Google Cloud Console (OAuth or API Key method enabled) with enabled access to YouTube and Google Sheets.
How To Customize
- By default, the workflow is manually triggered in N8N. However, you can automate the process by adding a Google Sheets trigger that monitors new entries in your connected YouTube β Get Video Comments template and starts the workflow automatically.
Need Help?
Join our community on different platforms for support, inspiration and tips from others.
Website: https://www.agentcircle.ai/ Etsy: https://www.etsy.com/shop/AgentCircle Gumroad: http://agentcircle.gumroad.com/ Discord Global: https://discord.gg/d8SkCzKwnP FB Page Global: https://www.facebook.com/agentcircle/ FB Group Global: https://www.facebook.com/groups/aiagentcircle/ X: https://x.com/agent_circle YouTube: https://www.youtube.com/@agentcircle LinkedIn: https://www.linkedin.com/company/agentcircle
π Nodes Used
Google Sheets, HTTP Request
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File