I’ve been hacking with the Spotify Apps API, specifically the playlists methods, however it seems that the user field deos not exist in the playlist.tracks object.
An example from the inspector:
Playlist loaded [
Track
data: Object
album: Object
artists: Array[1]
availability: 0
availableForPlayback: true
discNumber: 0
duration: 280000
isAd: false
isInvalid: false
isLoaded: true
isLocal: false
isPlaceholder: false
name: “Nothing Left To Say”
popularity: 29
starred: false
trackNumber: 13
type: “track”
uri: “spotify:track:24wKpBad6OrQKseDQnw1Fr”
I am interested in this information for two reasons:
1. To scrub playback statistics from shared playlists, for later analysis/usage in building apps, playlists etc
2. If I were to need to rebuild my playlists, when I add the songs they will all have me as the user, not the original person
seems strange this field is missing, but as yet I have not found it, currently I export the playlist to a database, sort the tracks by username, and then as the number of users is small its rather quick to fill in the appropriate username based on the track/user boundaries, though this doesn’t help when rebuilding playlists.
The info must be there as the Spotify desktop client shows this, but I guess it’s a private API?
Cheers
SockThief
Indeed, this information isn’t available through the Apps API for privacy reasons. Sorry!