Skip to main content
Use GET /v1/stats to pull your study progress data. The endpoint returns completion metrics, your current streak, total minutes studied, and a per-day heatmap that powers the activity grid in the app.

Endpoint

Query Parameters

string
default:"week"
The time window to aggregate stats over. Accepted values: today, week, month, all.

Response Fields

number
Total number of scheduled study blocks in the requested period.
number
Number of blocks that have been marked as completed within the period.
number
Ratio of completed blocks to total blocks, expressed as a decimal between 0 and 1.
number
Your current consecutive-day completion streak. Resets if you miss a day entirely.
number
Total study time accumulated across all completed blocks in the period, in minutes.
object
A map of calendar dates to integer completion counts. Keys are ISO 8601 dates in YYYY-MM-DD format; values are the number of blocks completed on that day.

Example Response

Code Examples

The heatmap object only includes dates that have at least one completed block. Days with zero completions are omitted from the map entirely.