Get

Function

This API is used to get AI > Cross Counting Scenario > Statistics configuration parameters.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
channel“CH1”…”CH1x”
“IP_CH1”…” IP_CH1x”
“WIFI_CH1”…” WIFI_CH1x”
The number of channels depends on the capabilities of the device.
String arrayEach array bit represents a channel with a string.
DVR/NVR need;
IPC only use CH1

Sample:

POST /API/AI/Scenario/CC/Statistics/Get HTTP/1.1
{
    "result": "success",
    "data": {
        ["CH1"]
    }
}

Response Message

Parameter Description

Table 2

ParameterRangeTypeDescription
ChannelsInt arrayquery channel
GroupsInt arrayqueryable group
ReportType"Day","Week","Month","Year"stringquery type
DetectionType"Motion","Person","Vehicle"stringdetection type
Date10stringcurrent date

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "version": "success",
    "data": {
        "Channels": [
            0,
            3
        ],
        "Groups": [],
        "ReportType": "Week",
        "DetectionType": "Person",
        "Date": "2021-01-14"
    }
}

Error Code

See Response Messages Body and Common error_code for more information.