Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

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