getVideoComments
Extract comments from a YouTube video, with options to sort by relevance or time, set comment detail, and include reply threads.
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 |
|---|---|---|---|
| videoId | Yes | The 11-character ID of the YouTube video. | |
| maxResults | No | Max number of top-level comments to return (1-100, default: 20). | |
| order | No | Sort order for comments. Use 'relevance' (default) for most helpful or 'time' for newest. | relevance |
| maxReplies | No | Max replies per comment to return (0-5, default: 0). Use 0 for best performance. | |
| commentDetail | No | Detail level for comment text. 'SNIPPET' (default, 200 chars) or 'FULL' (entire text). | SNIPPET |