avg_duration
Calculate the mean duration of a YouTube channel's most recent uploads to assess typical video length and support channel comparison or filtering.
Instructions
Mean duration of the last N uploads. New tool.
Layer: Data API. Quota: 2 units for N ≤ 50 (1 playlist page + 1 videos batch).
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": "avg_duration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| sample_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||