---
title: "Create and return recorded stream for a specified time"
method: GET
path: "/recording/{recording_id}/stream/"
tags: ["recording"]
---

# Create and return recorded stream for a specified time

`GET /recording/{recording_id}/stream/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/recording/{recording_id}/stream/`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://my.angelcam.com/oauth/authorize/`, token URL `https://my.angelcam.com/oauth/token/`
    - Password, token URL `https://api.angelcam.com/oauth/token/`
    - Scopes: `recording_access`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/recording/:recording_id/stream/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `recording_id` string, uuid, required

## Query parameters

- `start` string, date-time, required
- `end` string, date-time

## Response `200`

OK

- RecordingStreamResponse
  - `url` string: URL of a stream.
  - `format` 'hls' | 'mjpeg': Stream format.
  - `stream_info` string: URL of a recorded stream info endpoint.
  - `stream_controls` object: Links allowing to synchronize and control stream playback. See [more](#tag/stream-controls).
    - `base_url` string: URL for retrieving the current stream position and playback speed.
    - `play` string: URL for resuming the stream playback.
    - `pause` string: URL for pausing the stream playback.
    - `speed` string: URL for changing the stream playback speed.

## Other responses

- `400`: Query params are invalid.
- `401`: Missing or invalid authorization.
- `403`: Missing permission.
- `404`: The specified resource was not found

---

[API](https://skmtc.dev/angelcam/apis/angelcam-api.md) - [All operations](https://skmtc.dev/angelcam/apis/angelcam-api/llms.txt) - [OpenAPI document](https://skmtc.dev/angelcam/apis/angelcam-api/revisions/dd1cdc3f2c23?raw)
