rand_song
🟡 Incomplete
This API's output may have additions in the future.
Access a random Song
in your Collection
.
Inputs
None
Outputs
Field | Type | Description |
---|---|---|
song | Song object | See Song |
Example Request
festival-cli rand_song
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"rand_song"}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"song": {
"title": "Home Alone",
"key": 2825,
"album": 269,
"runtime": 182,
"sample_rate": 48000,
"track": 1,
"disc": 1,
"mime": "audio/x-flac",
"extension": "flac"
}
},
"id": 0
}