Skip to main content
Interval Statistics

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

from_timestamp
string<date-time>
required

Start time of the query range in UTC, inclusive

Examples:

"2006-01-02T15:04:05"

"2006-01-02T15:04:05Z"

to_timestamp
string<date-time>
required

End time of the query range in UTC, non-inclusive

Examples:

"2006-01-02T15:04:05"

"2006-01-02T15:04:05Z"

interval
enum<string>
required

Interval of the query

Available options:
1h
exclude_manual
boolean
default:false

Exclude manual metrics from the statistics

types
enum<string>[]
required
Minimum array length: 1
Available options:
steps,
distance_total,
distance_walking,
distance_cycling,
distance_running,
calories_burned_basal,
calories_burned_active,
calories_burned_total,
heartrate,
heartrate_max,
heartrate_min,
heartrate_resting,
sleep_skin_temperature_deviation,
hrv_rmssd,
hrv_sdnn,
duration_low_intensity,
duration_moderate_intensity,
duration_high_intensity
providers
enum<string>[]
Available options:
strava,
health_connect,
fitbit,
garmin,
huawei,
dexcom,
whoop,
withings,
suunto,
google_health,
apple,
freestyle_libre,
oura,
polar,
coros,
ultrahuman,
samsung_health_data,
luna,
map_my_fitness,
application
include_record_ids
boolean
default:false

Whether to include the record IDs in the response

device_types
enum<string>[]

Device types to include in the statistics

Available options:
unknown,
phone,
watch,
scale,
ring,
head_mounted,
fitness_band,
chest_strap,
smart_display,
accessory

Response

OK

from_timestamp
string<date-time>
required
Example:

"2006-01-02T00:00:00Z"

statistics
object[] | null
required
to_timestamp
string<date-time>
required
Example:

"2006-01-02T00:00:00Z"