youtube.video_details
Fetch metadata for a public YouTube video by video id or URL.
Accepts a bare 11-character video id (for example PuQFESk0BrA) or common YouTube watch, youtu.be, Shorts, and embed URLs. Returns title, description, view count, duration, publish date, channel id, category, keywords, and thumbnails.
Cost = 10 tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | YouTube video id or URL (for example PuQFESk0BrA, https://youtu.be/PuQFESk0BrA, or https://www.youtube.com/watch?v=PuQFESk0BrA). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Video type (for example NORMAL). | |
| title | No | Video title. | |
| author | No | Channel display name. | |
| category | No | Primary category label. | |
| keywords | No | Video keyword tags. | |
| video_id | No | Canonical YouTube video id. | |
| channel_id | No | Uploader channel id. | |
| thumbnails | No | Available thumbnail images at different sizes. | |
| description | No | Plain-text video description. | |
| video_length | No | Video duration in seconds as a string. | |
| published_time | No | Publish date (ISO 8601). | |
| is_live_content | No | Whether the video is live content (True or False as a string). | |
| number_of_views | No | Total view count. |