Menu

How to export YouTube comments (with replies) to JSON or CSV without getting blocked
📰

How to export YouTube comments (with replies) to JSON or CSV without getting blocked

DEV Community: datascience·Ramazan Akdoğan·2 days ago
#herAuyzj
#devtodatascience#science#devto#dev#comments
Long article (388 words) — no AI summary yet.
Reading 0:00
15s threshold

YouTube comments are a goldmine for audience research, product feedback and sentiment analysis . Getting them out at scale is annoying, though: HTML scrapers break or get rate-limited, and writing your own API pagination for comment threads and replies takes an afternoon.

Here's the approach I use: the official YouTube Data API v3 , wrapped in a ready-made actor so there's no code to maintain.

Why the official API

It doesn't get blocked : no proxies, no CAPTCHAs, and no breakage when YouTube changes its HTML.

It's cheap on quota : one commentThreads call returns up to 100 comments for 1 quota unit.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.