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).

Constructors

  • Parameters

    • name: string
    • id: string
    • Optional subs: number
    • Optional description: string
    • Optional views: number
    • Optional isVerified: boolean
    • Optional latest_videos: Video[]

    Returns Channel

Properties

description?: string
id: string
isVerified?: boolean
latest_videos?: Video[]
name: string
subs?: number
views?: number

Methods

  • Parameters

    Returns Promise<Playlist[]>

    Array of channel playlists.

    Name

    fetchChannelPlaylists

    Description

    Fetches latest channel playlists.

    Example

    await channel.fetchChannelPlaylists(instance);
    

    Example

    await channel.fetchChannelPlaylists(instance, {limit: 3});
    
  • Parameters

    Returns Promise<Video[]>

    Array of channel videos.

    Name

    fetchChannelVideos

    Description

    Fetches latest channel videos.

    Example

    await channel.fetchChannelVideos(instance);
    

    Example

    await channel.fetchChannelVideos(instance, {limit: 7});
    
  • Parameters

    Returns Promise<Channel[]>

    Array of related channels.

    Name

    fetchRelatedChannels

    Deprecated

    This feature is broken on YouTube's side.

    Description

    Fetches related channels.

    Example

    await channel.fetchRelatedChannels(instance);
    

    Example

    await channel.fetchRelatedChannels(instance, {limit: 5});
    

Generated using TypeDoc