youtubei
Version:
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!
50 lines (49 loc) • 1.55 kB
TypeScript
import { Thumbnails, YoutubeRawData } from "../../common";
import { Base, BaseProperties } from "../Base";
import { ChannelLive } from "./ChannelLive";
import { ChannelPlaylists } from "./ChannelPlaylists";
import { ChannelShorts } from "./ChannelShorts";
import { ChannelVideos } from "./ChannelVideos";
/** @hidden */
export interface BaseChannelProperties extends BaseProperties {
id?: string;
name?: string;
thumbnails?: Thumbnails;
subscriberCount?: string;
}
/** Represents a Youtube Channel */
export declare class BaseChannel extends Base implements BaseChannelProperties {
id: string;
/** The channel's name */
name: string;
/** The channel's handle start with @ */
handle: string;
/** The channel's description */
description?: string;
/** Thumbnails of this Channel */
thumbnails?: Thumbnails;
/**
* How many subscriber does this channel have,
*
* This is not the exact amount, but a literal string like `"1.95M subscribers"`
*/
subscriberCount?: string;
/** Continuable of videos */
videos: ChannelVideos;
/** Continuable of shorts */
shorts: ChannelShorts;
/** Continuable of live */
live: ChannelLive;
/** Continuable of playlists */
playlists: ChannelPlaylists;
/** @hidden */
constructor(attr: BaseChannelProperties);
/** The URL of the channel page */
get url(): string;
/**
* Load this instance with raw data from Youtube
*
* @hidden
*/
load(data: YoutubeRawData): BaseChannel;
}