开始使用
  • English
  • 简体中文
前往官网
开始使用
  • English
  • 简体中文
前往官网
  • 开始使用
  • 核心概念
  • 开发指南
  • 设备能力与事件参考
  • API 参考
    • 公共约定
    • HTTP 开发规范
    • accessToken(管理员 Token)
    • API 请求示例
    • 错误码
    • 接口调用限额
    • 账号与授权
    • 设备接口
    • 直播地址
    • 推送配置
    • 云存储
    • 资源池额度管理
    • AI 分析
    • AI 智见
      • bindDeviceAiInsight(开通 AI 智见套餐)
      • unbindDeviceAiInsight(解绑设备 AI 智见套餐)
      • queryDeviceAiInsight(查询设备生效中的 AI 智见)
      • queryDeviceAiInsightList(查询设备 AI 智见列表)
      • queryAiInsightCount(查询 AI 智见剩余额度)
      • queryUnusedAiInsightList(查询库存 AI 智见)
      • setDeviceAiInsightSwitch(设置 AI 智见开关)
      • activateDeviceAiInsight(立即启用 AI 智见套餐)
      • setDeviceAiLanguage(设置通道 AI 语种)
      • addAiInsightFeature(新增人脸成员)
      • updateAiInsightFeature(修改人脸成员)
      • addAiInsightFaceImages(追加注册图)
      • deleteAiInsightFaceImages(删除注册图)
      • listAiInsightFeature(查询已注册人脸)
      • deleteAiInsightFeature(删除人脸成员)
      • listAiInsightUnknownFace(查询未分类人脸)
      • deleteAiInsightUnknownFace(删除未分类人脸)
      • queryCondensedRecordBitmap(查询智见录像掩码)
      • getCondensedRecords(查询智见录像片段)
      • searchAiAlarmMessageByPage(关键词智能搜索告警消息)
      • getAlarmMessageStatistics(告警统计与安全报告)
      • reportAiMsgFeedback(反馈 AI 智慧消息准确性)
    • 旧版接口(不再维护)
  • SDK 与工具
  • 方案
  • 平台与支持
本页目录
功能详情
请求地址
最小权限
传入参数
样例输入
返回 data
样例输出
错误码
说明
相关

getCondensedRecords(查询智见录像片段)

getCondensedRecords:查询智见录像片段

功能详情

分页查询 AI 智见或智见事件云存储生效期间生成的事件图片集锦或事件录像集锦片段列表。

请求地址

POST https://openapi-[DataCenter].easy4ip.com/openapi/getCondensedRecords

最小权限

管理员或子账号 token。权限见 权限码。

传入参数

参数名参数类型是否必填参数说明
tokenString是管理员或子账号 accessToken
deviceIdString是设备序列号
channelIdString是通道号;集成须传。子账号 Resource 须含 cam:{deviceId}:{channelId} 取值 ≥0 的整数。
productIdString否物模型产品 ID(可选)
beginTimeString是开始时间 取值 yyyy-MM-dd HH:mm:ss。
endTimeString是结束时间;须晚于或等于 beginTime 取值 yyyy-MM-dd HH:mm:ss。
packageTypeString是同 queryCondensedRecordBitmap 取值 aiInsight、aiCloudRecord。
recordIdString否分页游标:首页传 -1 或不传;翻页传上一页最后一条的 recordId
countInteger是本页条数 取值 ≥1。

公共请求字段与签名见 签名约定 与 公共请求负载。

样例输入

{
  "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
  "system": {
    "ver": "1.0",
    "appId": "lcdxxxxxxxxx",
    "sign": "xjhCQBoJ9hRDsCjyDcHjtDNzRZ3ZJezcawsfWeiaoxU=",
    "time": 1706511734,
    "nonce": "f5a1ae2d-c09c-4d39-a744-83a5c2c653c2"
  },
  "params": {
    "token": "<yourAccessToken>",
    "deviceId": "TESTQWERXXXX",
    "channelId": "0",
    "beginTime": "2023-08-17 10:22:23",
    "endTime": "2023-09-17 10:22:23",
    "packageType": "aiCloudRecord",
    "recordId": "-1",
    "count": 10
  }
}

返回 data

字段名字段类型字段说明
recordsArray智见集锦列表
records[].recordIdLong智见集锦 id
records[].productIdString物模型产品 id(如有)
records[].deviceIdString设备序列号
records[].channelIdString通道号
records[].channelNameString通道名称
records[].encryptModeString加密模式:0 默认加密;1 用户加密
records[].createTimeString创建时间,格式 yyyyMMddTHHmmss
records[].sizeInteger文件大小(byte)
records[].lengthInteger时长(秒)
records[].thumbUrlString缩略图 URL
records[].typeString检测类型摘要(如人、车、宠物、包裹)
records[].recordPathString云端路径
records[].recordRegionIdString录像分区 id
records[].regionString资源区域 id(下载授权定位)
records[].expireTimeString过期时间戳
records[].streamAddrString下载域名
records[].userIdString用户 id(客户端播放)
records[].akString鉴权 AK
records[].fileTokenString文件鉴权 token
records[].businessTypeString业务类型,如 712(m3u)、713(dav)
records[].methodString0 旧版智见集锦;1 新方案
records[].mp4VideosArray帧选/分段信息(新方案)
records[].mp4Videos[].tagsString / Array标签(人、车、宠物、包裹等)
records[].mp4Videos[].timePointString时间点
records[].mp4Videos[].durationString / Integer片段时长
records[].mp4Videos[].summaryStringAI 摘要文案
records[].mp4Videos[].createTimeString / Long创建时间
records[].mp4Videos[].updateTimeString / Long更新时间
records[].mp4Videos[].expireTimeString / Long过期时间戳

样例输出

{
  "id": "d5c287b4-5b2f-4f03-baf5-8032c5c354af",
  "result": {
    "data": {
      "records": [
        {
          "recordId": "3304819",
          "deviceId": "TESTQWERXXXX",
          "channelId": "0",
          "encryptMode": "1",
          "channelName": "门店摄像头1",
          "createTime": "20260423T000000",
          "size": 238037,
          "length": 22,
          "thumbUrl": "http://example.com/thumb",
          "type": "包裹",
          "recordPath": "xxxxxxxxxxxxxx",
          "recordRegionId": "xxxxx|xxxx|2|xxxxx",
          "region": "1",
          "expireTime": "",
          "streamAddr": "https://example.imou.com:443",
          "userId": "2212322",
          "ak": "tIiasd23dfsdfsdg",
          "fileToken": "sdhasbdkUIKIsdljfoij34",
          "businessType": "712",
          "method": "0",
          "mp4Videos": [
            {
              "duration": 24,
              "summary": "办公室内多人活动",
              "expireTime": 1779850855000,
              "createTime": 1777258855000,
              "timePoint": "10:00",
              "updateTime": 1777258855000,
              "tags": [
                "人"
              ]
            }
          ]
        }
      ]
    },
    "code": "0",
    "msg": "操作成功"
  }
}

错误码

本接口可能返回下列码;完整分组见 错误码 与 能力错误码。

网关与鉴权(SN / TK / OP)

错误码错误码说明下一步
SN1001签名校验异常按 签名 核对 sign
TK1002token 无效或过期重新获取 accessToken
OP1002缺少必填参数补必填字段
OP1003参数不合法按本页参数表核对
OP1009权限不足核对 token 与设备绑定/分享权限
OP1013接口总次数超限降低调用频率
OP1014接口日限额超限见 接口调用限额
DV1007设备离线等设备上线

更多见 错误码 · OP/SN/TK。

子账号(SUB)

错误码错误码说明下一步
SUB1001–SUB1002子账号无接口权限在 addPolicy 中补策略
SUB1005子账号 token 过期重新 subAccountToken
SUB1006子账号与设备无授权核对 Resource 与设备序列号
SUB1008子账号未绑定应用先创建并绑定子账号

更多见 错误码 · SUB。

设备访问与通道(DV10xx)

错误码错误码说明下一步
DV1007设备离线或超时等设备上线
DV1009设备正忙稍后重试
DV1012分享/授权设备权限不足核对子账号 Permission / Resource
DV1019能力集不支持确认型号与能力列表
DV1020通道离线检查通道状态
DV1026不支持此功能换接口或升级固件
DV1028未绑定或通道不存在核对 deviceId / channelId

更多见 错误码 · DV。

云录像(RC)

错误码错误码说明下一步
RC1001云录像不存在核对时间与 token
OP1019该时间段无录像换时间范围或确认云存储计划

更多见 错误码 · RC。

说明

子账号 token 须具备最小权限:Permission 为 RecordReplay,Resource 为 cam:{deviceId}:{channelId}。见 权限码。

相关

  • 开发规范
  • AI 智见 API
  • queryCondensedRecordBitmap:查询智见录像掩码
  • 请求约定
  • 签名
queryCondensedRecordBitmap(查询智见录像掩码)
searchAiAlarmMessageByPage(关键词智能搜索告警消息)