Server information
Traccar (6.10.0)
Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free demo servers. For production use you can install your own server or get a subscription service.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://docs2.mygpsapi.com/_mock/openapi
Doha Dynamics API (Production)
https://mygpsapi.com/api
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/reports/route
- Doha Dynamics API (Production)https://mygpsapi.com/api/reports/route
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/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": {} } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/reports/events
- Doha Dynamics API (Production)https://mygpsapi.com/api/reports/events
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/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": {} } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/reports/summary
- Doha Dynamics API (Production)https://mygpsapi.com/api/reports/summary
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/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 } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/reports/trips
- Doha Dynamics API (Production)https://mygpsapi.com/api/reports/trips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/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" } ]
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/reports/stops
- Doha Dynamics API (Production)https://mygpsapi.com/api/reports/stops
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/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 } ]