Get channel analytics (OAuth)
get_channel_analyticsRetrieve YouTube channel analytics for a date range, including views, watch time, average view duration, subscriber changes, likes, comments, and shares. Use it to measure performance and report trends.
Instructions
Views, watch time (estimatedMinutesWatched), average view duration, subscribers gained/lost, likes, comments and shares for your channel.
Requires OAuth; returns an OAUTH_REQUIRED error with setup steps otherwise.
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": "get_channel_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | When no dates are given: the last N days ending today. | |
| end_date | No | End date YYYY-MM-DD, inclusive. | |
| start_date | No | Start date YYYY-MM-DD, inclusive. Omit both dates to use `days`. | |
| granularity | No | total (one row), day, or month (start_date must be the 1st) for a time series. | total |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||