Glucose history and time in range
get_glucose_historyRetrieve up to 12 hours of glucose readings with time-in-range calculated against your target band. Collection gaps are listed separately, and the response reports the actual covered range when the requested data is truncated.
Instructions
Glucose readings over the last N hours (max 12), with time-in-range computed against the account's own target band. Upstream holds only about 12 hours of detailed data and ignores any longer request, so the response always states the range it actually covered and sets truncated when that is less than asked — report that range, never the one requested. Collection gaps are listed separately and are not interpolated across; a percentage over a series with gaps describes only the covered time. Informational only: not a medical device, and not a basis for any treatment decision. This is not an HbA1c or GMI estimate — those need weeks of data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit for the returned values. Storage is always mg/dL; this only affects display. | mg/dL |
| hours | No | Hours of history to cover, 1 to 12. |