IotHub
  1. history
IotHub
  • README
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • deviceTraffic
      POST
    • deviceSensorData
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push&Webhook
    • README
  • video
    • H5 page
    • H5 Page-V2
    • history
      • README
      • playBackList
        POST
      • historicalUpload
        POST
      • playBack
        POST
      • replaySet
        POST
      • taskPage
        POST
      • taskStop
        POST
      • taskDelete
        POST
    • live
      • liveVideo
      • liveVideoControl
    • getNodes
      POST
  • alarm
    • Alert Types
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk「Deprecated」
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
    • captureRecord
  • fleet
    • faceRecordPage
    • rfidPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. history

playBackList

POST
/v2/openapi/video/history/list

fileUrl is empty, indicating that no historical videos have been uploaded. You can upload device history videos through "/v2/openapp/video/history/upload". You can view all upload records through "/v2/openapi/video/history/upload/task".

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params

Body Params application/json

Example
{
    "deviceId": "string",
    "channelId": 1,
    "startTime": "string",
    "endTime": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/video/history/list' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string",
    "channelId": 1,
    "startTime": "string",
    "endTime": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
  "code": 0,
  "data": [
    {
      "deviceName": "",
      "channelId": 0,
      "fileSize": 0.0,
      "startTime": "",
      "endTime": "",
      "fileUrl": ""
    }
  ],
  "msg": ""
}
Modified at 2025-09-19 11:23:31
Previous
README
Next
historicalUpload
Built with