youtube analytics query report
youtube_analytics_query_reportQuery YouTube Analytics reports for your channel using metrics, dimensions, date ranges, filters, and sorting to retrieve views, watch time, and other performance data.
Instructions
Query a YouTube Analytics report for the user's channel.
metrics: e.g. ["views", "estimatedMinutesWatched", "likes"]. dimensions: e.g. ["day"] or ["video"] (top videos need sort "-views"). Dates are YYYY-MM-DD and inclusive. filters uses the API syntax, e.g. "video==VIDEO_ID". channel defaults to "channel==MINE". Returns column names and rows (at most 1000).
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": {
"metrics": "<metrics>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "youtube_analytics_query_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| channel | No | channel==MINE | |
| filters | No | ||
| metrics | Yes | ||
| end_date | Yes | ||
| dimensions | No | ||
| start_date | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||