@noelportugal/node-tidal
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

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

How to find your token

!!! TOKEN MAY CHANGE ONCE EVERY FEW DAYS !!!

  1. Go to listen.tidal.com (make sure you're logged in 😐).
  2. Open the devtools and go to network.
  3. Click on Fetch/XHR.
  4. Click any request and look for the authorization request header. authorization request header

Features

  • Playlists
  • Albums

Usage/Examples

Basic example
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();

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @noelportugal/node-tidal

Weekly Downloads

1

Version

1.2.2

License

MIT

Unpacked Size

121 kB

Total Files

49

Last publish

Collaborators

  • noelportugal