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.
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 |