Overview

Manually extracting YouTube comments from multiple videos is tedious and error-prone. This workflow automates the entire process: it reads video URLs marked as ready from a Google Spreadsheet, fetches comments via the YouTube Data API, appends them to a results sheet, updates processing statuses, and generates a summary—eliminating manual drudgery and delivering clean, structured data for analysis or audit.

The Impact

  • Automate comment crawling. Eliminate manual copy-pasting with API-driven extraction.
  • Ensure data integrity. Update processing status per video to track progress and errors.
  • Centralize archives. Store all comments in a dedicated Google Sheet for easy review and export.
  • Summarize results. Quickly see total videos processed and comments archived.

Who This Is For

  • Content Managers tracking public opinion and engagement on YouTube videos.
  • Compliance Officers archiving comments for audit and legal oversight.
  • Data Analysts gathering raw comment data for sentiment and interaction analysis.
  • Community Researchers collecting bulk comments for research projects.

How It Works

1
  1. Read and Filter Videos
  2. Load video URLs from the specified Google Sheet, filtering those marked as "ready" to process.
2
  1. Fetch Comments via API
  2. For each video, call the YouTube Data API using your API key to retrieve the latest comment threads.
3
  1. Parse and Format Comments
  2. Convert API responses into structured rows matching the results sheet format.
4
  1. Append and Update Status
  2. Append comments to the results sheet and update each video's status to "finish" or "error" in the original sheet.
5
  1. Generate Summary
  2. Aggregate total videos processed and comments collected, returning a concise execution summary.

What You'll Need

Before using this template, make sure you have:

  • A Google Spreadsheet with two sheets: one listing videos with status and URLs, another for storing comments.
  • Google OAuth2 credentials authorized to read and write to your spreadsheet.
  • A valid YouTube Data API v3 key with access enabled in Google Cloud Console.
  • Basic knowledge of your spreadsheet's ID and sheet names for configuration.

How to Use

  1. Step 1. Prepare Your Spreadsheet
  2. Create two sheets: one named (e.g.) "Video URLs" with columns Status and Video URL, another named (e.g.) "Results" with columns for comment data.

  3. Step 2. Configure Credentials
  4. Set up Google OAuth2 credentials for spreadsheet access and obtain a YouTube Data API key.

  5. Step 3. Set Parameters
  6. Enter SpreadsheetId, VideoUrlsSheetName, ResultsSheetName, and YouTubeApiKey into the workflow inputs.

  7. Step 4. Run the Workflow
  8. Execute the automation; it will process each "ready" video URL, fetch comments, append them, and update statuses.

  9. Step 5. Verify Results
  10. Check the Results sheet for newly appended comments and confirm that the original sheet's status columns reflect processing outcomes.

FAQs

How does the workflow identify which videos to process?
It reads the "Video URLs" sheet and filters rows where the Status column equals "ready", extracting their video IDs for processing.
What happens if the YouTube API call fails for a video?
The workflow marks the video's status as "error" in the original sheet and continues processing remaining videos without stopping.
How are comments stored after retrieval?
Comments are parsed into rows matching the Results sheet's columns and appended sequentially, one comment per row.
Can this workflow handle large volumes of comments?
It processes up to 100 comments per video per run, as limited by the YouTube Data API maxResults parameter.
How do I know the total comments processed?
At the end, the workflow returns a summary with counts of videos processed and total comments inserted into the results sheet.
Was This Page Helpful?

More Workflows for Inspiration

🛟
Bidirectional synchronization between Zendesk and Google Sheets
Streamline ticket and spreadsheet data syncing to eliminate manual reconciliation and errors.
Learn more >
⚙️
Daily Lead Context Enrichment
Automate capturing qualified HubSpot leads, enrich company profiles, and boost sales efficiency fast.
Learn more >
⚙️
Daily Meeting Digest for Slack
Automatically summarize daily meetings and deliver clear Slack digests to boost team alignment instantly.
Learn more >