Search code examples
windowsspotifyspotify-desktop

Add song to playing queue in Spotify Desktop


I'm trying to queue a song to Spotify Desktop (Windows 8.1) making use of Spotify Remote Control Bridge. I want that song to be appended after the current playing track.

Due to the restrictions Spotify applies to this API, there's no public documentation and I can't get in contact with their developers. This is one of the posts I've been following to understand how this API works: https://medium.com/@b3ngr33ni3r/hijacking-spotify-web-control-5014b0a1a360

I've successfully played a song with https://XXXX.spotilocal.com/remote/play.json?oauth=XXXX&csrf=XXXX&uri=XXXX, but it jumps to playing queue instantly and replaces it entirely.

When I call https://XXXX.spotilocal.com/remote/queue.json?oauth=XXXX&csrf=XXXX&uri=XXXX it always returns "Method not implemented". Do I need a special Oauth token? Or CSRF token?


Solution

  • Just giving an update, you can now add tracks to a queue via a BETA endpoint.

    https://developer.spotify.com/documentation/web-api/reference/player/add-to-queue/

    I've tested it, and it seems to work as expected.