Yt Video Comments
yt_video_commentsGet top-level comment threads on a YouTube video. Returns author, text, like count, and publish date.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"_apiKey": "your-youtube-api-key",
"video_id": "dQw4w9WgXcQ"
},
"name": "yt_video_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order: "time" or "relevance" (default: "relevance") | |
| _apiKey | Yes | YouTube Data API v3 key from Google Cloud Console | |
| video_id | Yes | Video ID to fetch comments for | |
| max_results | No | Number of comment threads to return (default 20, max 100) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comments | Yes | Array of top-level comment thread objects | |
| total_results | Yes | Total number of comment threads |