import { YouTube } from "https://deno.land/x/youtube_sr@v4.3.4-deno/mod.ts";
Static Methods
Attempts to parse INNERTUBE_API_KEY
getPlaylist(url: string, options?: PlaylistOptions): Promise<Playlist>
Returns playlist details
getSuggestions(query: string)
getVideo(url: string | Video, requestOptions?: RequestInit): Promise<Video>
Returns basic video info
isPlaylist(src: string)
search(query: string, options?: SearchOptions & { type: "video"; }): Promise<Video[]>
Search
search(query: string, options?: SearchOptions & { type: "film"; }): Promise<Video[]>
search(query: string, options?: SearchOptions & { type: "channel"; }): Promise<Channel[]>
search(query: string, options?: SearchOptions & { type: "playlist"; }): Promise<Playlist[]>
search(query: string, options?: SearchOptions & { type: "all"; }): Promise<(Video | Channel | Playlist)[]>
trending(options?: TrendingParseOptions): Promise<Video[]>
validate(url: string, type?: ): boolean
| "VIDEO"
| "VIDEO_ID"
| "PLAYLIST"
| "PLAYLIST_ID"
Validates playlist