Skip to main content
Skip table of contents

List of cameras in a group

List of cameras in a group

Cameras within a tree element can be distributed into multiple groups.

GET /api/admin/v1/cameras/{group}

Method parameters

int group, unique identifier of the group

200 OK

Successful response

JSON
{
    "address": "District, Area, City, Street, House",
    "items": [
        {
            "key": "public",
            "type": "camera",
            "cameras": [
                {
                    "id": 930,
                    "group_id": 248,
                    "status": "active",
                    "type": "media_server_v2",
                    "pretty_text": "Cameras",
                    "short_pretty": "Cameras",
                    "start_at": "2022-06-19 12:20:22",
                    "created_at": "2022-06-14 15:19:14",
                    "name": "Camera 1",
                    "attached_services": [],
                    "services": {
                        "ptz": false,
                        "motion_detect": false
                    },
                    "csas": [],
                    "can_edit": true,
                    "origin": null,
                    "group_type": "public",
                    "shared_from": null,
                    "ip": "192.168.204.30",
                    "lat": null,
                    "lng": null,
                    "azimuth": null,
                    "is_sensitive": 0,
                    "is_public": 0,
                    "is_ip_reserved": false,
                    "count_issues": 0,
                    "source": "manual",
                    "archive_storage_days": 2,
                    "is_archive_recording": true,
                    "archive_recording_type": "fulltime",
                    "is_increased_reconnect": 0,
                    "is_sound_enabled": false,
                    "is_bridge": false,
                    "is_auto_create_streams": false,
                    "is_provisioning_enable": false,
                    "is_can_manage_streams": true,
                    "streams_source": "manual"
                }
            ]
        },
        {
            "key": "private",
            "type": "folder",
            "folders": [
                {
                    "folder": {
                        "id": 123,
                        "name": "Folder name"
                    },
                    "cameras": [
                        {
                            "id": 930,
                            "group_id": 248,
                            "status": "active",
                            "type": "media_server_v2",
                            "pretty_text": "Cameras",
                            "short_pretty": "Cameras",
                            "start_at": "2022-06-19 12:20:22",
                            "created_at": "2022-06-14 15:19:14",
                            "name": "Camera 1",
                            "attached_services": [],
                            "services": {
                                "ptz": false,
                                "motion_detect": false
                            },
                            "csas": [],
                            "can_edit": true,
                            "origin": null,
                            "group_type": "public",
                            "shared_from": null,
                            "ip": "192.168.204.30",
                            "lat": null,
                            "lng": null,
                            "azimuth": null,
                            "is_sensitive": 0,
                            "is_public": 0,
                            "is_ip_reserved": false,
                            "count_issues": 0,
                            "source": "manual",
                            "archive_storage_days": 2,
                            "is_archive_recording": true,
                            "archive_recording_type": "fulltime",
                            "is_increased_reconnect": 0,
                            "is_sound_enabled": false,
                            "is_bridge": false,
                            "is_auto_create_streams": false,
                            "is_provisioning_enable": false,
                            "is_can_manage_streams": true,
                            "streams_source": "manual"
                        }
                    ]
                }
            ]
        }
    ]
}

401 Unauthorized

Authorization token is not provided or is invalid. Obtaining a token

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/cameras/{group}' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "group": 0
}'
PHP
PHP
$data = array (
  'group' => 0,
);
$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/admin/v1/cameras/{group}', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.