Playing all saved tracks

Reply

Playing all saved tracks

kraxie
Casual Listener

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.

4 Replies

Hubo
Rock Star 16
Rock Star 16

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

 

HuboRock Star 16
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.

kraxie
Casual Listener

Hi and thanks for your response.

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

winterscar
Visitor

Ditto, getting the exact same issue.

larsaars
Visitor
any updates on this?
SUGGESTED POSTS