26.09 26.06 26.05 25.12
26.09 26.06 26.05 25.12 Russian English

View camera by external system

View a camera

GET  /api/v1/billing/cameras

Method parameters

int id, Current camera ID


string external_id, Current camera external_id


string mac, Current camera MAC address

200  OK

Successful response

JSON
{
    "id": 1,
    "status": "empty",
    "name": "Camera private 1",
    "is_archive_recording": true,
    "archive_storage_days": 90,
    "group_type": "private",
    "is_user_owner": true,
    "is_need_replace": false,
    "latitude": 53.145212,
    "longitude": 25.274193,
    "network_device": {
        "mac": "D4:E8:53:7C:42:31",
        "serial_number": "G98474831"
    },
    "folder": null,
    "external_id": "bd0a951f-40a2-4edf-b213-bcd90ff5273d"
}

422  Unprocessable Entity

Returns a JSON object with an error.
For more information, see General information > Validation.

JSON
{
    "message": "No informative message is provided here",
    "errors": {
        "any_key": [
            "The reason for the error is described here"
        ]
    }
}
cURL
Bash
curl -k --request GET \
	--url 'https://your-domain/api/v1/billing/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "id": 0,
    "external_id": "string",
    "mac": "string"
}'
PHP
PHP
$data = array (
  'id' => 0,
  'external_id' => 'string',
  'mac' => '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/billing/cameras', false, $context);