The /dataRange endpoint enables retrieval of a user's earliest and latest times for calibration, EGV, and event records. This can be used to efficiently pull historical data and determine whether new data is available.
GET /v2/users/self/dataRange
OAuth 2.0 bearer token; see the Authentication section for details on this workflow.
No query parameters are required for this endpoint.
Ok
object Set of dates and times bounding the user's historical calibration records (nullable) | |||||||||
| |||||||||
object Set of dates and times bounding the user's historical EGV records (nullable) | |||||||||
| |||||||||
object Set of dates and times bounding the user's historical event records (nullable) | |||||||||
|
curl -i -X GET \ https://api.dexcom.com/v2/users/self/dataRange \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{- "calibrations": {
- "start": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}, - "end": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}
}, - "egvs": {
- "start": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}, - "end": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}
}, - "events": {
- "start": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}, - "end": {
- "systemTime": "2023-01-01T09:12:35",
- "displayTime": "2023-01-01T09:12:35"
}
}
}