Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/endpoints/Search"

Index

Functions

Functions

Const search

  • search(cookie: string, args: any, query: string, options?: undefined | { filter?: undefined | string; max?: undefined | number }): Promise<Array<{ album?: Text; author?: Text; id?: undefined | string; thumbnails: Thumbnail[]; title: Text; tracksCount?: undefined | number; type: "song" | "album" | "playlist" | "video" | "artist"; url: string }> | Error>
  • Search

    usage
     const api = new YTMUSIC(cookie)
     const data = await api.createPlaylist('Summer Songs', 'PUBLIC', 'Some songs for summer')
     const songs = await api.search('Hot stuff')
     await api.addToPlaylist([songs[0].id], playlist.id)

    Parameters

    • cookie: string
    • args: any
    • query: string

      Search query

    • Optional options: undefined | { filter?: undefined | string; max?: undefined | number }

    Returns Promise<Array<{ album?: Text; author?: Text; id?: undefined | string; thumbnails: Thumbnail[]; title: Text; tracksCount?: undefined | number; type: "song" | "album" | "playlist" | "video" | "artist"; url: string }> | Error>

Generated using TypeDoc