Limited Time — Lifetime Access for just $99. Lock in before prices rise.

UScraper
Tutorials

How to Scrape YouTube Comments and Replies to CSV

Scrape YouTube comments and replies to CSV. Export usernames, text, likes, timestamps and URLs. Use the UScraper local desktop app, no API key needed.

UScraper
June 30, 2026
8 min read
#how to scrape youtube comments#scrape youtube comment replies#youtube comments scraper#youtube replies scraper#youtube comments api pagination#youtube comments scraper python#youtube comments api alternative#youtube comment search
How to Scrape YouTube Comments and Replies to CSV

This tutorial shows how to scrape YouTube comments and visible replies into CSV with the YouTube Comments and Replies Scraper template for UScraper. You will import the workflow, set video URLs, validate rows, and understand where the official API path fits.

Before you start

Prerequisites and compliance checks

You need the UScraper local desktop app, public YouTube video URLs you are allowed to review, and a folder for the CSV export. Start with one or two normal videos before adding campaign or competitor lists.

This workflow is for visible public comment research, not bypassing platform controls. Public pages can still be limited by YouTube terms, robots rules, copyright, privacy law, and local regulations.

The practical test is simple: if a human cannot load the comments and replies in the browser session without special access, the scraper should not be expected to export them.


API context

YouTube comments API pagination, replies, and limits

The official YouTube Data API is the structured route. The commentThreads.list endpoint returns comment threads for a video when you pass videoId. The comments.list endpoint retrieves replies with parentId. Both list methods support maxResults up to 100, and the pagination guide explains the nextPageToken loop.

Many "youtube comments scraper python" tutorials are API tutorials: request a page, store nextPageToken, request the next page, and repeat. UScraper is a YouTube comments API alternative for supervised CSV exports without pagination code.


Workflow anatomy

What the YouTube comments and replies scraper does

The bundled JSON is the authoritative workflow sample. It sets a 1920 by 1080 viewport, navigates through the video URL list, waits for the watch page, injects a browser script, waits for synthetic export rows, and runs Structured Export in append mode.

The script scrolls for up to 65 passes, clicks visible controls, stops when loaded comments stabilize, and creates hidden data-uscraper-comment-row elements for export.

Workflow blockWhat it doesWhat to check
Set Window SizeOpens the browser at a stable desktop viewportKeep the size unless your page needs a different responsive layout.
NavigateLoops through your YouTube watch URLsReplace the sample URLs with approved video links.
Wait for ElementConfirms the watch page renderedIf this fails, the page may be blocked, unavailable, or still loading.
Inject JavaScriptScrolls, expands replies, and creates export rowsValidate one video after YouTube layout changes.
Structured ExportWrites custom CSV columns from row attributesConfirm save folder, filename, headers, and append mode.
Loop ContinueAdvances to the next video URLUse it only after the first export looks correct.

Runbook

How to scrape YouTube comments and replies to CSV

1

Import the template

Open the YouTube comments and replies template, download the JSON, and import it.

2

Paste video URLs

Replace the sample Navigate URLs with public https://www.youtube.com/watch?v=... links. Keep one video per loop input.

3

Confirm the export path

In Structured Export, set the save folder and confirm youtube-comments-replies-scraper.csv.

4

Run one validation video

Run a single URL first. Watch whether comments load, read-more buttons expand, reply drawers open, and hidden export rows are created.

5

Scale the URL list carefully

Add more videos only after the first CSV rows match the browser. Keep notes for blocked or skipped URLs.

After the first run, sort by video_url. Standalone comments have blank reply fields; reply rows repeat the parent fields.


Output

CSV columns produced by the scraper

The export is spreadsheet-first: source fields, parent comment fields, reply fields, visible totals, crawl time, and a comment permalink when YouTube exposes one.

ColumnMeaning
video_url, video_titleSource video and visible title.
comment_user, content, comment_timeParent comment author, text, and publish label.
like_count, dislike_countVisible like count and unavailable dislike placeholder.
reply_user, reply_content, reply_comment_timeReply author, text, and publish label.
reply_like_count, reply_dislike_count, reply_countReply engagement fields and loaded reply count.
post_comment_count, CrawlTime, comment_urlVisible total count, export time, and comment link.

Quality checks

Validation and common issues

YouTube pages lazy-load aggressively, so keep the browser beside the CSV and check rows near the start, middle, and end of the run.

SymptomLikely causeFix
Empty CSVComments never loaded or a gate screen appearedOpen the video manually and rerun one URL.
Parent comments export but replies are blankReply drawers did not openConfirm replies are visible and rerun a smaller batch.
Duplicate rowsAppend mode reused an old fileClear the CSV or use a project-specific filename.
Low row countYouTube did not load every commentTreat the file as a best-effort visible export.

For recurring projects, log video URLs, run date, CSV filename, row count, skipped URLs, and selector or wait changes.


Choosing a path

Best YouTube comments scraper path for your use case

There is no single best YouTube comments scraper for every job. Choose based on access model and maintenance.

ApproachBest forTrade-off
YouTube Data APIApproved apps and repeatable schemasRequires API setup, pagination, and policy review.
Python scraper scriptsDeveloper control over parsing and storageYou own maintenance and blocking behavior.
UScraper templateSupervised local CSV without codeBrowser-visible page state matters.
Hosted scraper productsScheduling and managed infrastructureUsually usage-based and cloud-routed.

For a spreadsheet review, the UScraper template is usually shortest. For product features, start with the official API.


FAQ

Frequently asked questions

Public visibility does not mean unrestricted reuse. Review terms and laws; do not bypass gates or collect private data.


Next step

Download the YouTube comments and replies scraper

Use the YouTube Comments and Replies Scraper template as the import path, then validate one CSV before running a larger list. For neighboring workflows, browse all UScraper templates or the UScraper blog.

FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ and macOS 12+ · Need help? [email protected]