Reputation: 51
During developing a little spotify widget I want to receive my playlists. This is no problem with the Spotify API but I need to get only the playlists where the owner is the current user.
Is this possible?
Thanks a lot!
Julian
Upvotes: 4
Views: 4294
Reputation: 4830
Julian, there's no API endpoint to only retrieve the endpoints that the user has created. Instead, your application needs to retrieve the Current User's list of Playlists and loop through them to filter out the user's own playlists by the owner
property. (See Playlist object for details.)
If you don't know the user's username, use the Get Current User's Profile endpoint.
Upvotes: 4