- README
- Update Record
- token
- customer
- device
- fence
- push
- video
- alarm
- audio
- gallery
- fleet
- gps
- Protocol AnalysisPOST
historyData
Singapore
Singapore
POST
/v2/openapi/gps/history
Request
Header Params
Authorization
string
required
Body Params application/json
pageSize
integer | null
optional
Default:
10
pageIndex
integer | null
optional
Default:
1
deviceId
string | null
required
startTime
string | null
required
The query interval must be less than 30 days
endTime
string | null
required
The query interval must be less than 30 days
type
string | null
optional
Example
{
"pageSize": "10",
"pageIndex": "1",
"deviceId": "string",
"startTime": "string",
"endTime": "string",
"type": "string"
}
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/gps/history' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageSize": "10",
"pageIndex": "1",
"deviceId": "string",
"startTime": "string",
"endTime": "string",
"type": "string"
}'
Responses
🟢200Success
application/json
Body
code
integer | null
optional
data
object (PageResult«ApiGpsDataVO»)
optional
records
array[object (ApiGpsDataVO) {21}] | null
optional
total
integer | null
optional
size
integer | null
optional
current
integer | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": {
"records": [
{
"deviceName": "",
"deviceId": "",
"reportTime": "",
"deviceTime": "",
"speed": 0,
"course": 0,
"acc": 0,
"lat": 0,
"lon": 0,
"num": 0,
"signal": 0,
"quantity": 0,
"voltage": 0,
"elec": 0,
"type": 0,
"actual": false,
"voltageLevel": 0,
"rssi": 0,
"disarmingStatus": 0,
"chargeStatus": 0,
"blockedStatus": 0
}
],
"total": 0,
"size": 0,
"current": 0
},
"msg": ""
}
Modified at 2025-04-24 02:13:46