Traccar
traccar · Location
Open Source GPS Tracking Platform
Authentication
Sample Requests
Without params, it returns a list of Calendars the user has access to
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/traccar.org/5.6/calendars?all=true&userId=1"
import requests
params = {
"all": "true",
"userId": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/traccar.org/5.6/calendars",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/traccar.org/5.6/calendars');
url.searchParams.set('all', 'true');
url.searchParams.set('userId', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/traccar.org/5.6/calendars")
q := baseURL.Query()
q.Set("all", "true")
q.Set("userId", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/traccar.org/5.6/calendars")
uri.query = URI.encode_www_form({
"all" => "true",
"userId" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/traccar.org/5.6/calendars?" . http_build_query([
"all" => "true",
"userId" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Without params, it returns a list of Saved Commands the user has access to
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/traccar.org/5.6/commands?all=true&userId=1&groupId=1&refresh=true&deviceId=1"
import requests
params = {
"all": "true",
"userId": "1",
"groupId": "1",
"refresh": "true",
"deviceId": "1"
}
response = requests.get(
"https://api.apis.guru/v2/specs/traccar.org/5.6/commands",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/traccar.org/5.6/commands');
url.searchParams.set('all', 'true');
url.searchParams.set('userId', '1');
url.searchParams.set('groupId', '1');
url.searchParams.set('refresh', 'true');
url.searchParams.set('deviceId', '1');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/traccar.org/5.6/commands")
q := baseURL.Query()
q.Set("all", "true")
q.Set("userId", "1")
q.Set("groupId", "1")
q.Set("refresh", "true")
q.Set("deviceId", "1")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/traccar.org/5.6/commands")
uri.query = URI.encode_www_form({
"all" => "true",
"userId" => "1",
"groupId" => "1",
"refresh" => "true",
"deviceId" => "1"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/traccar.org/5.6/commands?" . http_build_query([
"all" => "true",
"userId" => "1",
"groupId" => "1",
"refresh" => "true",
"deviceId" => "1"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Without any params, returns a list of the user's devices
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/traccar.org/5.6/devices?id=1&all=true&userId=1&uniqueId=example"
import requests
params = {
"id": "1",
"all": "true",
"userId": "1",
"uniqueId": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/traccar.org/5.6/devices",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/traccar.org/5.6/devices');
url.searchParams.set('id', '1');
url.searchParams.set('all', 'true');
url.searchParams.set('userId', '1');
url.searchParams.set('uniqueId', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/traccar.org/5.6/devices")
q := baseURL.Query()
q.Set("id", "1")
q.Set("all", "true")
q.Set("userId", "1")
q.Set("uniqueId", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/traccar.org/5.6/devices")
uri.query = URI.encode_www_form({
"id" => "1",
"all" => "true",
"userId" => "1",
"uniqueId" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/traccar.org/5.6/devices?" . http_build_query([
"id" => "1",
"all" => "true",
"userId" => "1",
"uniqueId" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Traccar?
Traccar is a Location API. Developers commonly use location APIs for:
- tracking assets and vehicles in real time
- building delivery and logistics apps
- finding nearby businesses or services
- geo-fencing and location-based notifications
- address validation and autocomplete
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Traccar is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide