Top videos
get_top_videosRanks your channel's videos by views, watch time, or subscribers gained within a chosen period, returning metrics like engagement rate and average view duration so you can spot your top performers.
Instructions
Rank the channel's videos by performance within a period (like Studio's 'Top content'), with title, publish date, YouTube's content type (Shorts/Videos/Live), views, watch time, average view duration/percentage, likes, comments, shares, subscribers gained and engagement rate.
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_top_videos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many videos. | |
| metric | No | What to rank by. | views |
| period | No | Named date range, Studio-style. Rolling ranges end at the latest complete day of data (analytics lag ~2-3 days; dates are US Pacific). Ignored when start_date is set. | last_28_days |
| save_to | No | Optional file to also save the rows to (.csv or .json). A bare filename goes in the output directory; absolute paths are allowed. | |
| end_date | No | Custom range end, YYYY-MM-DD (inclusive). Defaults to the latest complete day. | |
| start_date | No | Custom range start, YYYY-MM-DD. Overrides `period`. | |
| content_type | No | Only rank Shorts, regular videos, or live streams. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||