Blackhawk-TA / apple-music-playlist

Fetch playlist data from apple music

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"
	}
];

About

Fetch playlist data from apple music

License:MIT License


Languages

Language:JavaScript 100.0%