Streaming and Downloads

Download a media file (binary)

Changed on

Downloads a given media file. set format=raw to download the full file

get/songs/{song_id}/download

Request

  • Base URL
    https://develop.ampache.dev/rest/8/json
  • URL
    https://develop.ampache.dev/rest/8/json/songs/{song_id}/download
  • Auth
    • HTTP bearer
    • or API key in header auth
    • or API key in query parameter auth

Path parameters

song_idstring required

Unique identifier of the song.

Query parameters

bitrateinteger

Max bitrate for transcoding in bits per second (e.g 192000 = 192Kb)

formatstring
stats0 | 1

Response

Zip archive of the container's media files (only when zip=1 is sent for a zipable type)

Changes

    • info

      api operation id downloadSongs was added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the media type application/zip for the response with the status

    • info

      added the non-success response with the status