health_get_spo2
Retrieve nightly SpO2 readings from the local cache, or fetch fresh data by enabling live mode. Ideal for sleep and respiratory health trend analysis in your Google Health data.
Instructions
Get nightly SpO2 (blood oxygen saturation) data.
Returns data from the local cache by default. Run health_sync first to populate it.
SpO2 data is sparse: only nights with on-wrist sleep tracking produce readings.
Args: start_date: Start date as "YYYY-MM-DD", "YYYY-MM", or "30d". Default: last 30 days. end_date: End date as "YYYY-MM-DD". Default: today. live: If true, re-fetch this window from the API before reading the cache.
Returns one entry per night with avg SpO2 percentage, and a pair of bounds whose meaning depends on which provider recorded the night: min/max are the observed nightly extremes, avg_ci_low/avg_ci_high are a confidence interval on that night's average. Only an import fills the first pair and only this API fills the second, so a night covered by both carries all four - which is the ordinary case wherever an imported history overlaps the synced one. They are different measurements: never compare or average across them. Normal range: 95-100%. Below 90% may indicate sleep apnea.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | ||
| end_date | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |