Skip to main content
GET
Get habit statistics

Authorizations

X-API-Key
string
header
required

API key generated from our app (Settings > API). Only one key can be active at a time.

Path Parameters

habitId
string
required

The unique identifier of the habit

Query Parameters

startDate
string<date>

Start date for the statistics range (YYYY-MM-DD format). Defaults to the habit's start date.

endDate
string<date>

End date for the statistics range (YYYY-MM-DD format). Defaults to today.

Response

Aggregated habit statistics for the requested period

data
object