nleroy917 / spottydata-api

Backend and Web API for spottydata.com
MIT License
7 stars 0 forks source link

New Endpoint: <playlist_id>/analysis/duration #9

Closed nleroy917 closed 4 years ago

nleroy917 commented 4 years ago

Create a new API endpoint to get the duration information for each song in the playlist. The idea is that the data can return an object to plot a density function for the duration

Required Params: Spotify Playlist ID Number Headers: Authorization: <access_token> Route: <playlist_id>/analysis/duration Return Type: JSON Object Format: {bins: <array of bins>, counts: <array of counts> }

Allows for easy integration into a density plot with Chart.JS as a psuedo-historgram.

nleroy917 commented 4 years ago

No longer in development - efficiency/performance issues dictate all analysis stays within one route