# Traccar API

> 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

- Category: [Geocoding](https://www.openparable.com/apis/category/geocoding)
- Provider: traccar.org
- Authentication: HTTP Basic
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://demo.traccar.org/api
- Documentation: https://www.traccar.org/
- OpenAPI description: https://api.apis.guru/v2/specs/traccar.org/5.6/openapi.json
- Version: 5.6
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://demo.traccar.org/api/attributes/computed" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
```

## Endpoints

- `GET /attributes/computed` — Fetch a list of Attributes
- `POST /attributes/computed` — Create an Attribute
- `PUT /attributes/computed/{id}` — Update an Attribute
- `DELETE /attributes/computed/{id}` — Delete an Attribute
- `GET /calendars` — Fetch a list of Calendars
- `POST /calendars` — Create a Calendar
- `PUT /calendars/{id}` — Update a Calendar
- `DELETE /calendars/{id}` — Delete a Calendar
- `GET /commands` — Fetch a list of Saved Commands
- `POST /commands` — Create a Saved Command
- `GET /commands/send` — Fetch a list of Saved Commands supported by Device at the moment
- `POST /commands/send` — Dispatch commands to device
- `GET /commands/types` — Fetch 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 /devices` — Fetch a list of Devices
- `POST /devices` — Create a Device
- `PUT /devices/{id}` — Update a Device
- `DELETE /devices/{id}` — Delete a Device
- `PUT /devices/{id}/accumulators` — Update total distance and hours of the Device
- `GET /drivers` — Fetch a list of Drivers
- `POST /drivers` — Create a Driver
- `PUT /drivers/{id}` — Update a Driver
- `DELETE /drivers/{id}` — Delete a Driver
- `GET /events/{id}`
- `GET /geofences` — Fetch a list of Geofences
- `POST /geofences` — Create a Geofence
- `PUT /geofences/{id}` — Update a Geofence
- `DELETE /geofences/{id}` — Delete a Geofence
- `GET /groups` — Fetch a list of Groups
- `POST /groups` — Create a Group
- `PUT /groups/{id}` — Update a Group
- `DELETE /groups/{id}` — Delete a Group
- `GET /maintenance` — Fetch a list of Maintenance
- `POST /maintenance` — Create a Maintenance
- `PUT /maintenance/{id}` — Update a Maintenance
- `DELETE /maintenance/{id}` — Delete a Maintenance
- `GET /notifications` — Fetch a list of Notifications
- `POST /notifications` — Create a Notification
- `POST /notifications/test` — Send test notification to current user via Email and SMS
- `GET /notifications/types` — Fetch a list of available Notification types
- `PUT /notifications/{id}` — Update a Notification
- `DELETE /notifications/{id}` — Delete a Notification
- `POST /permissions` — Link an Object to another Object
- `DELETE /permissions` — Unlink an Object from another Object
- `GET /positions` — Fetches a list of Positions
- `GET /reports/events` — Fetch a list of Events within the time period for the Devices or Groups
- `GET /reports/route` — Fetch a list of Positions within the time period for the Devices or Groups
- `GET /reports/stops` — Fetch a list of ReportStops within the time period for the Devices or Groups
- `GET /reports/summary` — Fetch a list of ReportSummary within the time period for the Devices or Groups
- `GET /reports/trips` — Fetch a list of ReportTrips within the time period for the Devices or Groups
- `GET /server` — Fetch Server information
- `PUT /server` — Update Server information
- `GET /session` — Fetch Session information
- `POST /session` — Create a new Session
- `DELETE /session` — Close the Session
- `GET /statistics` — Fetch server Statistics
- `GET /users` — Fetch a list of Users
- `POST /users` — Create 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.

## Similar geocoding APIs

- [Bing Maps](https://www.openparable.com/apis/bing-maps): Create/customize digital maps based on Bing Maps data
- [ip-api](https://www.openparable.com/apis/ip): Find location with IP address or domain
- [OpenStreetMap](https://www.openparable.com/apis/openstreetmap): Navigation, geolocation and geographical data
- [GeographQL](https://www.openparable.com/apis/geographql): A Country, State, and City GraphQL API
- [IP Address Details](https://www.openparable.com/apis/ip-address-details): Find geolocation with ip address
- [ipapi.co](https://www.openparable.com/apis/ipapi-co): Find IP address location information
- [Mapbox](https://www.openparable.com/apis/mapbox): Create/customize beautiful digital maps
- [HERE Maps](https://www.openparable.com/apis/here-maps): Create/customize digital maps based on HERE Maps data
- [Kakao Maps](https://www.openparable.com/apis/kakao-maps): Kakao Maps provide multiple APIs for Korean maps
- [MapQuest](https://www.openparable.com/apis/mapquest): To access tools and resources to map the world
- [IP2Location](https://www.openparable.com/apis/ip2location): IP geolocation web service to get more than 55 parameters
- [Google Earth Engine](https://www.openparable.com/apis/google-earth-engine): A cloud-based platform for planetary-scale environmental data analysis

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/traccar (OpenParable). Cite the canonical URL above.
