youtube.video_comments
Fetch top-level comments for a public YouTube video by its 11-character video id.
Returns comment text, author summary, vote and reply counts, pinned status, total comment count, and cursorNext for the next page.
Use sort_by to choose comment order:
sort_by: Top comments, Newest first
Sort values are matched case-insensitively.
Use cursor with the same video_id to paginate: pass cursorNext from a prior response. sort_by and cursor cannot be combined.
Cost = 15 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pagination cursor from a previous response cursorNext field. | |
| sort_by | No | Comment sort order. One of: Top comments, Newest first. | |
| video_id | Yes | YouTube video id (11 characters, not a URL). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comments | No | Top-level comments for the current page and sort order. Additional provider-specific fields may appear on each entry. | |
| cursorNext | No | Cursor for the next comments page, when available. | |
| totalCommentsCount | No | Total number of comments on the video. |