-
-
Notifications
You must be signed in to change notification settings - Fork 0
getVideoDetails API
Robin Jr edited this page Sep 24, 2025
·
2 revisions
getVideoDetails(videoID: string): Promise<VideoDetailsResult>
Fetch detailed metadata for a specific YouTube video by its video ID.
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
const details = await getVideoDetails('dQw4w9WgXcQ');
console.log(details.title);
console.log(details.channel.name);
console.log(details.viewsShort);MIT © 2025 RJRYT