Announcements

Help Wizard

Step 1

NEXT STEP

Playing all saved tracks

Playing all saved tracks

Plan

Premium

 

Currently, the API only provides a https://api.spotify.com/v1/me/tracks call to get all saved tracks, but no proper way to play them all, without calling https://api.spotify.com/v1/me/player/play with the IDs of all tracks, which doesn't work properly with large amounts of tracks. Playlists, albums etc. have a context uri that can be used instead, but that seems to be missing for saved tracks and other similar library items.

Reply
4 Replies

Hey @kraxie, thanks for posting here!

 

Let's see what could help here! Could you try the following context URI: 

"spotify:user:{{username}}:collection"

 to play the user's tracks. Let me know how you get on!

 

Have a great day and happy coding!
Hubo

 

HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Hi and thanks for your response.

Unfortunately, that didn't work. The API responded with error: "Non supported context uri".

Ditto, getting the exact same issue.

any updates on this?

Suggested posts