Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 806 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 806 Bytes

DEPRECATED

I have stopped working on this API as Spotify have released an official API with a similar use case: https://developer.spotify.com/web-api/web-api-connect-endpoint-reference/

Spotifyd-http

This web server remote controls Spotify Connect devices via HTTP requests.

Methods

These are the currently supported methods:

GET /devices

Returns a list of device ID/Name pairs.

PUT /device_id/{play, pause, next, prev}

Plays, pauses, skips, and returns to previous song.

{GET, PUT, POST} /device_id/tracks

Gets, replaces, or appends tracks to the playlist. The PUT and POST take one or more id parameters. Example:

TRACKS="id=2BhU0Hl5OatWiCW93pE2b8&id=731OW49heGHCMrMOREHYlY&id=6zAPaRDoT99ThFtIXUJwhO"
curl -X POST -d "$TRACKS" 127.0.0.1:6767/device_id/tracks