Class YouTube

Hierarchy

  • YouTube

Constructors

Properties

Methods

Constructors

Properties

key: string
url: string

Methods

  • It searches for a channel by name, gets the channel ID, and then gets the channel data

    Async

    Returns

    The channel object.

    Parameters

    • name: string

      The name of the channel you want to get.

    Returns Promise<any>

  • It searches for a video, gets the video ID, and then gets the video's information

    Async

    Returns

    The video information.

    Parameters

    • query: string

      The search query

    Returns Promise<any>

  • Private

    It takes an extension ID as a parameter, and returns a JSON object containing the extension's required information

    Async

    Returns

    a promise.

    Parameters

    • options: reqOptions

    Returns Promise<any>

  • It searches for a query and returns the results

    Async

    Returns

    The data is being returned.

    Parameters

    • options: searchOptions

    Returns Promise<any>

Generated using TypeDoc