---
title: "Get per-printer usage, success rate and maintenance for the filtered window, including idle printers."
method: GET
path: "/api/Analytics/printers"
tags: ["Analytics"]
---

# Get per-printer usage, success rate and maintenance for the filtered window, including idle printers.

`GET /api/Analytics/printers`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Analytics/printers`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

Covers the authenticated user's own prints only. Every analytics endpoint takes the same
filter: a half-open `fromDate`/`toDate` range (omit both for all time), an IANA
`timeZone` for bucketing (default UTC), optional `printerIds`,
`filamentIds`, `projectIds` and `statuses`, a `granularity`
(Auto, Day, Week or Month) and `comparePrevious` to add the preceding window of the
same length. Ids the caller does not own match nothing.

## Query parameters

- `FromDate` string, date-time
- `ToDate` string, date-time
- `TimeZone` string
- `PrinterIds` integer[]
- `FilamentIds` string[]
- `ProjectIds` string[]
- `Statuses` PrintLogApiModelsPrintPrintStatus[]
- `Granularity` 0 | 1 | 2 | 3: Sent as an integer: `0` = Auto, `1` = Day, `2` = Week, `3` = Month.
- `ComparePrevious` boolean
- `HasRange` boolean

## Response `200`

One row per printer, with a usage series and maintenance events.

- PrintLogApiModelsDTOsAnalyticsPrintersResponse
  - `from` string, date-time, nullable
  - `to` string, date-time, nullable
  - `timeZone` string, nullable
  - `granularity` string, nullable
  - `currency` string, nullable
  - `printers` PrintLogApiModelsDTOsAnalyticsPrinterRow[], nullable
    - `printerId` integer
    - `name` string, nullable
    - `isIdle` boolean
    - `printCount` integer
    - `successRatePercent` number, double, nullable
    - `printTimeSeconds` integer
    - `materialMg` integer
    - `avgDurationSeconds` number, double, nullable
    - `cost` number, double, nullable
    - `maintenanceCost` number, double, nullable
    - `utilizationPercent` number, double, nullable
    - `costPerPrintHour` number, double, nullable
  - `timeSeries` PrintLogApiModelsDTOsAnalyticsPrinterSeriesBucket[], nullable
    - `index` integer
    - `localStart` string, date
    - `printSecondsByPrinterId` object, nullable
  - `fleetUtilizationPercent` PrintLogApiModelsDTOsAnalyticsMetric: A scalar metric. Previous is null unless comparePrevious was requested.
    - `value` number, double, nullable
    - `previous` number, double, nullable
    - `coverage` PrintLogApiModelsDTOsAnalyticsCoverage: Population is named explicitly ("prints", "spools", "printers") because a count of excluded spools is not a count of excluded prints.
      - `population` string, nullable
      - `counted` integer
      - `total` integer
      - `undatedCount` integer
      - `exclusions` PrintLogApiModelsDTOsAnalyticsCoverageExclusion[], nullable
        - `reason` string, nullable
        - `count` integer
  - `maintenance` PrintLogApiModelsDTOsAnalyticsMaintenanceEvent[], nullable
    - `id` string, nullable
    - `printerId` integer
    - `date` string, date
    - `category` string, nullable
    - `description` string, nullable
    - `cost` number, double, nullable
  - `coverage` PrintLogApiModelsDTOsAnalyticsCoverage: Population is named explicitly ("prints", "spools", "printers") because a count of excluded spools is not a count of excluded prints.
    - `population` string, nullable
    - `counted` integer
    - `total` integer
    - `undatedCount` integer
    - `exclusions` PrintLogApiModelsDTOsAnalyticsCoverageExclusion[], nullable
      - `reason` string, nullable
      - `count` integer

## Other responses

- `400`: The filter is invalid, for example a one-sided or reversed date range.
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
