Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spotify API: Get user owned playlists only

Tags:

spotify

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

like image 926
Julian Avatar asked Sep 13 '25 10:09

Julian


1 Answers

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.

like image 93
Michael Thelin Avatar answered Sep 15 '25 22:09

Michael Thelin