Retrieve camera information: Camera.Get

Returns detailed information for the specified cameras

Parameters

params: array

Min size: 1

List of UIDs


params[]: Uid aka string

Pattern: ^[a-zA-Z0-9_-]+$

Unique identifier used throughout the system


Result

result: object

Stream objects for the given camera


result{}: any

No description


POST /api/

JSON
{
  "jsonrpc": "2.0",
  "method": "Camera.Get",
  "params": [
    "camera_uuid"
  ],
  "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.Get",
  "params": [
    "camera_uuid"
  ],
  "id": 123
}'

200 OK

JSON
{
  "jsonrpc": "2.0",
  "result": {
    "camera_uuid": {
      "camera": "camera_uuid",
      "streams": {
        "camera_uuid": {
          "camera": "camera_uuid",
          "source": "rtsp://admin:123_Camera@192.168.204.17:554/media/video0",
          "tracks": [
            "video"
          ]
        }
      },
      "onvif": {
        "hostname": "192.168.19.192",
        "events": {
          "MotionAlarm": "dvr|live|capture|publish",
          "PowerAlarm": "publish|dvr"
        }
      }
    }
  },
  "id": 123
}

400 Bad Request

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

500 Internal Server Error

Server error