apple-music-playlist

1.1.5 • Public • Published

Apple-Music-Playlist

license github npm Build Status Coverage Status

What is Apple-Music-Playlist?

It is a small npm module which allows getting the playlist information of an apple music playlist by its URL. The information that is returned contains the title, artist and album of each track.

Usage

const appleMusicPlaylist = require("apple-music-playlist");

let sUrl = "https://music.apple.com/de/playlist/<your playlist>";

appleMusicPlaylist.getPlaylist(sUrl).then(aResult => {
	console.log(aResult);
}).catch(err => {
	throw err;
});

Result

The function returns an array with following structure:

let aResult = [
	{
		"album": "the album of the track",
		"artist": "the artist of the track",
		"title": "the title of the track"
	}
];

Package Sidebar

Install

npm i apple-music-playlist

Weekly Downloads

15

Version

1.1.5

License

MIT

Unpacked Size

7.39 kB

Total Files

8

Last publish

Collaborators

  • blackhawk