Logo
Api

Stats

Retrieve user coding statistics for a specific time range

GET
/api/external/stats

Authorization

AuthorizationRequiredBearer <token>

In: header

Query Parameters

timeRangestring
Default: "today"Value in: "today" | "yesterday" | "week" | "month" | "month_to_date" | "last_month" | "year_to_date" | "last_12_months" | "all_time"
midnightOffsetSecondsinteger

Offset in seconds from midnight for day boundaries

Response Body

Statistics successfully retrieved

curl -X GET "https://ziit.app/api/external/stats?timeRange=today&midnightOffsetSeconds=0" \
  -H "Authorization: Bearer <token>"
Empty