youtube_comments: GET /
hasdata_youtube_comments_getYoutubeCommentsGet YouTube Comments
Returns a page of top-level comments for a YouTube video or short identified by its 11-character videoId (v). Each comment carries its text, author (name, channel id, avatar, verified/creator flags), publish time, and raw + normalized like and reply counts. pagination carries the returned comment count, the video's total comment count (totalCount as shown, extractedTotalCount as a number), a nextPageToken, and a hasdataLink that calls this endpoint for the next page. To page through comments pass the nextPageToken from the response back as the nextPageToken parameter (the token is self-contained — v is not needed on continuation requests). Use to mine video comments for sentiment, feedback or moderation, or to build comment datasets.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hasdata_youtube_comments_getYoutubeComments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| v | No | 11-character YouTube video ID — the value of the `v=` query parameter in a watch URL (e.g. `dQw4w9WgXcQ` for `https://www.youtube.com/watch?v=dQw4w9WgXcQ`). Required for the first page; omit it on continuation requests that pass `nextPageToken`. | |
| gl | No | The two-letter country code for the country you want to limit the search to. Provide one exact documented value (245 allowed), e.g. `ac`, `af`. | |
| hl | No | The two-letter language code for the language you want to use for the search. Provide one exact documented value (159 allowed), e.g. `af`, `ak`. | |
| deviceType | No | Device type for the request. | |
| nextPageToken | No | Token to fetch the next page of comments. Pass the `nextPageToken` from a previous response; omit it for the first page. |