Class VideoHandler

Hierarchy

  • VideoHandler

Methods

  • Parameters

    • channels: string[]

    Returns Promise<any>

  • Retrieves a video object. Also retrieves Comments if query parameter c is set. Also retrieves Recommendations if query parameter lang is set

    Parameters

    • videoId: string

      ID of a Youtube Video

    • Optional query: {
          c: boolean;
          lang: string;
      }

      Lang is a comma separated list of language codes to filter channels/clips, official streams do not follow this parameter. If c is true, response will include with all timestamp comments for this video.

      • c: boolean
      • lang: string

    Returns Promise<VideoFull>

  • Pretty much everything you need. This is the most 'vanilla' variant with almost no preset values, and /channels/{channelId}/{type} and /live endpoints both use the same query structure but provision default values differently for some of the query params. Not as powerful at searching arbitrary text as the Search API (currently not documented/available).

    Parameters

    • Optional vidParams: VideosQuery

      object containing the query parameters for this query

    Returns Promise<Video[]>

Generated using TypeDoc