Skip to main content

Path Parameters

video_id
string
required
The YouTube video id (e.g. dQw4w9WgXcQ).

Query Parameters

sort_by
string
default:"top"
Comment sort order.
continuation
string
Continuation token from a previous response to fetch the next page of comments.

Response

video_id
string
The video the comments belong to.
comments
array
Array of top-level comments.
comment_count
integer
Total comment count on the video (nullable).
sorting_tokens
array
Sort options with title and token (e.g. top, newest).
continuation
string
Token to fetch the next page (nullable when no more pages).

Example Response

Replies

To fetch replies to a specific comment, call:
This returns a RepliesResponse with comment_id, a replies array (same Comment shape), and a continuation token. You can also pass the replies_continuation value from a comment directly as the continuation query parameter.
Each comments page and each replies page costs 5 credits. Failed requests are not charged.