Pick a random song, podcast episode or video and redirect (302) to its stream url
Changed onPicks a random song, podcast episode or video from the whole library and redirects (302) to its stream url. Ampache 8.0.0+
Request
- Base URLhttps://develop.ampache.dev/rest/8/json
- URLhttps://develop.ampache.dev/rest/8/json/random
- Auth
- HTTP bearer
- or API key in header auth
- or API key in query parameter auth
Query parameters
Object type to pick a random item from (default: song). artist accepts either artist credit; song_artist and album_artist narrow it to one
Parent object id to pick from. It is read against the table named by type, and those id spaces overlap, so an album id and an album_disk id of the same number are different objects. favorite reads it as 1 (or omitted) for flagged and 0 for not flagged; rating as 1-5 for that many stars or more, 0 for unrated, omitted for any rated song
Max bitrate for transcoding in bits per second (e.g 192000 = 192Kb). Song only
Target stream format e.g. 'mp3', 'ogg'; use 'raw' to skip transcoding. Song only
Return results starting from this index position
If 0, disable stat recording when playing the object (default: 1)
Changes
- info
added the new enum value
album_artistto thequeryrequest parametertype - info
added the new enum value
album_diskto thequeryrequest parametertype - info
added the new enum value
catalogto thequeryrequest parametertype - info
added the new enum value
favoriteto thequeryrequest parametertype - info
added the new enum value
genreto thequeryrequest parametertype - info
added the new enum value
labelto thequeryrequest parametertype - info
added the new enum value
ratingto thequeryrequest parametertype - info
added the new enum value
song_artistto thequeryrequest parametertype
- info
- info
api operation id
randomwas added - info
added the non-success response with the status
- info
removed the non-success response with the status
- info