get_video_info
Retrieves YouTube video metadata including title, channel, description, duration, views, likes, comments, upload date, and tags from a URL or video ID.
Instructions
Get YouTube video metadata: title, channel, description, duration (text and seconds), views, likes, comment count, upload date, and tags. Unknown values are null. Served by the provider selected with YT_PROVIDER (see get_server_info). Input: YouTube URL or video ID. Errors carry a code (e.g. ACCESS_BLOCKED, VIDEO_UNAVAILABLE, TIMEOUT) in _meta["youtube-mcp/error"] and as a [CODE] text prefix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video | Yes | YouTube video URL or video ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | ||
| title | Yes | ||
| videoId | Yes | ||
| duration | Yes | Human-readable duration, e.g. '1m 21s'; null when unknown or live | |
| channelId | Yes | ||
| likeCount | Yes | ||
| viewCount | Yes | ||
| uploadedAt | Yes | innertube provider: display text such as 'Sep 14, 2017' or 'Premiered May 27, 2020'. api provider: ISO 8601 timestamp | |
| channelName | Yes | ||
| description | Yes | null when YouTube did not provide a description; empty string when it is empty | |
| commentCount | Yes | ||
| thumbnailUrl | Yes | ||
| durationSeconds | Yes | Duration in seconds; null when unknown or live |