Function searchContent

  • Parameters

    • instance: Instance

      Instance to fetch data from.

    • query: string

      Search query.

    • Optional opts: SearchOptions = ...

      Search options.

    Returns Promise<(Video | Playlist | Channel)[]>

    Array of search results (channels, playlists, videos).

    Name

    searchContent

    Description

    Searches content based on the query and search options.

    Example

    await InvidJS.searchContent(instance, "search");
    

    Example

    await InvidJS.searchContent(instance, "search", {type: ContentTypes.Playlist});
    

Generated using TypeDoc