getSleep
Retrieve sleep metrics for one night or up to 14 nights, including bedtime, wake time, sleep stages, score, heart rate, SpO2, respiration, and Garmin feedback.
Instructions
Sleep for one night (date: the morning you woke up), or for up to 14 nights (fromDate and toDate), yyyy-MM-dd, as one compact row per night: bedtime and wake (local HH:mm), hours of sleep, deep, light, REM and awake, the sleep score and its quality, the sleep need (hours), average heart rate, average and lowest SpO2, average respiration, awake count, average sleep stress and Garmin's feedback. Missing values are left out, and a night without sleep data has only its date. Set raw=true for Garmin's JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return Garmin's raw JSON instead of the summary | |
| date | No | Date yyyy-MM-dd | |
| toDate | No | Last date yyyy-MM-dd, with fromDate | |
| fromDate | No | First date yyyy-MM-dd, with toDate |