YouTube Comments API
youtube_comment_extractorExtract top comments with likes and replies from any YouTube video link or ID to analyze audience reaction. Paginate through comment pages when you need more than the first page.
Instructions
Read the top comments of any YouTube video with likes and replies. Costs 1 credit per successful call. This page shows the first page of top comments, not every comment on the video. Videos with comments turned off return nothing.
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": "youtube_comment_extractor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | YouTube video link. Works with watch, youtu.be, Shorts and embed links, or a bare video ID. | |
| next_page_token | No | Get the next page of comments. Pass the pagination.next_page_token from the previous answer, unchanged. Each page is one call. |