GPS tracking server API documentation.
iTransfer (5.0)
Download OpenAPI description
Overview
Languages
Servers
Demo Server 1
https://demo.traccar.org/api
- Demo Server 1https://demo.traccar.org/api/reports/route
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/reports/route?deviceId=0&groupId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Response
[ { "id": 0, "deviceId": 0, "protocol": "string", "deviceTime": "2019-08-24T14:15:22Z", "fixTime": "2019-08-24T14:15:22Z", "serverTime": "2019-08-24T14:15:22Z", "valid": true, "latitude": 0, "longitude": 0, "altitude": 0, "speed": 0, "course": 0, "address": "string", "accuracy": 0, "network": {}, "geofenceIds": [ … ], "attributes": {} } ]
- Demo Server 1https://demo.traccar.org/api/reports/events
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/reports/events?deviceId=0&groupId=0&type=string&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Response
[ { "id": 0, "type": "string", "eventTime": "2019-08-24T14:15:22Z", "deviceId": 0, "positionId": 0, "geofenceId": 0, "maintenanceId": 0, "attributes": {} } ]
- Demo Server 1https://demo.traccar.org/api/reports/summary
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/reports/summary?deviceId=0&groupId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Response
[ { "deviceId": 0, "deviceName": "string", "maxSpeed": 0, "averageSpeed": 0, "distance": 0, "spentFuel": 0, "engineHours": 0 } ]
- Demo Server 1https://demo.traccar.org/api/reports/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/reports/trips?deviceId=0&groupId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Response
[ { "deviceId": 0, "deviceName": "string", "maxSpeed": 0, "averageSpeed": 0, "distance": 0, "spentFuel": 0, "duration": 0, "startTime": "2019-08-24T14:15:22Z", "startAddress": "string", "startLat": 0, "startLon": 0, "endTime": "2019-08-24T14:15:22Z", "endAddress": "string", "endLat": 0, "endLon": 0, "driverUniqueId": "string", "driverName": "string" } ]
- Demo Server 1https://demo.traccar.org/api/reports/stops
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/reports/stops?deviceId=0&groupId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'Response
[ { "deviceId": 0, "deviceName": "string", "duration": 0, "startTime": "2019-08-24T14:15:22Z", "address": "string", "lat": 0, "lon": 0, "endTime": "2019-08-24T14:15:22Z", "spentFuel": 0, "engineHours": 0 } ]