Optional
descriptionOptional
isOptional
latest_Optional
subsOptional
viewsInstance to fetch data from.
Optional
opts: ChannelPlaylistsOptions = ...Playlist fetch options.
Array of channel playlists.
fetchChannelPlaylists
Fetches latest channel playlists.
await channel.fetchChannelPlaylists(instance);
await channel.fetchChannelPlaylists(instance, {limit: 3});
Instance to fetch data from.
Optional
opts: ChannelVideosOptions = ...Video fetch options.
Array of channel videos.
fetchChannelVideos
Fetches latest channel videos.
await channel.fetchChannelVideos(instance);
await channel.fetchChannelVideos(instance, {limit: 7});
Instance to fetch data from.
Optional
opts: CommonOptions = ...Related fetch options.
Array of related channels.
fetchRelatedChannels
This feature is broken on YouTube's side.
Fetches related channels.
await channel.fetchRelatedChannels(instance);
await channel.fetchRelatedChannels(instance, {limit: 5});
Generated using TypeDoc
Name
Channel
Description
Channel object. Can be Minimal, Basic or Full.
Param: name
Channel name.
Param: id
Channel ID.
Param: subs
Number of subscribers (basic or full only).
Param: description
Channel description (full only).
Param: views
Number of views (full only).
Param: isVerified
Is channel verified? (full only)
Param: latest_videos
Latest videos (full only).