YouTube.js
Guide
Discord
❤️ Sponsor
GitHub
Guide
Discord
❤️ Sponsor
GitHub

youtubei.js / YTNodes / MusicResponsiveListItem

Class: MusicResponsiveListItem

Defined in: src/parser/classes/MusicResponsiveListItem.ts:29

Extends

  • YTNode

Constructors

Constructor

new MusicResponsiveListItem(data): MusicResponsiveListItem

Defined in: src/parser/classes/MusicResponsiveListItem.ts:83

Parameters

data

RawNode

Returns

MusicResponsiveListItem

Overrides

YTNode.constructor

Properties

album?

optional album?: object

Defined in: src/parser/classes/MusicResponsiveListItem.ts:50

endpoint?

optional endpoint?: NavigationEndpoint

id?

optional id?: string

name

name: string


artists?

optional artists?: object[]

Defined in: src/parser/classes/MusicResponsiveListItem.ts:56

channel_id?

optional channel_id?: string

endpoint?

optional endpoint?: NavigationEndpoint

name

name: string


author?

optional author?: object

Defined in: src/parser/classes/MusicResponsiveListItem.ts:75

channel_id?

optional channel_id?: string

endpoint?

optional endpoint?: NavigationEndpoint

name

name: string


authors?

optional authors?: object[]

Defined in: src/parser/classes/MusicResponsiveListItem.ts:63

channel_id?

optional channel_id?: string

endpoint?

optional endpoint?: NavigationEndpoint

name

name: string


badges?

optional badges?: ObservedArray<YTNode>

Defined in: src/parser/classes/MusicResponsiveListItem.ts:39


duration?

optional duration?: object

Defined in: src/parser/classes/MusicResponsiveListItem.ts:45

seconds

seconds: number

text

text: string


endpoint?

optional endpoint?: NavigationEndpoint

Defined in: src/parser/classes/MusicResponsiveListItem.ts:35


fixed_columns

fixed_columns: ObservedArray<MusicResponsiveListItemFixedColumn>

Defined in: src/parser/classes/MusicResponsiveListItem.ts:33


flex_columns

flex_columns: ObservedArray<MusicResponsiveListItemFlexColumn>

Defined in: src/parser/classes/MusicResponsiveListItem.ts:32


id?

optional id?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:43


index?

optional index?: Text

Defined in: src/parser/classes/MusicResponsiveListItem.ts:37


item_count?

optional item_count?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:80


item_type

item_type: "endpoint" | "unknown" | "video" | "playlist" | "album" | "artist" | "library_artist" | "non_music_track" | "song" | "podcast_show" | undefined

Defined in: src/parser/classes/MusicResponsiveListItem.ts:36


menu?

optional menu?: Menu | null

Defined in: src/parser/classes/MusicResponsiveListItem.ts:40


name?

optional name?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:69


overlay?

optional overlay?: MusicItemThumbnailOverlay | null

Defined in: src/parser/classes/MusicResponsiveListItem.ts:41


song_count?

optional song_count?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:72


subscribers?

optional subscribers?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:71


subtitle?

optional subtitle?: Text

Defined in: src/parser/classes/MusicResponsiveListItem.ts:70


thumbnail?

optional thumbnail?: MusicThumbnail | null

Defined in: src/parser/classes/MusicResponsiveListItem.ts:38


title?

optional title?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:44


type

readonly type: string

Defined in: src/parser/helpers.ts:8

Inherited from

YTNode.type


views?

optional views?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:62


year?

optional year?: string

Defined in: src/parser/classes/MusicResponsiveListItem.ts:81


type

static type: string = 'MusicResponsiveListItem'

Defined in: src/parser/classes/MusicResponsiveListItem.ts:30

Overrides

YTNode.type

Accessors

thumbnails

Get Signature

get thumbnails(): Thumbnail[]

Defined in: src/parser/classes/MusicResponsiveListItem.ts:338

Returns

Thumbnail[]

Methods

as()

as<T, K>(...types): InstanceType<K[number]>

Defined in: src/parser/helpers.ts:29

Cast to one of the given types.

Type Parameters

T

T extends YTNode

K

K extends YTNodeConstructor<T>[]

Parameters

types

...K

The types to cast to

Returns

InstanceType<K[number]>

The node cast to one of the given types

Throws

If the node is not of the given type

Inherited from

YTNode.as


hasKey()

hasKey<T, R>(key): this is MusicResponsiveListItem & { [k in string]: R }

Defined in: src/parser/helpers.ts:41

Check for a key without asserting the type.

Type Parameters

T

T extends string

R

R = any

Parameters

key

T

The key to check

Returns

this is MusicResponsiveListItem & { [k in string]: R }

Whether the node has the key

Inherited from

YTNode.hasKey


is()

is<T, K>(...types): this is InstanceType<K[number]>

Defined in: src/parser/helpers.ts:19

Check if the node is of the given type.

Type Parameters

T

T extends YTNode

K

K extends YTNodeConstructor<T>[]

Parameters

types

...K

The type to check

Returns

this is InstanceType<K[number]>

whether the node is of the given type

Inherited from

YTNode.is


key()

key<T, R>(key): Maybe

Defined in: src/parser/helpers.ts:51

Assert that the node has the given key and return it.

Type Parameters

T

T extends string

R

R = any

Parameters

key

T

The key to check

Returns

Maybe

The value of the key wrapped in a Maybe

Throws

If the node does not have the key

Inherited from

YTNode.key

Edit this page
Last Updated: 10/18/26, 4:42 AM