Skip to main content
Module

x/youtubei/deno.ts>YT.VideoInfo

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YT.VideoInfo
extends MediaInfo
import { YT } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { VideoInfo } = YT;

Constructors

new
VideoInfo(
actions: Actions,
cpn: string,
)

Properties

optional
autoplay
readonly
autoplay_video_endpoint: NavigationEndpoint | null

Gets the endpoint of the autoplay video

basic_info
optional
captions: PlayerCaptionsTracklist
optional
cards: CardCollection
optional
comments_entry_point_header: CommentsEntryPointHeader | null
optional
endscreen: Endscreen
readonly
filters: string[]

Watch next feed filters.

optional
game_info
readonly
has_trailer: boolean

Checks if trailer is available.

optional
livechat: LiveChat | null
optional
merchandise: MerchandiseShelf | null
readonly
music_tracks

Get songs used in the video.

optional
player_overlays: PlayerOverlay | null
optional
playlist
optional
primary_info: VideoPrimaryInfo | null
optional
secondary_info: VideoSecondaryInfo | null
optional
watch_next_feed: ObservedArray<YTNode> | null
readonly
wn_has_continuation: boolean

Checks if continuation is available for the watch next feed.

Methods

Adds video to the watch history.

dislike(): Promise<ApiResponse>

Dislikes the video.

getLiveChat(): LiveChatWrap

Retrieves Live Chat if available.

Retrieves trailer info if available (typically for non-purchased movies or films).

Retrieves watch next feed continuation.

like(): Promise<ApiResponse>

Likes the video.

Removes like/dislike.

selectFilter(target_filter: string | ChipCloudChip | undefined): Promise<VideoInfo>

Applies given filter to the watch next feed. Use filters to get available filters.