Server information
- Deletes all the Positions of a device in the time span specified
Fetches a list of Positions
Delete a Position
Deletes all the Positions...
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
Request
We strongly recommend using Traccar WebSocket API instead of periodically polling positions endpoint. Without any params, it returns a list of last known positions for all the user's Devices. from and to fields are not required with id.
Security
BasicAuth or ApiKey
- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/positions
- Doha Dynamics API (Production)https://mygpsapi.com/api/positions
- 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/positions?deviceId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&id=0'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/positions
- Doha Dynamics API (Production)https://mygpsapi.com/api/positions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/positions?deviceId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'- Mock serverhttps://docs2.mygpsapi.com/_mock/openapi/positions/{id}
- Doha Dynamics API (Production)https://mygpsapi.com/api/positions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://docs2.mygpsapi.com/_mock/openapi/positions/{id}'