get_video_metadata
Retrieve full metadata including title, description, duration, and statistics for YouTube videos by ID or the most popular trending videos 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 | ||
| nextPageToken | No | ||
| pageInfo | No | ||
| items | Yes |