Skip to content

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

Server

Server information

Operations

Session

User session management

Operations

Devices

Device management

Operations

Groups

Group management

Operations

Users

User management

Operations

Permissions

User permissions and other object linking

Operations

Positions

Retrieving raw location information

Operations

Events

Retrieving event information

Operations

Reports

Reports generation

Operations

Notifications

User notifications management

Operations

Geofences

Geofence management

Operations

Commands

Sending commands to devices and stored command management

Operations

Attributes

Computed attributes management

Operations

Drivers

Drivers management

Operations

Maintenance

Maintenance management

Operations

Calendars

Calendar management

Operations

Statistics

Retrieving server statistics

Operations

Fetch server Statistics

Request

Security
BasicAuth or ApiKey
Query
fromstring(date-time)required

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

tostring(date-time)required

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

curl -i -X GET \
  -u <username>:<password> \
  'https://docs2.mygpsapi.com/_mock/openapi/statistics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'

Responses

OK

Bodyapplication/jsonArray [
captureTimestring(date-time)

in ISO 8601 format. eg. 1963-11-22T18:30:00Z

activeUsersinteger
activeDevicesinteger
requestsinteger
messagesReceivedinteger
messagesStoredinteger
]
Response
application/json
[ { "captureTime": "2019-08-24T14:15:22Z", "activeUsers": 0, "activeDevices": 0, "requests": 0, "messagesReceived": 0, "messagesStored": 0 } ]