get_video_metadata
Retrieve YouTube video metadata including title, description, duration, statistics, and more. Supports lookup by video IDs or most popular chart.
Instructions
Fetch full metadata for one or more YouTube videos by ID, or retrieve the most popular videos chart. Returns snippet (title, description, channelId, tags, publishedAt), contentDetails (duration in ISO 8601, definition, caption), and statistics (viewCount, likeCount, commentCount). Provide comma-separated video_ids for lookup, or chart_type='mostPopular' for trending videos.
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_video_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_ids | No | Comma-separated video IDs | |
| chart_type | No | E.g., 'mostPopular' | |
| category_id | No | Used with chart_type='mostPopular' | |
| max_results | No | Default 5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| items | Yes | ||
| pageInfo | No | ||
| nextPageToken | No |