Raw data points
get_data_pointsRetrieves raw health data records for a specified type, newest first, with optional date filters and pagination; use rollup tools for high-volume heart-rate or step data.
Instructions
Raw records for a data type, newest first: sleep sessions with stages, exercise sessions, weight entries, daily resting heart rate, HRV, SpO2, ECG and so on. Heart-rate and steps produce many points per day, so prefer the rollup tools for those. Pass nextPageToken back as pageToken to read more. For electrocardiogram the API only filters by start, treated as UTC, and end is ignored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Local end. A date-only value includes that whole day. Defaults to start. | |
| start | No | Local start, YYYY-MM-DD or YYYY-MM-DDTHH:mm:ss. Omit start and end to get the most recent records. | |
| filter | No | Advanced: raw AIP-160 filter that overrides start/end. | |
| dataType | Yes | ||
| pageSize | No | Default 50 (sleep and exercise are capped at 25). | |
| pageToken | No |