Announcements

Help Wizard

Step 1

NEXT STEP

Incorrect `items` in response from `Get Current User's Playlists`

Solved!

Incorrect `items` in response from `Get Current User's Playlists`

I am trying to access my playlists by making a call to `/me/playlists`.

I get successful response:

 

{
href: 'https://api.spotify.com/v1/users/denzenin/playlists?offset=0&limit=50',
items: [],
limit: 50,
next: null,
offset: 0,
previous: null,
total: 0
}

 

Items list is empty and total is zero, which is not correct, as I own and follow multiple playlists.

 

There was another behaviour I cannot reproduce now.

Initially API responded with only 1 playlist, I tried to "un-heart" it and "heart" it again by pressing "heart-button" of the playlist view in the Spotify application. 

After that this playlist is also missing in the response from `/me/playlists`.

 

I would really appreciate any advice on the topic.

Maybe I do something not in a right way?

Maybe it is possible to get my playlists somehow through other endpoints?

 

Anyway have a beautiful day anyone who stumbled upon this!

 

 

Reply

Accepted Solutions
Marked as solution

It turns out I did not request all the necessary playlist scopes when going through authorization flow.

If you have the same issue, refer to https://developer.spotify.com/documentation/general/guides/authorization/scopes/ 

and choose the scopes that fit your needs.

View solution in original post

0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random