---
title: "Stream a media file (binary)"
method: GET
path: "/smartlists/{smartlist_id}/stream"
tags: ["Streaming and Downloads"]
---

# Stream a media file (binary)

`GET /smartlists/{smartlist_id}/stream`

Streams a given media file. Takes the file id in parameter with optional max bit rate, file format, time offset, size and estimate content length option.

## Path parameters

- `smartlist_id` string, required

## Query parameters

- `bitrate` integer
- `format` string
- `offset` integer
- `length` 0 | 1
- `stats` 0 | 1

## Other responses

- `302` — Redirect to the media url; the stream itself is served from the `Location` header
- `400` — HTTP 400 Bad Request (errors 4705, 4710).
- `401` — HTTP 401 Unauthorized (error 4701).
- `403` — HTTP 403 Forbidden (errors 4700, 4703, 4742).
- `404` — HTTP 404 Not Found (error 4704).
- `416` — Range not satisfiable
- `500` — HTTP 500 Internal Server Error (error 4702).

---

[API](https://skmtc.net/ampache/apis/ampache-rest-api.md) · [All operations](https://skmtc.net/ampache/apis/ampache-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ampache/ampache-rest-api/revisions/535feee32afb/schema)
