All API Endpoints
- [
POST
/song-emotions/]
When queried by the URL endpoints above, The 5 emotions percent in decimal format of a song will be returned in the response body as a JSON object. Each object includes the following information:
- anger
- fear
- joy
- sadness
- surprise
['POST']
{ "lyrics":"Listen to the song here in my heart A melody I start but can't complete Listen to the sound from deep within Its only beginning to find release... " }
Status: 200OK
{ "anger": 0.17771474332941883, "fear": 0.10931373285741239, "joy": 0.10823320304592757, "sadness": 0.3939631624724091, "surprise": 0.05257683244879963 }
- [
POST
/similar-songs/]
When queried by the URL endpoints above, a list of similar songs to the emotions posted will be retuned as a list of JSON objects. Each JSON object includes the following information:
-
artist
-
title
['POST']
{ "joy":"0.65", "anger":"0.35", "sadness":"0.12", "fear":"0.36", "surprise":"0.45" }
Status: 200OK
[ { "artist": "Talking Heads", "title": "Artists Only" }, { "artist": "Blake Shelton", "title": "Neon Light" }, { "artist": "Keith Urban", "title": "All for You" }, { "artist": "Charlie Puth", "title": "How Long" }, { "artist": "The Hit Crew", "title": "Hamster Dance" } ]