Uses my Go package Spotify-BuddyList for grabbing the data!
GoTify is a collection of Spotify utilities written in Go by myself. GoTify Profile Tracker is a REST API web server that provides an implementation of my GoTify BuddyList package and scales up past the Spotify endpoints to retain large sets of data. The main use of this API is to view the listening activity of your friends in a well-formatted manner, there is also a frontend Vue.js application attached to this that utilises the API.
Array containing this object:
{
"timestamp":1630585689720,
"time":"2021-09-02T13:28:09.72+01:00",
"user_id":"spotify:user:21dnoih5aa7vkozsvczwoe4za",
"user":{
"uri":"spotify:user:21dnoih5aa7vkozsvczwoe4za",
"name":"Lars.On.Spotify",
"imageUrl":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=541218032718353&height=50&width=50&ext=1632658424&hash=AeQSx5CUG26hrnhmIXA"
},
"track_id":"spotify:track:7yq4Qj7cqayVTp3FF9CWbm",
"track":{
"uri":"spotify:track:7yq4Qj7cqayVTp3FF9CWbm",
"name":"Riptide",
"imageUrl":"http://i.scdn.co/image/ab67616d0000b273d3ce97395ff522b0d70c1094",
"album_id":"spotify:album:6rIbiUMmZJfqJRnXhVxFvg",
"album":{
"uri":"spotify:album:6rIbiUMmZJfqJRnXhVxFvg",
"name":"Dream Your Life Away"
},
"artist_id":"spotify:artist:10exVja0key0uqUkk6LJRT",
"artist":{
"uri":"spotify:artist:10exVja0key0uqUkk6LJRT",
"name":"Vance Joy"
}
}
}
Array containing this object:
{
"timestamp":1630585689720,
"time":"2021-09-02T13:28:09.72+01:00",
"user_id":"spotify:user:21dnoih5aa7vkozsvczwoe4za",
"user":{
"uri":"spotify:user:21dnoih5aa7vkozsvczwoe4za",
"name":"Lars.On.Spotify",
"imageUrl":"https://platform-lookaside.fbsbx.com/platform/profilepic/?asid=541218032718353&height=50&width=50&ext=1632658424&hash=AeQSx5CUG26hrnhmIXA"
},
"track_id":"spotify:track:7yq4Qj7cqayVTp3FF9CWbm",
"track":{
"uri":"spotify:track:7yq4Qj7cqayVTp3FF9CWbm",
"name":"Riptide",
"imageUrl":"http://i.scdn.co/image/ab67616d0000b273d3ce97395ff522b0d70c1094",
"album_id":"spotify:album:6rIbiUMmZJfqJRnXhVxFvg",
"album":{
"uri":"spotify:album:6rIbiUMmZJfqJRnXhVxFvg",
"name":"Dream Your Life Away"
},
"artist_id":"spotify:artist:10exVja0key0uqUkk6LJRT",
"artist":{
"uri":"spotify:artist:10exVja0key0uqUkk6LJRT",
"name":"Vance Joy"
}
}
}
-
'Cookie' - sd_pc cookie from Spotify's Web Player
- After you log into the Spotify web player, you need to find the cookie named 'sp_dc' and get the value of it
- This cookie expires every year, so if used in production, it will be best to automate the collection of it
-
'Client ID' - Follow the 'Register your App' tutorial here!
-
'Client Secret' - Follow the 'Register your App' tutorial here!
-
'Access Token' - Follow this: Link!. Once you have the Access and Refresh token, insert them into the init() method. Be sure to request the 'user-follow-modify' scope.
-
'Refresh Token' - Follow this: Link!. Once you have the Access and Refresh token, insert them into the init() method. Be sure to request the 'user-follow-modify' scope.
- Released 28/08/21