Get the list of camera streams: Camera.List

Returns a list of all camera streams in the system

Parameters

params: object


Result

result: object

Map of camera UIDs to their stream configurations


result{}: any

Stream objects for each camera


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Camera.List",
  "params": {},
  "id": 123
}
cURL
Bash
curl -k --request POST \
    --url 'https://your-domain/api/' \
    --header 'Content-Type: application/json' \
    --header 'Authorization: Bearer <api-authorization-token>' \
    --data '{
  "jsonrpc": "2.0",
  "method": "Camera.List",
  "params": {},
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "camera_uuid": {
      "onvif": {
        "hostname": "ip address",
        "events": {
          "MotionAlarm": "dvr|live|capture|publish",
          "PowerAlarm": "publish|dvr"
        }
      },
      "streams": {
        "stream_uuid": {
          "access": "private",
          "address": "",
          "audio": {
            "codec": "PCMA",
            "enable": true
          },
          "buffer": false,
          "camera": "0104fa25-5ed0-4996-93f9-e3bdff641594",
          "capture": {
            "enable": "always:full"
          },
          "dvr": {
            "capacity": -1,
            "duration": 7200,
            "enable": "never",
            "init": false,
            "location": "",
            "priority": 1,
            "quota": 0,
            "ranges": 0,
            "recorder": "persistent",
            "size": 0
          },
          "enable": true,
          "kind": "primary",
          "live": {
            "enable": "always:full"
          },
          "priority": 1,
          "reconnects": {
            "attempt": 0,
            "limit": 500,
            "total": 0
          },
          "source": "rtsp url to source stream",
          "state": "ready",
          "stime": 0,
          "subscribers": 0,
          "type": "publish",
          "uid": "stream_uuid",
          "video": {
            "codec": "H265",
            "enable": true
          }
        }
      },
      "uid": "0104fa25-5ed0-4996-93f9-e3bdff641594"
    }
  },
  "id": 123
}

400 Bad Request

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32601,
    "message": "Method not found"
  },
  "id": 123
}

500 Internal Server Error

Server error