Intraday samples
get_intradayFetches intraday HRV samples from your Apple Health data, returning hourly averages or raw readings to track heart rate variability changes throughout the day.
Instructions
Samples WITHIN a day, for the series that record several per day (HRV).
granularity:
"hourly"(default) — one row per hour that HAS samples (UTC hour boundaries, shown in local time), the mean SDNN of that hour and itssample_count. Right for "how did my HRV move through the day"."raw"— one row per sample, newest first.
The Watch measures HRV a handful of times a day, not continuously (more
during a Breathe session), so most days have about 8-14 rows either way.
limit counts ROWS, not days: the default 168 is roughly two to three
weeks, not one. How far back the history goes depends on what this
phone uploaded, not on a fixed window — read coverage.oldest_available
and coverage.more_available. For one number per day use get_metric.
Reads YOUR data only: HRV is never shared between partners.
rows is a table in columns order (local_time, sdnn_ms, plus
sample_count for hourly). Carries a coverage block: quote
coverage.days_covered (distinct days, not the row count) beside any number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | ||
| limit | No | ||
| series | No | hrv_sdnn | |
| granularity | No | hourly |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||