Skip to content

A JSON API that returns Spotify data for Most Monthly Streams. Built with ExpressJs, CheerioJs, Request, and HTTP package.

Notifications You must be signed in to change notification settings

kyledeguzmanx/fDev-API-SpotifyMonthlyStreams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

SPOTIFY MONTHLY DATA API

INTRODUCTION

This is an API that showcases Spotify's monthly data. This data being web scraped from Wikipedia's entry List of most-streamed artists on Spotify. This API was built for educational purposes. For a deep-dive tutorial, check out my Medium page @kyledeguzmanx

TECHNOLOGY USED

CheerioJs
ExpressJS
HTTP npm package
Request HTTP client

SCREENSHOTS

SAMPLE DATA

CONSOLE OUIPUT

JSON DATA

SAMPLE FETCH

HOW TO USE

The API is currently available in the RAPID API Marketplace. Find all my APIs on my profile on RapidAPI @kyledeguzmanx

In order to use the API, you must sign in to the Rapid API platform.

After signing in, return to the API page. At the top right of the middle coulumn, you will need to subscribe to this API to get your own unique API Key. The free subscription offers unlimited uses. (Note: If you're publishing the source code of your project, make sure you always hide your API Keys)

Once you get your API Key, you can now use the API.

The path to fetch the API is:

https://spotify-monthly-listeners.p.rapidapi.com/?rapidapi-key=

and add your unique API key at the end.

Also, if you're viewing the API Documentation page, in the right-most column, there are code snippets (in various languages and techniques) that show you how to fetch the API. For example, with NodeJS, you can use the axios module or the node-fetch module. Or if you're using Javascript, you can use XMLHttpRequest, Fetch, or jQuery.

Note: Keep your API Keys private and off your GitHub. For more information, check out this article I love How to Hide API Key in GitHub Repo by Pt. Prashant tripathi

CREDITS

Wikipedia & Spotify for Data

About

A JSON API that returns Spotify data for Most Monthly Streams. Built with ExpressJs, CheerioJs, Request, and HTTP package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published