get_analytics
Retrieve YouTube channel analytics—views, watch time, and subscriber gains or losses—for a specified reporting period in days.
Instructions
Get channel analytics (views, watch-time, subscribers gained/lost).
Args: channel_id: Channel id. period_days: Reporting window in days (default 28).
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": {
"channel_id": "<channel_id>"
},
"name": "get_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| period_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |