Skip to main content
Module

x/youtubei/deno.ts>YT.Search

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

Constructors

new
Search(
actions: Actions,
already_parsed?,
)

Properties

estimated_results: number
optional
header: SearchHeader
readonly
refinement_card_queries: string[]

Returns a list of refinement card queries.

optional
refinement_cards: HorizontalCardList | null
refinements: string[]
optional
results: ObservedArray<YTNode> | null
optional
sub_menu: SearchSubMenu
optional
watch_card: UniversalWatchCard

Methods

Retrieves next batch of results.

selectRefinementCard(card: SearchRefinementCard | string): Promise<Search>

Applies given refinement card and returns a new Search object. Use refinement_card_queries to get a list of available refinement cards.