youtubei.js / YT / Channel
Class: Channel
Extends
Constructors
new Channel()
new Channel(
actions,data,already_parsed):Channel
Parameters
• actions: Actions
• data: ApiResponse | IBrowseResponse
• already_parsed: boolean = false
Returns
Overrides
Defined in
src/parser/youtube/Channel.ts:36
Properties
current_tab?
optionalcurrent_tab:Tab|ExpandableTab
Defined in
src/parser/youtube/Channel.ts:34
header?
optionalheader:C4TabbedHeader|CarouselHeader|InteractiveTabbedHeader|PageHeader
Defined in
src/parser/youtube/Channel.ts:31
metadata
metadata:
object
android_appindexing_link?
optionalandroid_appindexing_link:string
android_deep_link?
optionalandroid_deep_link:string
android_package?
optionalandroid_package:string
app_name?
optionalapp_name:string
available_countries?
optionalavailable_countries:string[]
avatar?
optionalavatar:Thumbnail[]
description?
optionaldescription:string
external_id?
optionalexternal_id:string
ios_app_arguments?
optionalios_app_arguments:string
ios_app_store_id?
optionalios_app_store_id:string
ios_appindexing_link?
optionalios_appindexing_link:string
is_family_safe?
optionalis_family_safe:boolean
is_unlisted?
optionalis_unlisted:boolean
keywords?
optionalkeywords:string[]
music_artist_name?
optionalmusic_artist_name:string
noindex?
optionalnoindex:string
og_type?
optionalog_type:string
rss_url?
optionalrss_url:string
schema_dot_org_type?
optionalschema_dot_org_type:string
site_name?
optionalsite_name:string
tags?
optionaltags:string[]
thumbnail?
optionalthumbnail:Thumbnail[]
title?
optionaltitle:string
twitter_card_type?
optionaltwitter_card_type:string
twitter_site_handle?
optionaltwitter_site_handle:string
type?
readonlyoptionaltype:string
url?
optionalurl:string
url_applinks_android?
optionalurl_applinks_android:string
url_applinks_ios?
optionalurl_applinks_ios:string
url_applinks_web?
optionalurl_applinks_web:string
url_canonical?
optionalurl_canonical:string
url_twitter_android?
optionalurl_twitter_android:string
url_twitter_ios?
optionalurl_twitter_ios:string
vanity_channel_url?
optionalvanity_channel_url:string
Defined in
src/parser/youtube/Channel.ts:32
subscribe_button?
optionalsubscribe_button:SubscribeButton
Defined in
src/parser/youtube/Channel.ts:33
Accessors
actions
getactions():Actions
Returns
Inherited from
Defined in
channels
getchannels():ObservedArray<Channel|GridChannel>
Get all the channels in the feed
Returns
ObservedArray<Channel | GridChannel>
Inherited from
Defined in
content_type_filters
getcontent_type_filters():string[]
Returns
string[]
Defined in
src/parser/youtube/Channel.ts:144
filters
getfilters():string[]
Returns
string[]
Defined in
src/parser/youtube/Channel.ts:135
has_about
gethas_about():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:273
has_community
gethas_community():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:269
has_continuation
gethas_continuation():boolean
Checks if the feed has continuation.
Returns
boolean
Inherited from
Defined in
has_home
gethas_home():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:241
has_live_streams
gethas_live_streams():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:253
has_playlists
gethas_playlists():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:265
has_podcasts
gethas_podcasts():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:261
has_releases
gethas_releases():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:257
has_search
gethas_search():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:280
has_shorts
gethas_shorts():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:249
has_videos
gethas_videos():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:245
memo
getmemo():Memo
Returns
Inherited from
Defined in
page
getpage():T
Get the original page data
Returns
T
Inherited from
Defined in
page_contents
getpage_contents():SectionList|ReloadContinuationItemsCommand|MusicQueue|RichGrid
Returns contents from the page.
Returns
SectionList | ReloadContinuationItemsCommand | MusicQueue | RichGrid
Inherited from
Defined in
playlists
getplaylists():ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists in the feed
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Inherited from
Defined in
posts
getposts():ObservedArray<BackstagePost|SharedPost|Post>
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | SharedPost | Post>
Inherited from
Defined in
secondary_contents
getsecondary_contents():undefined|SuperParsedResult<YTNode>
Returns secondary contents from the page.
Returns
undefined | SuperParsedResult<YTNode>
Inherited from
Defined in
shelves
getshelves():ObservedArray<ReelShelf|RichShelf|Shelf>
Returns all segments/sections from the page.
Returns
ObservedArray<ReelShelf | RichShelf | Shelf>
Inherited from
Defined in
sort_filters
getsort_filters():string[]
Returns
string[]
Defined in
src/parser/youtube/Channel.ts:139
tabs
gettabs():string[]
Returns
string[]
Inherited from
Defined in
src/core/mixins/TabbedFeed.ts:19
title
gettitle():undefined|string
Returns
undefined | string
Inherited from
Defined in
src/core/mixins/TabbedFeed.ts:55
videos
getvideos():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
Defined in
Methods
applyContentTypeFilter()
applyContentTypeFilter(
content_type_filter):Promise<Channel>
Applies given content type filter to the list. Use content_type_filters to get available filters.
Parameters
• content_type_filter: string
The content type filter to apply
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:116
applyFilter()
applyFilter(
filter):Promise<FilteredChannelList>
Applies given filter to the list. Use filters to get available filters.
Parameters
• filter: string | ChipCloudChip
The filter to apply
Returns
Promise<FilteredChannelList>
Defined in
src/parser/youtube/Channel.ts:65
applySort()
applySort(
sort):Promise<Channel>
Applies given sort filter to the list. Use sort_filters to get available filters.
Parameters
• sort: string
The sort filter to apply
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:93
getAbout()
getAbout():
Promise<ChannelAboutFullMetadata|AboutChannel>
Retrieves the about page. Note that this does not return a new Channel object.
Returns
Promise<ChannelAboutFullMetadata | AboutChannel>
Defined in
src/parser/youtube/Channel.ts:193
getCommunity()
getCommunity():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:184
getContinuation()
getContinuation():
Promise<ChannelListContinuation>
Retrives list continuation.
Returns
Promise<ChannelListContinuation>
Overrides
Defined in
src/parser/youtube/Channel.ts:287
getContinuationData()
getContinuationData():
Promise<undefined|IBrowseResponse>
Retrieves continuation data as it is.
Returns
Promise<undefined | IBrowseResponse>
Inherited from
TabbedFeed.getContinuationData
Defined in
getHome()
getHome():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:149
getLiveStreams()
getLiveStreams():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:164
getPlaylists()
getPlaylists():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:179
getPodcasts()
getPodcasts():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:174
getReleases()
getReleases():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:169
getShelf()
Finds shelf by title.
Parameters
• title: string
Returns
undefined | ReelShelf | RichShelf | Shelf
Inherited from
Defined in
getShorts()
getShorts():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:159
getTabByName()
getTabByName(
title):Promise<TabbedFeed<IBrowseResponse>>
Parameters
• title: string
Returns
Promise<TabbedFeed<IBrowseResponse>>
Inherited from
Defined in
src/core/mixins/TabbedFeed.ts:23
getTabByURL()
getTabByURL(
url):Promise<TabbedFeed<IBrowseResponse>>
Parameters
• url: string
Returns
Promise<TabbedFeed<IBrowseResponse>>
Inherited from
Defined in
src/core/mixins/TabbedFeed.ts:37
getVideos()
getVideos():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:154
hasTabWithURL()
hasTabWithURL(
url):boolean
Parameters
• url: string
Returns
boolean
Inherited from
Defined in
src/core/mixins/TabbedFeed.ts:51
search()
search(
query):Promise<Channel>
Searches within the channel.
Parameters
• query: string
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:230
getPlaylistsFromMemo()
staticgetPlaylistsFromMemo(memo):ObservedArray<GridPlaylist|LockupView|Playlist>
Get all playlists on a given page via memo
Parameters
• memo: Memo
Returns
ObservedArray<GridPlaylist | LockupView | Playlist>
Inherited from
TabbedFeed.getPlaylistsFromMemo
Defined in
getVideosFromMemo()
staticgetVideosFromMemo(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>