-
Notifications
You must be signed in to change notification settings - Fork 0
getAlbumInfo
LakhindarPal edited this page May 12, 2024
·
2 revisions
getAlbumInfo(
albumId
,countryCode
?):Promise
<Album
>
Retrieves album information from the Tidal API based on the provided album ID and country code.
-
albumId:
number
The ID of the album.
-
countryCode?:
string
="US"
The country code to use for retrieving the album information. Defaults to "US".
Promise
<Album>
A promise that resolves to an Album object containing the album information.
const { getAlbumInfo } = require("tidal-music-api");
// example album ID
const id = 230064409;
try {
const info = await getAlbumInfo(id);
console.log(info);
} catch (error) {
console.error("Error:", error);
}