nleroy917 / spottydata-api

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

New Endpoint <playlist_id>/analysis/feel #7

Closed nleroy917 closed 4 years ago

nleroy917 commented 4 years ago

Create a new API endpoint to get the playlist "feel". Spotify has a bunch of characteristics for a track. The endpoint will average (or take median?) of all the characteristics for each track in a playlist... The intent is to return the average of these characteristics.

Required Params: Spotify Playlist ID Number Headers: Authorization: <access_token> Route: <playlist_id>/analysis/feel Return Type: JSON Object Format: {valence: 0.64, instrumentalness: 0.8, energy: 0.65, ... }

This will allow for easy integration into a Chart.JS radar chart

nleroy917 commented 4 years ago

Route added and tested successfully. Closing issue.