0.0.6 • Published 3 years ago
spotify-charts-com v0.0.6
Spofity Charts
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",
},
},
];