Options
All
  • Public
  • Public/Protected
  • All
Menu

Class YouTubeVideo

Class for YouTube Video url

Hierarchy

  • YouTubeVideo

Index

Constructors

Properties

channel?: YouTubeChannel

YouTube Video's uploader Channel Data

chapters: VideoChapter[]

The chapters for this video

If the video doesn't have any chapters or if the video object wasn't created by video_basic_info or video_info this will be an empty array.

description?: string

YouTube Video description.

discretionAdvised?: boolean

true if the video has been identified by the YouTube community as inappropriate or offensive to some audiences and viewer discretion is advised

durationInSec: number

YouTube Video Duration in seconds

durationRaw: string

YouTube Video Duration Formatted

id?: string

YouTube Video ID

likes: number

YouTube Video's likes

live: boolean

YouTube Video live status

liveAt?: string

YouTube Live Date

music?: VideoMusic[]

Gives info about music content in that video.

private: boolean

YouTube Video private status

tags: string[]

YouTube Video tags

thumbnails: YouTubeThumbnail[]

YouTube Thumbnail Data

title?: string

YouTube Video title

type: "video" | "playlist" | "channel"

YouTube Class type. == "video"

upcoming?: true | Date

If the video is upcoming or a premiere that isn't currently live, this will contain the premiere date, for watch page playlists this will be true, it defaults to undefined

uploadedAt?: string

YouTube Video Uploaded Date

url: string

YouTube video url

views: number

YouTube Views

Methods

  • toString(): string

Generated using TypeDoc