Skip to main content
Module

x/youtubei/deno.ts>YTMusic.Search

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

Constructors

new
Search(
response: ApiResponse,
actions: Actions,
is_filtered?: boolean,
)

Properties

readonly
albums: MusicShelf | undefined
readonly
artists: MusicShelf | undefined
optional
contents: ObservedArray<MusicShelf | MusicCardShelf | ItemSection>
readonly
did_you_mean: DidYouMean | undefined
readonly
filters: string[]
readonly
has_continuation: boolean
optional
header: ChipCloud
readonly
message: Message | undefined
readonly
page: ISearchResponse
readonly
playlists: MusicShelf | undefined
deprecated
readonly
results: ObservedArray<MusicResponsiveListItem> | undefined
deprecated
readonly
sections: ObservedArray<MusicShelf> | undefined
readonly
showing_results_for: ShowingResultsFor | undefined
readonly
songs: MusicShelf | undefined
readonly
videos: MusicShelf | undefined

Methods

applyFilter(target_filter: string | ChipCloudChip): Promise<Search>

Applies given filter to the search.

getContinuation(): Promise<SearchContinuation>

Retrieves search continuation. Only available for filtered searches and shelf continuations.

getMore(shelf: MusicShelf | undefined): Promise<Search>

Loads more items for the given shelf.