Skip to content

getVideoDetails API

Robin Jr edited this page Sep 24, 2025 · 2 revisions

Overview

getVideoDetails(videoID: string): Promise<VideoDetailsResult>

Fetch detailed metadata for a specific YouTube video by its video ID.

Returns

Returns VideoDetailsResult object:

  • id, title, description, duration, views, viewsShort, uploadDate
  • thumbnail: URL and dimensions
  • channel: details about uploader (id, name, URL, avatar, subscribers, verified, isArtist)
  • likes, likesShort
  • isLive, isPrivate, isUnlisted, category, allowRatings

Example

const details = await getVideoDetails('dQw4w9WgXcQ');
console.log(details.title);
console.log(details.channel.name);
console.log(details.viewsShort);

Clone this wiki locally