Automate crawling YouTube video comments using the n8n platform. This powerful n8n workflow extracts comments, likes, and authors, storing them instantly in Google Sheets.
Download this n8n workflow template and start using it instantly.
YouTube creators and social media managers needing to analyze audience feedback at scale.
Data analysts requiring structured datasets of public comments for sentiment analysis or reporting.
Users looking for advanced n8n templates for API integration and data ETL processes.
Anyone interested in leveraging the YouTube API within an n8n node environment.
Extracting meaningful data from high-volume platforms like YouTube often requires robust API handling and pagination logic. This specialized n8n workflow simplifies this complex process. By using Google Sheets as the input source, users can queue up hundreds of videos for analysis simply by setting the status to 'Ready'. The n8n template handles all the heavy lifting: fetching comments via the YouTube API, iterating through paginated results, processing the data, and inserting clean, structured output back into a dedicated 'Results' tab in Google Sheets. This n8n automation ensures reliable extraction while automatically updating the processing status of each video URL, minimizing reprocessing and tracking errors.
This comprehensive n8n workflow operates through a structured sequence of steps:
Test Workflow). It immediately connects to the Google Sheets - Get Video URLs n8n node, retrieving all YouTube video URLs marked with the status 'Ready'.Loop Over Items n8n node to process each video URL individually.HTTP Request - Get Comments n8n node contacts the YouTube Data API (v3). Crucially, this node is configured to handle pagination, ensuring that all comments (up to the limit of the API/workflow) are retrieved for the video.If - Check Success Response n8n node (status code 200). If successful, the Split Out n8n node separates the list of returned comments (body.items) into discrete items, ready for individual processing.Google Sheets - Insert/Update Comment n8n node extracts key comment details (text, author, likes, publish date) and saves them into the 'Results' sheet. It uses the comment_id for deduplication (append or update operation).Google Sheets - Update Status n8n node updates the original video entry in the 'Video URLs' sheet to 'finish'. If any API or processing error occurs (e.g., failed API call or invalid comment data), the entry is marked 'error' using the fallback path to prevent infinite loops and aid debugging. The loop then advances to the next video URL.To deploy this n8n template successfully, follow these steps:
HTTP Request - Get Comments n8n node to allow access to the YouTube Data API.Test Workflow n8n trigger.This n8n workflow utilizes several core n8n node types to achieve its goal:
Test Workflow (manualTrigger): The initial n8n trigger. Used to start the automation manually for testing and bulk processing.
Google Sheets - Get Video URLs (Google Sheets n8n node):
Function: Reads the list of video URLs. It filters rows where the status column equals 'ready'.
Key Configuration: Operation: read. Filter applied to fetch only 'ready' items.
Loop Over Items (Split In Batches n8n node):
Function: Manages the iterative process, ensuring the API call block is executed sequentially for every video URL retrieved from the Google Sheet.
HTTP Request - Get Comments (HTTP Request n8n node):
Function: Communicates with the YouTube API v3 to fetch comment threads.
Key Configuration: Uses predefined YouTube OAuth2 credentials, sets query parameters (part=snippet, videoId extracted via regex from the input URL), and implements robust pagination logic based on nextPageToken to retrieve comprehensive results.
If - Check Success Response (If n8n node):
Function: Checks if the preceding API call was successful by validating that the statusCode is 200. Essential flow control for this n8n workflow.
Split Out (Split Out n8n node):
Function: Transforms the array of comments returned by the API (body.items) into individual data items within the n8n platform, allowing subsequent nodes to process each comment separately.
Google Sheets - Insert/Update Comment (Google Sheets n8n node):
Function: Writes the extracted comment data (comment, author, likes, etc.) to the 'Results' sheet.
Key Configuration: Operation: appendOrUpdate. Uses expressions to map API fields to sheet columns.
Google Sheets - Update Status (Google Sheets n8n node):
Function: Updates the status of the processed row in the 'Video URLs' sheet to 'finish' (or 'error' in the alternative path), marking it as complete.
* Key Configuration: Operation: update. Matches the row using the original row_number.
Use this robust n8n workflow to monitor Google Drive for new invoices, leverage Dumpling AI for accurate data extraction (including line items), and automatically input all structured data into Google Sheets. This n8n template eliminates manual data entry.

Automate healthcare claims processing using this n8n workflow. Triggered by Google Drive uploads, it extracts data with VLM Run and saves structured reports to Google Sheets.

Automate BIM data extraction using this sophisticated n8n workflow. It runs an external Revit converter, checks for success, and parses the resulting XLSX file into structured data using dedicated n8n nodes.

Use this powerful n8n workflow to extract and structure job posts from Hacker News 'Who is Hiring' threads, utilizing the Gemini AI n8n node for data structuring and persistence into Airtable.

Use this powerful n8n workflow to automatically extract detailed invoice information using DocSumo, structure the line items, and export the comprehensive results directly to a downloadable Excel file. This n8n automation template saves hours of manual data entry.

Use this powerful n8n workflow to automate extraction of complex Thai documents using Typhoon OCR and Llama 3.1, structuring the data and saving it directly via an n8n node to Google Sheets. Find more sophisticated n8n templates here.

Agent Circle - A growing marketplace of AI agents, workflows, and toolkits — built to help teams automate smarter and scale faster







































