Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/traccar:traccar-positions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Traccar Positions API
description: 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.
contact:
name: Traccar Support
url: https://www.traccar.org/
email: support@traccar.org
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
version: 6.17.0
servers:
- url: https://demo.traccar.org/api
description: Demo Server 1
- url: https://demo2.traccar.org/api
description: Demo Server 2
- url: https://demo3.traccar.org/api
description: Demo Server 3
- url: https://demo4.traccar.org/api
description: Demo Server 4
- url: https://server.traccar.org/api
description: Subscription Server
- url: http://{host}:{port}/api
description: Other Server
variables:
host:
default: localhost
port:
enum:
- '8082'
- '80'
default: '8082'
security:
- BasicAuth: []
- ApiKey: []
tags:
- name: Positions
description: Retrieving raw location information
paths:
/positions:
get:
operationId: getPositions
summary: Fetch a list of Positions
description: 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_. Historical queries with _from_ and _to_ can return a large number of results; use _limit_ to control the response size.
x-mcp: true
tags:
- Positions
parameters:
- name: deviceId
in: query
description: _deviceId_ is optional, but requires the _from_ and _to_ parameters when used
schema:
type: integer
- name: from
in: query
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
schema:
type: string
format: date-time
- name: to
in: query
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
schema:
type: string
format: date-time
- name: id
in: query
description: To fetch one or more positions. Multiple params can be passed like `id=31&id=42`
schema:
type: integer
- name: limit
in: query
description: Maximum number of positions to return. If not specified, the server configuration limit applies.
schema:
type: integer
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Position'
text/csv:
schema:
type: array
items:
$ref: '#/components/schemas/Position'
application/gpx+xml:
schema:
type: array
items:
$ref: '#/components/schemas/Position'
'401':
description: Unauthorized
content: {}
delete:
operationId: deletePositions
summary: Deletes all the Positions of a device in the time span specified
description: ''
tags:
- Positions
parameters:
- name: deviceId
in: query
description: ''
schema:
type: integer
required: true
- name: from
in: query
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
schema:
type: string
format: date-time
required: true
- name: to
in: query
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
schema:
type: string
format: date-time
required: true
responses:
'204':
description: No Content
content: {}
'400':
description: Bad request
content: {}
/positions/{id}:
delete:
operationId: deletePositionsId
summary: Delete a Position
tags:
- Positions
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'204':
description: No Content
content: {}
'404':
description: Not found
content: {}
/positions/kml:
get:
operationId: getPositionsKml
summary: Export Positions as KML
tags:
- Positions
parameters:
- name: deviceId
in: query
required: true
schema:
type: integer
- name: from
in: query
required: true
schema:
type: string
format: date-time
- name: to
in: query
required: true
schema:
type: string
format: date-time
responses:
'200':
description: OK
content:
application/vnd.google-earth.kml+xml:
schema:
type: string
format: binary
'401':
description: Unauthorized
content: {}
/positions/csv:
get:
operationId: getPositionsCsv
summary: Export Positions as CSV
tags:
- Positions
parameters:
- name: deviceId
in: query
required: true
schema:
type: integer
- name: geofenceId
in: query
schema:
type: integer
- name: from
in: query
required: true
schema:
type: string
format: date-time
- name: to
in: query
required: true
schema:
type: string
format: date-time
responses:
'200':
description: OK
content:
text/csv:
schema:
type: string
format: binary
'401':
description: Unauthorized
content: {}
/positions/gpx:
get:
operationId: getPositionsGpx
summary: Export Positions as GPX
tags:
- Positions
parameters:
- name: deviceId
in: query
required: true
schema:
type: integer
- name: from
in: query
required: true
schema:
type: string
format: date-time
- name: to
in: query
required: true
schema:
type: string
format: date-time
responses:
'200':
description: OK
content:
application/gpx+xml:
schema:
type: string
format: binary
'401':
description: Unauthorized
content: {}
components:
schemas:
Position:
type: object
properties:
id:
type: integer
format: int64
description: Unique position record identifier
deviceId:
type: integer
format: int64
description: Identifier of the device that reported this position
protocol:
type: string
description: Device protocol name that produced the message
deviceTime:
type: string
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
format: date-time
fixTime:
type: string
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
format: date-time
serverTime:
type: string
description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
format: date-time
valid:
type: boolean
description: Indicates whether the position was marked as valid by the device
latitude:
type: number
description: Latitude in decimal degrees
longitude:
type: number
description: Longitude in decimal degrees
altitude:
type: number
description: Altitude above sea level in meters
speed:
type: number
description: in knots
course:
type: number
description: Heading in degrees (0-360) where 0 is true north
address:
type: string
description: Resolved reverse-geocoded address if available
accuracy:
type: number
description: Estimated positional accuracy in meters when provided
network:
type: object
description: Network metadata (e.g. cell or Wi‑Fi data) supplied by the device
properties: {}
geofenceIds:
type: array
items:
type: integer
description: List of geofence ids applicable to this position
attributes:
type: object
description: Custom key-value attributes sent by the device or enrichments
properties: {}
securitySchemes:
BasicAuth:
type: http
scheme: basic
ApiKey:
type: http
scheme: bearer