---
title: "Get the total amount of filament used by a user between a date range."
method: GET
path: "/api/Users/{userId}/total-filament-usage"
tags: ["UsersPrints"]
---

# Get the total amount of filament used by a user between a date range.

`GET /api/Users/{userId}/total-filament-usage`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Users/{userId}/total-filament-usage`
- Auth: one of:
  - none
  - 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`

## Path parameters

- `userId` integer, required

## Query parameters

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

## Response `200`

OK

- PrintLogApiModelsDTOsPrintSinglePrintStat: Used to encapsulate a single statistic, be it total print time, filament usage, etc.
  - `stat` string, nullable

---

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