get_video
Retrieve complete video details including snippet, status, statistics, and duration by providing the YouTube video ID.
Instructions
Fetch full details for one video by ID — snippet, status, statistics, duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | YouTube video ID (the part after v= in the URL) |
Implementation Reference
- src/youtube/client.ts:160-165 (helper)Low-level API method getVideo() on YouTubeClient. Makes a GET request to YouTube Data API v3 /videos with snippet,status,statistics,contentDetails parts.
getVideo(videoId: string): Promise<{ items: Video[] }> { return this.dataGet("/videos", { part: "snippet,status,statistics,contentDetails", id: videoId, }); } - src/youtube/types.ts:1-5 (helper)Type definition for VideoListResponse (return type of getVideo) and Video interface.
export interface VideoListResponse { items: Video[]; nextPageToken?: string; pageInfo?: { totalResults: number; resultsPerPage: number }; }