Skip to content

Traccar API

by traccar.org

HTTP BasicHTTPSGeocoding
Open documentation ↗

Overview

Open Source GPS Tracking Platform

Traccar is a geocoding API from traccar.org. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 61 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Geocoding
Base URL
https://demo.traccar.org/api
Version
5.6
Endpoints
61
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://demo.traccar.org/api/attributes/computed" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://demo.traccar.org/api/attributes/computed", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://demo.traccar.org/api/attributes/computed",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/attributes/computedFetch a list of Attributes
POST/attributes/computedCreate an Attribute
PUT/attributes/computed/{id}Update an Attribute
DELETE/attributes/computed/{id}Delete an Attribute
GET/calendarsFetch a list of Calendars
POST/calendarsCreate a Calendar
PUT/calendars/{id}Update a Calendar
DELETE/calendars/{id}Delete a Calendar
GET/commandsFetch a list of Saved Commands
POST/commandsCreate a Saved Command
GET/commands/sendFetch a list of Saved Commands supported by Device at the moment
POST/commands/sendDispatch commands to device
GET/commands/typesFetch a list of available Commands for the Device or all possible Commands if Device ommited
PUT/commands/{id}Update a Saved Command
DELETE/commands/{id}Delete a Saved Command
GET/devicesFetch a list of Devices
POST/devicesCreate a Device
PUT/devices/{id}Update a Device
DELETE/devices/{id}Delete a Device
PUT/devices/{id}/accumulatorsUpdate total distance and hours of the Device
GET/driversFetch a list of Drivers
POST/driversCreate a Driver
PUT/drivers/{id}Update a Driver
DELETE/drivers/{id}Delete a Driver
GET/events/{id}—
GET/geofencesFetch a list of Geofences
POST/geofencesCreate a Geofence
PUT/geofences/{id}Update a Geofence
DELETE/geofences/{id}Delete a Geofence
GET/groupsFetch a list of Groups
POST/groupsCreate a Group
PUT/groups/{id}Update a Group
DELETE/groups/{id}Delete a Group
GET/maintenanceFetch a list of Maintenance
POST/maintenanceCreate a Maintenance
PUT/maintenance/{id}Update a Maintenance
DELETE/maintenance/{id}Delete a Maintenance
GET/notificationsFetch a list of Notifications
POST/notificationsCreate a Notification
POST/notifications/testSend test notification to current user via Email and SMS
GET/notifications/typesFetch a list of available Notification types
PUT/notifications/{id}Update a Notification
DELETE/notifications/{id}Delete a Notification
POST/permissionsLink an Object to another Object
DELETE/permissionsUnlink an Object from another Object
GET/positionsFetches a list of Positions
GET/reports/eventsFetch a list of Events within the time period for the Devices or Groups
GET/reports/routeFetch a list of Positions within the time period for the Devices or Groups
GET/reports/stopsFetch a list of ReportStops within the time period for the Devices or Groups
GET/reports/summaryFetch a list of ReportSummary within the time period for the Devices or Groups
GET/reports/tripsFetch a list of ReportTrips within the time period for the Devices or Groups
GET/serverFetch Server information
PUT/serverUpdate Server information
GET/sessionFetch Session information
POST/sessionCreate a new Session
DELETE/sessionClose the Session
GET/statisticsFetch server Statistics
GET/usersFetch a list of Users
POST/usersCreate a User
PUT/users/{id}Update a User
DELETE/users/{id}Delete a User

Questions

Does the Traccar API need an API key?

Yes. The Traccar API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the Traccar API support HTTPS?

Yes, the Traccar API is served over HTTPS.

How many endpoints does the Traccar API have?

Its OpenAPI description lists 61 endpoints in version 5.6. All of them are shown on this page.

What are alternatives to the Traccar API?

Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.

Compare alternatives →

Listed from APIs.guru (CC0).