getVideoComments
Retrieve YouTube video comments with configurable sorting, limits, and reply depth. Choose order by relevance or time, set max top-level comments, and include up to 5 replies per comment.
Instructions
Retrieves comments for a video. Warning: Setting maxReplies > 0 significantly increases API cost. Only set maxReplies if you specifically need to analyze conversation threads. Defaults to top-level comments only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order for comments. Use 'relevance' (default) for most helpful or 'time' for newest. | relevance |
| videoId | Yes | The 11-character ID of the YouTube video. | |
| maxReplies | No | Max replies per comment to return (0-5, default: 0). Use 0 for best performance. | |
| maxResults | No | Max number of top-level comments to return (1-100, default: 20). | |
| commentDetail | No | Detail level for comment text. 'SNIPPET' (default, 200 chars) or 'FULL' (entire text). | SNIPPET |