comments
Retrieve comments and discussion threads from YouTube videos or shorts, supporting pagination, sorting, and regional localization.
Instructions
Get video's or shorts' comments/thread. Quota cost is 1 unit.
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": {
"id": "<id>"
},
"name": "comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Video Id or Shorts Video Id | |
| token | No | Pagination token Alternatively, use X-TOKEN in header | |
| sort_by | No | Available options: newest top [default] | |
| geo | No | ISO 3166-2 country code of the region. Like US (default), GB, CA, IN, etc. | |
| lang | No | Locale/language for request. Like en, gb, hi, etc | |
| X-CACHEBYPASS | No | Cache bypass, the value must be 1 Quota Cost +1 | |
| X-TOKEN | No | Alternative way to pass Pagination token via headers. This will solve 414, URI too long issue. |