Logo
Api

Stats

Returns aggregated stats for the user identified by the Bearer API key.

GET
/api/external/stats
AuthorizationBearer <token>

In: header

Query Parameters

timeRange?string
Default"today"
Value in"today" | "yesterday" | "week" | "month" | "month_to_date" | "last_month" | "year_to_date" | "last_12_months" | "all_time"
midnightOffsetSeconds?integer

Offset in seconds from midnight for day boundaries

Response Body

curl -X GET "https://ziit.app/api/external/stats?timeRange=today&midnightOffsetSeconds=0"
Empty
Empty
Empty
Empty