Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 2.83 KB

rest-api.md

File metadata and controls

33 lines (25 loc) · 2.83 KB

REST API

Cider offers a simple REST API to remotely control the app.

URL: http://localhost:9000/api/

Endpoints

{% tabs %} {% tab title="/playback" %}

Endpoint Description
/playpause Toggle between play and pause
/play Play
/pause Pause
/stop Stop the current song
/next Skip to the next song in the queue
/previous Go back to the previous song in the queue

{% endtab %}

{% tab title="/musickit" %}

Endpoint Method Description Usage
/v3 POST

Access the MusicKit instance and use the v3 API routes
https://developer.apple.com/documentation/applemusicapi/

Takes 3 parameters.
route
body
options

{% endtab %}
{% endtabs %}