Skip to main content
Skip table of contents

Get the list of cameras used in the case

Get the list of cameras used in the case

List of cameras used in the case.

GET /api/v1/analytic-case/{case}/person-counting/live

Parameters

int case, Unique identifier of the analytics case


array cameras, Array of camera ids


string date, Template for filtering by date.


string timezone, Time zone for the date filter template.


string from, Date from which filtering will be carried out.


string to, Date until which filtering will be carried out.

200 OK

Returns an array of cameras used in the analytics case

JSON
[
    {
        "id": 746,
        "group_id": 98,
        "status": "active",
        "type": "media_server_v2",
        "start_at": "2022-03-23 15:42:07",
        "created_at": "2022-01-27 19:12:36",
        "billing_id": null,
        "pretty_name": "Kitchen",
        "pretty_text": "Original chambers, 1st floor",
        "short_address": "Source chambers, 1st floor",
        "full_address": "Original chambers, 1st floor",
        "lat": null,
        "lng": null,
        "is_location_editable": true,
        "azimuth": null,
        "streams": [
            {
                "id": 735,
                "type": "high",
                "camera_id": 746,
                "is_preview_from_server": true,
                "is_archive_from_server": null,
                "status": "active",
                "has_sound": true,
                "width": 1280,
                "height": 960
            },
            {
                "id": 736,
                "type": "low",
                "camera_id": 746,
                "is_preview_from_server": true,
                "is_archive_from_server": null,
                "status": "active",
                "has_sound": true,
                "width": 1280,
                "height": 960
            }
        ],
        "has_sound": true,
        "archive_ranges": [
            {
                "end": 1648122119,
                "from": 1648039207,
                "duration": 82912
            }
        ],
        "is_archive_recording": true,
        "meta": {
            "line": [],
            "figure": [
                {
                    "x": 0.10390625,
                    "y": 0.18125
                },
                {
                    "x": 0.81953126,
                    "y": 0.8979167
                },
                {
                    "x": 0.87890625,
                    "y": 0.45833334
                },
                {
                    "x": 0.7445313,
                    "y": 0.19375
                },
                {
                    "x": 0.39609376,
                    "y": 0.18958333
                },
                {
                    "x": 0.10390625,
                    "y": 0.18125
                },
                {
                    "x": 0.81953126,
                    "y": 0.8979167
                },
                {
                    "x": 0.87890625,
                    "y": 0.45833334
                },
                {
                    "x": 0.7445313,
                    "y": 0.19375
                },
                {
                    "x": 0.39609376,
                    "y": 0.18958333
                }
            ],
            "threshold": 3
        },
        "is_bridge": false,
        "is_favorite": false,
        "user_status": "active",
        "name": "Kitchen"
    }
]

401 Unauthorized

Authorization token not sent or not valid

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/analytic-case/{case}/person-counting/live' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "case": 0,
    "cameras": [],
    "date": "string",
    "timezone": "string",
    "from": "string",
    "to": "string"
}'
PHP
PHP
$data = array (
  'case' => 0,
  'cameras' => 
  array (
  ),
  'date' => 'string',
  'timezone' => 'string',
  'from' => 'string',
  'to' => 'string',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'GET',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/analytic-case/{case}/person-counting/live', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.