YouTube Video Comments
get_youtube_commentsGet the comments on a YouTube video by URL or video ID. Returns each comment's text, author, like and reply counts, date, link and up to 5 preview replies. Sort by newest or relevance. Up to about 100 comments per page. Billed $0.005 per page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "get_youtube_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video URL or 11-character video ID | |
| pages | No | Number of pages to fetch, 1-20 (default: 1). Each page returns up to ~100 comments. | |
| sort_by | No | Sort order: most_recent (newest first) or relevance (default: relevance) | relevance |