Function fetchVideo

  • Parameters

    • instance: Instance

      Instance to fetch data from.

    • id: string

      Video ID.

    • Optional opts: VideoFetchOptions = ...

      Video fetch options.

    Returns Promise<Video>

    Video object.

    Name

    fetchVideo

    Description

    Fetches video data.

    Example

    await InvidJS.fetchVideo(instance, "id");
    

    Example

    await InvidJS.fetchVideo(instance, "id", {region: "US"});
    

Generated using TypeDoc