---
title: "Retrieve stream detection result"
method: GET
path: "/cameras/stream-detection/{session_id}/"
tags: ["camera-stream-detection"]
---

# Retrieve stream detection result

`GET /cameras/stream-detection/{session_id}/`

## Request

- Base URL: `https://api.angelcam.com/v1`
- URL: `https://api.angelcam.com/v1/cameras/stream-detection/{session_id}/`
- 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: `streams_detect`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/angelcam/apis/angelcam-api/docs/cameras/stream-detection/:session_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `session_id` string, uuid, required

## Response `200`

OK

- CameraStreamDetectionResponse
  - `status` 'ok' | 'in-progress' | 'error', required: Result status
  - `streams` CameraStreamDetectionStream[]: A list of detected streams
    - `url` string, url, required: URL of the detected stream. This is the URL that should be used to create a new camera.
    - `type` 'h264' | 'h265' | 'mjpeg', required: Camera type
    - `preview` CameraStreamDetectionPreview, required: Camera preview that can be used to access the underlying stream in various ways. The preview is available only for 20 minutes.
      - `live_snapshot` string, url, required: A URL that can be used to retrieve a snapshot from the camera
      - `streams` CameraStreamDetectionPreviewStream[], required: A list of streams available for the preview
        - `format` 'hls' | 'mjpeg' | 'mp4', required: Stream type
        - `url` string, url, required: Stream URL
  - `error` string: Error information

## Other responses

- `401`: Missing or invalid authorization.
- `403`: Missing permission.

---

[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)
