Announcements

Help Wizard

Step 1

NEXT STEP

Get a Playlist endpoint returns empty object

Solved!

Get a Playlist endpoint returns empty object

I am attempting to use the Get a Playlist endpoint but it keeps returning an empty object {}. I thought this might be an issue with how I formatted my request, so I went to verify by using the web console page for this endpoint. However, even with the sample data supplied in the web console, the response still appears to be an empty object (see attachment). The status code is 200 so this doesn't seem to be an issue of authorization or access privileges. Why is this happening and how can I get the result I'm looking for?

Screenshot from 2021-09-07 22-00-28.png
Reply

Accepted Solutions
Marked as solution

The "fields" parameter should be "tracks.items(added_by.id,track(name,href,album(name,href)))". "items" is not a top-level key in the JSON payload.

View solution in original post

2 Replies
Marked as solution

The "fields" parameter should be "tracks.items(added_by.id,track(name,href,album(name,href)))". "items" is not a top-level key in the JSON payload.

Fantastic, thanks. Very confusing that the sample data is invalid.

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