IotHub
  1. video
IotHub
  • README
  • Update Record
  • 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
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
      POST
    • playBackList
      POST
    • historicalUpload
      POST
    • playBack
      POST
    • replaySet
      POST
    • taskPage
      POST
    • taskDelete
      POST
    • getNodes
      POST
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. video

historicalUpload

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/video/history/upload

The access time interval for interfaces with the same parameters is 10 seconds.

response: data : taskId

Request

Header Params
Authorization
string 
required
Body Params application/json
deviceId
string  | null 
required
deviceId
channelId
integer  | null 
required
channelId
>= 1
startTime
string  | null 
required
Download file start time Device Time Zone yyyy-MM-dd HH:mm:ss
endTime
string  | null 
required
Download file end time Device Time Zone yyyy-MM-dd HH:mm:ss
fileSize
number  | null 
optional
File size in MB units
1.7MB per second estimated
Example
{
    "deviceId": "string",
    "channelId": 1,
    "startTime": "string",
    "endTime": "string",
    "fileSize": 0
}

Request 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/upload' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string",
    "channelId": 1,
    "startTime": "string",
    "endTime": "string",
    "fileSize": 0
}'

Responses

🟢200Success
application/json
Body
taskID
code
integer  | null 
optional
data
string  | null 
optional
taskId
msg
string  | null 
optional
Example
{
  "code": 0,
  "data": "",
  "msg": ""
}
Modified at 2025-06-06 08:23:23
Previous
playBackList
Next
playBack
Built with