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.

Start building not clicking