Traccar Reports API

Reports generation

GitHub OpenAPI

Operations 13

GET /reports/combined Fetch a combined route, Events and Positions report for the Devices or Groups #
GET /reports/route Fetch a list of Positions within the time period for the Devices or Groups #
GET /reports/route/{type} Download the route report as a spreadsheet or send it by email #
GET /reports/events Fetch a list of Events within the time period for the Devices or Groups #
GET /reports/events/{type} Download the events report as a spreadsheet or send it by email #
GET /reports/geofences Fetch geofence enter/exit intervals within the time period for Devices or Groups #
GET /reports/summary Fetch a list of ReportSummary within the time period for the Devices or Groups #
GET /reports/summary/{type} Download the summary report as a spreadsheet or send it by email #
GET /reports/trips Fetch a list of ReportTrips within the time period for the Devices or Groups #
GET /reports/trips/{type} Download the trips report as a spreadsheet or send it by email #
GET /reports/stops Fetch a list of ReportStops within the time period for the Devices or Groups #
GET /reports/stops/{type} Download the stops report as a spreadsheet or send it by email #
GET /reports/devices/{type} Download the devices report as a spreadsheet or send it by email #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/traccar:traccar-reports-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

traccar-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Traccar Reports 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: Reports
  description: Reports generation
paths:
  /reports/combined:
    get:
      operationId: getReportsCombined
      summary: Fetch a combined route, Events and Positions report for the Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CombinedReportItem'
        '401':
          description: Unauthorized
          content: {}
  /reports/route:
    get:
      operationId: getReportsRoute
      summary: Fetch a list of Positions within the time period for the Devices or Groups
      deprecated: true
      description: Deprecated. Use _/positions_ with _deviceId_, _from_, _to_, and _limit_ instead. At least one _deviceId_ or one _groupId_ must be passed.
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Position'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Position'
        '401':
          description: Unauthorized
          content: {}
  /reports/route/{type}:
    get:
      operationId: getReportsRouteType
      summary: Download the route report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
  /reports/events:
    get:
      operationId: getReportsEvents
      summary: Fetch a list of Events within the time period for the Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: type
        in: query
        description: '% can be used to return events of all types'
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Event'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Event'
        '401':
          description: Unauthorized
          content: {}
  /reports/events/{type}:
    get:
      operationId: getReportsEventsType
      summary: Download the events report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: type
        in: query
        description: Event types to include; `%` matches all
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: alarm
        in: query
        description: Alarm types to include
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
  /reports/geofences:
    get:
      operationId: getReportsGeofences
      summary: Fetch geofence enter/exit intervals within the time period for Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: geofenceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportGeofences'
        '401':
          description: Unauthorized
          content: {}
  /reports/summary:
    get:
      operationId: getReportsSummary
      summary: Fetch a list of ReportSummary within the time period for the Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportSummary'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportSummary'
        '401':
          description: Unauthorized
          content: {}
  /reports/summary/{type}:
    get:
      operationId: getReportsSummaryType
      summary: Download the summary report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: daily
        in: query
        description: Aggregate values by day instead of the full period
        schema:
          type: boolean
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
  /reports/trips:
    get:
      operationId: getReportsTrips
      summary: Fetch a list of ReportTrips within the time period for the Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportTrips'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportTrips'
        '401':
          description: Unauthorized
          content: {}
  /reports/trips/{type}:
    get:
      operationId: getReportsTripsType
      summary: Download the trips report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
  /reports/stops:
    get:
      operationId: getReportsStops
      summary: Fetch a list of ReportStops within the time period for the Devices or Groups
      description: At least one _deviceId_ or one _groupId_ must be passed
      x-mcp: true
      tags:
      - Reports
      parameters:
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportStops'
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReportStops'
        '401':
          description: Unauthorized
          content: {}
  /reports/stops/{type}:
    get:
      operationId: getReportsStopsType
      summary: Download the stops report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      - name: deviceId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: groupId
        in: query
        style: form
        schema:
          type: array
          items:
            type: integer
      - name: from
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
        required: true
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          content: {}
  /reports/devices/{type}:
    get:
      operationId: getReportsDevicesType
      summary: Download the devices report as a spreadsheet or send it by email
      description: Use `type=xlsx` to download the report, `type=mail` to deliver it by email asynchronously.
      tags:
      - Reports
      parameters:
      - name: type
        in: path
        required: true
        schema:
          type: string
          enum:
          - xlsx
          - mail
      responses:
        '200':
          description: Spreadsheet attachment
          content:
            application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
              schema:
                type: string
                format: binary
        '204':
          description: Report queued for email delivery
          content: {}
        '401':
          description: Unauthorized
          content: {}
        '404':
          description: Not found
          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: {}
    ReportStops:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the stop
        deviceName:
          type: string
          description: Human readable device name
        duration:
          type: integer
          description: Stop duration in seconds
        startTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        address:
          type: string
          description: Address where the stop occurred
        lat:
          type: number
          description: Stop latitude in decimal degrees
        lon:
          type: number
          description: Stop longitude in decimal degrees
        endTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        spentFuel:
          type: number
          description: in liters
        engineHours:
          type: integer
          description: Engine hours accumulated during the stop
    ReportTrips:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the trip
        deviceName:
          type: string
          description: Human readable device name
        business:
          type: boolean
          description: Business attribute from the trip's starting position. False if absent.
        maxSpeed:
          type: number
          description: in knots
        averageSpeed:
          type: number
          description: in knots
        distance:
          type: number
          description: in meters
        spentFuel:
          type: number
          description: in liters
        duration:
          type: integer
          description: Trip duration in seconds
        startTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        startAddress:
          type: string
          description: Address where the trip started
        startLat:
          type: number
          description: Starting latitude in decimal degrees
        startLon:
          type: number
          description: Starting longitude in decimal degrees
        endTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        endAddress:
          type: string
          description: Address where the trip ended
        endLat:
          type: number
          description: Ending latitude in decimal degrees
        endLon:
          type: number
          description: Ending longitude in decimal degrees
        driverUniqueId:
          type: string
          description: Unique identifier of the driver assigned to the trip
        driverName:
          type: string
          description: Name of the driver assigned to the trip
    ReportSummary:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the summary row
        deviceName:
          type: string
          description: Human readable device name
        maxSpeed:
          type: number
          description: in knots
        averageSpeed:
          type: number
          description: in knots
        distance:
          type: number
          description: in meters
        spentFuel:
          type: number
          description: in liters
        engineHours:
          type: integer
          description: Engine hours accumulated for the report period
    Event:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Unique event identifier
        type:
          type: string
          description: Event type name
        eventTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        deviceId:
          type: integer
          format: int64
          description: Device associated with the event
        positionId:
          type: integer
          format: int64
          description: Position record linked to the event when applicable
        geofenceId:
          type: integer
          format: int64
          description: Geofence referenced by the event if any
        maintenanceId:
          type: integer
          description: Maintenance record tied to the event
        attributes:
          type: object
          properties: {}
          description: Additional event-specific attributes
    ReportGeofences:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the geofence interval
        deviceName:
          type: string
          description: Human readable device name
        geofenceId:
          type: integer
          format: int64
          description: Geofence identifier
        startTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
        endTime:
          type: string
          description: in ISO 8601 format. eg. `1963-11-22T18:30:00Z`
          format: date-time
    CombinedReportItem:
      type: object
      properties:
        deviceId:
          type: integer
          format: int64
          description: Device identifier for the report item
        route:
          type: array
          description: Simplified route as `[longitude, latitude]` pairs
          items:
            type: array
            items:
              type: number
        events:
          type: array
          items:
            $ref: '#/components/schemas/Event'
        positions:
          type: array
          items:
            $ref: '#/components/schemas/Position'
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    ApiKey:
      type: http
      scheme: bearer