YouTube.js
Guide
Discord
GitHub
Guide
Discord
GitHub

youtubei.js / YTKids / Channel

Class: Channel

Extends

  • Feed<IBrowseResponse>

Constructors

new Channel()

new Channel(actions, data, already_parsed): Channel

Parameters

• actions: Actions

• data: ApiResponse | IBrowseResponse

• already_parsed: boolean = false

Returns

Channel

Overrides

Feed.constructor

Defined in

src/parser/ytkids/Channel.ts:13

Properties

contents?

optional contents: ItemSectionContinuation | ItemSection

Defined in

src/parser/ytkids/Channel.ts:11


header?

optional header: C4TabbedHeader

Defined in

src/parser/ytkids/Channel.ts:10

Accessors

actions

get actions(): Actions

Returns

Actions

Inherited from

Feed.actions

Defined in

src/core/mixins/Feed.ts:180


channels

get channels(): ObservedArray<Channel | GridChannel>

Get all the channels in the feed

Returns

ObservedArray<Channel | GridChannel>

Inherited from

Feed.channels

Defined in

src/core/mixins/Feed.ts:125


has_continuation

get has_continuation(): boolean

Checks if the feed has continuation.

Returns

boolean

Overrides

Feed.has_continuation

Defined in

src/parser/ytkids/Channel.ts:31


memo

get memo(): Memo

Returns

Memo

Inherited from

Feed.memo

Defined in

src/core/mixins/Feed.ts:136


page

get page(): T

Get the original page data

Returns

T

Inherited from

Feed.page

Defined in

src/core/mixins/Feed.ts:187


page_contents

get page_contents(): SectionList | ReloadContinuationItemsCommand | MusicQueue | RichGrid

Returns contents from the page.

Returns

SectionList | ReloadContinuationItemsCommand | MusicQueue | RichGrid

Inherited from

Feed.page_contents

Defined in

src/core/mixins/Feed.ts:143


playlists

get playlists(): ObservedArray<GridPlaylist | LockupView | Playlist>

Get all playlists in the feed

Returns

ObservedArray<GridPlaylist | LockupView | Playlist>

Inherited from

Feed.playlists

Defined in

src/core/mixins/Feed.ts:132


posts

get posts(): ObservedArray<BackstagePost | SharedPost | Post>

Get all the community posts in the feed

Returns

ObservedArray<BackstagePost | SharedPost | Post>

Inherited from

Feed.posts

Defined in

src/core/mixins/Feed.ts:118


secondary_contents

get secondary_contents(): undefined | SuperParsedResult<YTNode>

Returns secondary contents from the page.

Returns

undefined | SuperParsedResult<YTNode>

Inherited from

Feed.secondary_contents

Defined in

src/core/mixins/Feed.ts:168


shelves

get shelves(): ObservedArray<ReelShelf | RichShelf | Shelf>

Returns all segments/sections from the page.

Returns

ObservedArray<ReelShelf | RichShelf | Shelf>

Inherited from

Feed.shelves

Defined in

src/core/mixins/Feed.ts:154


videos

get videos(): ObservedArray<Video | CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | WatchCardCompactVideo>

Get all the videos in the feed

Returns

ObservedArray<Video | CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | WatchCardCompactVideo>

Inherited from

Feed.videos

Defined in

src/core/mixins/Feed.ts:111

Methods

getContinuation()

getContinuation(): Promise<Channel>

Retrieves next batch of videos.

Returns

Promise<Channel>

Overrides

Feed.getContinuation

Defined in

src/parser/ytkids/Channel.ts:22


getContinuationData()

getContinuationData(): Promise<undefined | IBrowseResponse>

Retrieves continuation data as it is.

Returns

Promise<undefined | IBrowseResponse>

Inherited from

Feed.getContinuationData

Defined in

src/core/mixins/Feed.ts:201


getShelf()

getShelf(title): undefined | ReelShelf | RichShelf | Shelf

Finds shelf by title.

Parameters

• title: string

Returns

undefined | ReelShelf | RichShelf | Shelf

Inherited from

Feed.getShelf

Defined in

src/core/mixins/Feed.ts:161


getPlaylistsFromMemo()

static getPlaylistsFromMemo(memo): ObservedArray<GridPlaylist | LockupView | Playlist>

Get all playlists on a given page via memo

Parameters

• memo: Memo

Returns

ObservedArray<GridPlaylist | LockupView | Playlist>

Inherited from

Feed.getPlaylistsFromMemo

Defined in

src/core/mixins/Feed.ts:93


getVideosFromMemo()

static getVideosFromMemo(memo): ObservedArray<Video | CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | WatchCardCompactVideo>

Get all videos on a given page via memo

Parameters

• memo: Memo

Returns

ObservedArray<Video | CompactVideo | GridVideo | PlaylistPanelVideo | PlaylistVideo | ReelItem | ShortsLockupView | WatchCardCompactVideo>

Inherited from

Feed.getVideosFromMemo

Defined in

src/core/mixins/Feed.ts:77

Edit this page
Last Updated:
Contributors: Luan