查询客流数据
POST
https://api2.hik-cloud.com/api/v1/open/systems/videos/actions/countingSearch
根据条件获取客流数据
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api2.hik-cloud.com/api/v1/open/systems/videos/actions/countingSearch' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceSerial": "xxxxx",
"channelNo": 1,
"statisticType": "enternum",
"reportType": "daily",
"timeSpanList": [
{
"startTime": "2020-12-23T10:00:00+08:00",
"endTime": "2020-12-23T23:59:59+08:00"
}
],
"triggerPeopleCountingData": true,
"pagingSearchCond": {
"searchId": "xxxx",
"searchResultPosition": 0,
"maxResults": 100
},
"minTimeInterval": "quarter",
"child": false,
"faceAttribute": {
"faceExpression": "poker",
"gender": "female",
"mask": "yes",
"ageGroup": "young",
"glass": "yes"
},
"regionId": "1,2"
}'
响应示例响应示例
{
"code": 200,
"message": "操作成功",
"data": [
{
"timeSpan": {
"startTime": "2020-12-23T12:00:00",
"endTime": "2020-12-23T12:59:59"
},
"enterCount": 11,
"exitCount": 11,
"peoplePassingCount": 11,
"duplicatePeopleCount": 11,
"faceExpressionList": [
{
"value": "",
"count": 11
}
],
"genderList": [
{
"value": "",
"count": 11
}
],
"maskList": [
{
"value": "",
"count": 11
}
],
"ageGroupList": [
{
"value": "",
"count": 11
}
],
"glassList": [
{
"value": "",
"count": 11
}
],
"regionList": [
{
"id": 1,
"enterCount": 11,
"exitCount": 11
}
]
}
]
}
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer {{access_token}}
Body 参数application/json
返回响应
修改于 2022-05-25 09:52:50