get_video_analytics
Get video analytics including views, watch time, average view duration, subscribers gained, likes, comments, and shares for a single YouTube video over a specified date range.
Instructions
Get analytics for a single video over a date range (views, watch time, average view duration/percentage, subscribers gained, likes, comments, shares). Requires the yt-analytics.readonly scope.
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": {
"video_id": "<video_id>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_video_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account name to query. Use list_accounts to see available options. Defaults to the first configured account. | |
| metrics | No | Comma-separated metric list. Defaults to a standard organic set. | |
| end_date | Yes | End date, YYYY-MM-DD. | |
| video_id | Yes | The YouTube video ID. | |
| start_date | Yes | Start date, YYYY-MM-DD. |