Get material consumption by material type, brand and color, the most-used spools, how long each spool will last, and waste.
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.
Request
- Base URL: https://api.3dprintlog.com
- URL: https://api.3dprintlog.com/api/Analytics/materials
- 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
Sent as an integer: 0 = Auto, 1 = Day, 2 = Week, 3 = Month.
True when both ends of the range are set. The attribute is what lets callers write filter.FromDate.Value after gating on this — without it the compiler cannot see that a property getter implies anything about two other properties, and every such dereference raises CS8629.
Response
Material usage for the filtered window.
Changes
No recorded changes to this operation across all 1 revision of this API.