---
title: "Get Print Statistics for the current user."
method: GET
path: "/api/Prints/stats"
tags: ["Prints"]
---

# Get Print Statistics for the current user.

`GET /api/Prints/stats`

## Request

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

## Query parameters

- `fromDate` string, date-time
- `toDate` string, date-time

## Response `200`

OK

- PrintLogApiModelsDTOsPrintPrintStatistic[]
  - `id` integer
  - `printerID` integer
  - `startDate` string, date-time, nullable: Nullable, because Print.StartDate is. Declared non-nullable, an undated print serialized as 0001-01-01T00:00:00+00:00, which every consumer reads as a real date in year 1: it sorts first, falls outside every range filter, and renders as a garbage date. Handle the null case explicitly — never with .Value or ?? default.
  - `status` 1 | 2 | 3 | 4 | 5 | 6: Sent as an integer: `1` = Pending, `2` = Printing, `3` = Success, `4` = Cancelled, `5` = Failed, `6` = PartialSuccess.
  - `estimatedPrintTimeInSeconds` integer, nullable
  - `estimatedFilamentUsageMg` integer, nullable
  - `printTimeInSeconds` integer, nullable
  - `filamentUsageMg` integer, nullable: Filament usage in milligrams

## Other responses

- `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)
