Wondering what’s next for npm?Check out our public roadmap! »

    spotify-charts-com

    0.0.6 • Public • Published

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

    Install

    npm i spotify-charts-com

    DownloadsWeekly Downloads

    3

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    7.87 kB

    Total Files

    9

    Last publish

    Collaborators

    • avatar