Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface VideoOptions

Hierarchy

  • VideoOptions

Index

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

music?: VideoMusic[]

Gives info about music content in that video.

The property names of VideoMusic change depending on your region's language.

private: boolean

YouTube Video private status

tags: string[]

YouTube Video tags

thumbnail?: { height: undefined | number; url: undefined | string; width: undefined | number }

YouTube Thumbnail Data

Type declaration

  • height: undefined | number
  • url: undefined | string
  • width: undefined | number
title?: string

YouTube Video title

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

Generated using TypeDoc