---
title: "Compare slicer time and material estimates with what prints actually used, by printer, by material and over time."
method: GET
path: "/api/Analytics/accuracy"
tags: ["Analytics"]
---

# Compare slicer time and material estimates with what prints actually used, by printer, by material and over time.

`GET /api/Analytics/accuracy`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Analytics/accuracy`
- 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`

Estimate accuracy overall, by printer and over time.

- PrintLogApiModelsDTOsAnalyticsAccuracyResponse: The shape NEVER varies by viewport. The phone renders by-printer bars instead of the scatter from this same payload; a viewport-dependent response would break caching and typed clients (spec §11).
  - `from` string, date-time, nullable
  - `to` string, date-time, nullable
  - `timeZone` string, nullable
  - `granularity` string, nullable
  - `timeAccuracyMedian` 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
  - `materialAccuracyMedian` 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
  - `timeScatter` PrintLogApiServicesAnalyticsScatterBin[], nullable
    - `estimated` number, double
    - `actual` number, double
    - `count` integer
  - `byPrinter` PrintLogApiModelsDTOsAnalyticsAccuracyGroup[], nullable
    - `scope` string, nullable
    - `key` string, nullable
    - `label` string, nullable
    - `medianRatio` number, double, nullable
    - `sampleSize` integer
    - `suppressedForSmallSample` boolean
  - `byMaterial` PrintLogApiModelsDTOsAnalyticsAccuracyGroup[], nullable
    - `scope` string, nullable
    - `key` string, nullable
    - `label` string, nullable
    - `medianRatio` number, double, nullable
    - `sampleSize` integer
    - `suppressedForSmallSample` boolean
  - `biasTrend` PrintLogApiModelsDTOsAnalyticsAccuracyTrendBucket[], nullable
    - `index` integer
    - `localStart` string, date
    - `medianRatio` number, double, nullable
    - `sampleSize` integer
  - `callouts` PrintLogApiModelsDTOsAnalyticsAccuracyCallout[], nullable
    - `scope` string, nullable
    - `key` string, nullable
    - `label` string, nullable
    - `dimension` string, nullable
    - `medianRatio` number, double
    - `sampleSize` integer
  - `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)
