Skip to main content
Module

x/youtubei/deno.ts>YTMusic.TrackInfo

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

Constructors

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

Properties

readonly
available_tabs: string[]
basic_info
optional
current_video_endpoint: NavigationEndpoint
optional
endscreen: Endscreen
optional
player_overlays: PlayerOverlay
optional
tabs: ObservedArray<Tab>

Methods

Adds the song to the watch history.

getLyrics(): Promise<MusicDescriptionShelf | undefined>

Retrieves lyrics.

getRelated(): Promise<ObservedArray<MusicCarouselShelf | MusicDescriptionShelf>>

Retrieves related content.

getTab(title_or_page_type: string): Promise<
| SectionList
| MusicQueue
| RichGrid
>

Retrieves contents of the given tab.

getUpNext(automix?): Promise<PlaylistPanel>

Retrieves up next.