-
Notifications
You must be signed in to change notification settings - Fork 0
getVideoInfo
LakhindarPal edited this page May 12, 2024
·
2 revisions
getVideoInfo(
videoId
):Promise
<Video
>
Retrieves video information from the Tidal API based on the provided video ID.
-
videoId:
number
The ID of the video.
Promise
<Video>
A promise that resolves to the video information.
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);
}