0.0.6 • Published 3 years ago

spotify-charts-com v0.0.6

Weekly downloads
19
License
MIT
Repository
-
Last release
3 years ago

Spofity Charts

license github npm Build Status Coverage Status

What is spotify-charts-com?

It is a small npm module which allows getting the Spotify charts information based on by type, frequency, date or country. The information that is returned contains the place in the chart, title, artist, number of streams and the song url.

Usage

const spotifyCharts = require("spotify-charts-com");

spotifyCharts
	.getCharts("regional", "daily", "global", "latest") // type, frequency, country, date
	.then((results) => {
		console.log(results);
	})
	.catch((err) => {
		throw err;
	});

Result

The function returns an object with following structure:

let result = [
	{
		count: 200,
		list: [
			{
				place: 1,
				title: "drivers license",
				artist: "Olivia Rodrigo",
				streams: 5916117,
				url:
					"https://open.spotify.com/album/66FPnVL9G4CMKy3wvaGTcr?highlight=spotify:track:7lPN2DXiMsVn7XUKtOW1CS",
			},
		],
		filters: {
			type: "regional",
			country: "global",
			frequency: "daily",
			date: "latest",
		},
	},
];
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago