Skip to main content
Module

x/youtubei/deno.ts>YTNodes.NavigationEndpoint

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

Constructors

new
NavigationEndpoint(data: RawNode)

Properties

optional
dialog: CreatePlaylistDialog | YTNode | null
metadata: { url?: string; api_url?: string; page_type?: string; send_post?: boolean; }
optional
modal: ModalWithTitleAndButton | YTNode | null
optional
next_endpoint: NavigationEndpoint
optional
open_popup: OpenPopupAction | null
payload

Methods

call<T extends IParsedResponse>(actions: Actions, args: { [key: string]: any; parse: true; }): Promise<T>
call(actions: Actions, args?: { [key: string]: any; parse?: false; }): Promise<ApiResponse>
getEndpoint(name: string)

Sometimes InnerTube does not return an API url, in that case the library should set it based on the name of the payload object.

toURL(): string | undefined

Static Properties

type: string