GPS tracking server API documentation.
iTransfer (5.0)
Download OpenAPI description
Overview
Languages
Servers
Demo Server 1
https://demo.traccar.org/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
- Demo Server 1https://demo.traccar.org/api/positions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://demo.traccar.org/api/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": {} } ]
- Demo Server 1https://demo.traccar.org/api/positions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://demo.traccar.org/api/positions?deviceId=0&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'