Skip to main content
Module

x/youtubei/deno.ts>YT.default

A wrapper around YouTube's internal API — reverse engineering InnerTube
Very Popular
Go to Latest
class YT.default
import { YT } from "https://deno.land/x/youtubei@v9.3.0-deno/deno.ts";
const { default } = YT;

Constructors

new
default(
actions: Actions,
already_parsed?,
)

Properties

readonly
content_type_filters: string[]
optional
current_tab: Tab | ExpandableTab
readonly
filters: string[]
readonly
has_about: boolean
readonly
has_community: boolean
readonly
has_home: boolean
readonly
has_live_streams: boolean
readonly
has_playlists: boolean
readonly
has_podcasts: boolean
readonly
has_releases: boolean
readonly
has_shorts: boolean
readonly
has_videos: boolean
optional
header:
| C4TabbedHeader
| CarouselHeader
| InteractiveTabbedHeader
| PageHeader
metadata
readonly
sort_filters: string[]
optional
subscribe_button: SubscribeButton

Methods

applyContentTypeFilter(content_type_filter: string): Promise<Channel>

Applies given content type filter to the list. Use content_type_filters to get available filters.

applyFilter(filter: string | ChipCloudChip): Promise<FilteredChannelList>

Applies given filter to the list. Use filters to get available filters.

applySort(sort: string): Promise<Channel>

Applies given sort filter to the list. Use sort_filters to get available filters.

getAbout(): Promise<ChannelAboutFullMetadata | AboutChannel>

Retrieves the about page. Note that this does not return a new Channel object.

getCommunity(): Promise<Channel>

Retrives list continuation.

getHome(): Promise<Channel>
getPlaylists(): Promise<Channel>
getPodcasts(): Promise<Channel>
getReleases(): Promise<Channel>
getShorts(): Promise<Channel>
getVideos(): Promise<Channel>
search(query: string): Promise<Channel>

Searches within the channel.