@noelportugal/node-tidal
v1.2.2
Published
Unofficial TIDAL API wrapper.
Downloads
6
Readme
node-tidal
About
This is a NodeJS wrapper for TIDAL's API with typings.
Installation
npm install node-tidal
yarn add node-tidal
How to find your token
!!! TOKEN MAY CHANGE ONCE EVERY FEW DAYS !!!
- Go to listen.tidal.com (make sure you're logged in 😐).
- Open the devtools and go to network.
- Click on
Fetch/XHR
. - Click any request and look for the
authorization
request header.
Features
- Playlists
- Albums
Usage/Examples
const { Tidal } = require('node-tidal');
/* Instantiate a new Tidal object with your Tidal token. */
const tidal = new Tidal({ token: 'token >:(', countryCode: 'EN' });
async function playlistExample() {
// It's getting the playlist infos of the playlist with the uuid
// `f4cf62d9-7920-42ca-a2ac-409cf2b1df5b`.
const getPlaylist = await tidal.playlists.getPlaylist('f4cf62d9-7920-42ca-a2ac-409cf2b1df5b');
console.log(getPlaylist);
// OUTPUT:
//{
// uuid: 'f4cf62d9-7920-42ca-a2ac-409cf2b1df5b',
// title: 'blablablbla',
// numberOfTracks: 0,
// numberOfVideos: 0,
// creator: { id: 188019021 },
// description: ':):):):):):):):):):)',
// duration: 0,
// lastUpdated: '2022-07-14T10:29:14.004+0000',
// created: '2022-07-14T10:29:14.004+0000',
// type: 'USER',
// publicPlaylist: false,
// url: 'http://www.tidal.com/playlist/f4cf62d9-7920-42ca-a2ac-409cf2b1df5b',
// image: 'e59903d7-94a7-454c-8a78-6a6586967dda',
// popularity: 0,
// squareImage: 'e9448a9a-3ade-4f79-93d2-12e6d8d4b2eb',
// promotedArtists: [],
// lastItemAddedAt: null
//}
}
playlistExample();