28 KiB
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:42
Properties
current_tab?
optionalcurrent_tab:Tab|ExpandableTab
Defined in
src/parser/youtube/Channel.ts:40
header?
optionalheader:C4TabbedHeader|CarouselHeader|InteractiveTabbedHeader|PageHeader
Defined in
src/parser/youtube/Channel.ts:37
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:38
subscribe_button?
optionalsubscribe_button:SubscribeButton
Defined in
src/parser/youtube/Channel.ts:39
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:151
filters
getfilters():string[]
Returns
string[]
Defined in
src/parser/youtube/Channel.ts:142
has_about
gethas_about():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:280
has_community
gethas_community():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:276
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:248
has_live_streams
gethas_live_streams():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:260
has_playlists
gethas_playlists():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:272
has_podcasts
gethas_podcasts():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:268
has_releases
gethas_releases():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:264
has_search
gethas_search():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:287
has_shorts
gethas_shorts():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:256
has_videos
gethas_videos():boolean
Returns
boolean
Defined in
src/parser/youtube/Channel.ts:252
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():ReloadContinuationItemsCommand|SectionList|MusicQueue|RichGrid
Returns contents from the page.
Returns
ReloadContinuationItemsCommand | SectionList | 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|Post|SharedPost>
Get all the community posts in the feed
Returns
ObservedArray<BackstagePost | Post | SharedPost>
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:146
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:123
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:72
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:100
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:200
getCommunity()
getCommunity():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:191
getContinuation()
getContinuation():
Promise<ChannelListContinuation>
Retrieves next batch of contents and returns a new Feed object.
Returns
Promise<ChannelListContinuation>
Overrides
Defined in
src/parser/youtube/Channel.ts:291
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:156
getLiveStreams()
getLiveStreams():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:171
getPlaylists()
getPlaylists():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:186
getPodcasts()
getPodcasts():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:181
getReleases()
getReleases():
Promise<Channel>
Returns
Promise<Channel>
Defined in
src/parser/youtube/Channel.ts:176
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:166
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:161
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:237
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>