Skip to content

getVideoInfo

LakhindarPal edited this page May 12, 2024 · 2 revisions

Method: getVideoInfo()

getVideoInfo(videoId): Promise<Video>

Retrieves video information from the Tidal API based on the provided video ID.

Parameters

  • videoId: number

The ID of the video.

Returns

Promise<Video>

A promise that resolves to the video information.

Usage

const { getVideoInfo } = require("tidal-music-api");

// example video ID
const id = 319408964;

try {
  const info = await getVideoInfo(id);
  console.log(info);
} catch (error) {
  console.error("Error:", error);
}
Clone this wiki locally