App Logo
youtube.com

Get YouTube comments

List a YouTube video's top-level comments from a watch URL or video id. Per comment: id, text, author, channelId, authorAvatar, publishedTime, likeCount, replyCount, isVerified, isCreator, pinned. Sort by 'top' (default) or 'newest' and paginate with the returned nextCursor. likeCount and replyCount are YouTube's abbreviated strings (e.g. "255k", "960"), and comments come back empty when they are disabled.

Input

video required

A YouTube video URL (watch?v=, youtu.be/, /shorts/, /embed/) or a bare 11-char video id.

sort optional

Comment sort order. Ignored when paginating with a cursor (the cursor carries its own order).

Default: "top"
cursor optional

Pagination token from a previous call's nextCursor. Omit for the first page.

Output

sort required

Effective sort on the first page; null on cursor pages (the cursor carries its own order).

videoId required
comments required

Empty when the video's comments are disabled. An unavailable video raises an error instead.

nextCursor required

Pass back as cursor for the next page; null on the last page.

FAQ

List a YouTube video's top-level comments from a watch URL or video id. Per comment: id, text, author, channelId, authorAvatar, publishedTime, likeCount, replyCount, isVerified, isCreator, pinned. Sort by 'top' (default) or 'newest' and paginate with the returned nextCursor. likeCount and replyCount are YouTube's abbreviated strings (e.g. "255k", "960"), and comments come back empty when they are disabled.
Required: video. Optional: sort, cursor.
It returns sort, videoId, comments, nextCursor.
No. It only uses pages of youtube.com that are reachable without signing in.
It only reads. It looks things up on youtube.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/youtube.com/get_comments, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/youtube.com/get_comments
It is part of Reduck's official curated catalogue.

Start building not clicking