Raw data points
get_data_pointsFetch raw Fitbit or Pixel Watch records for a chosen data type, such as sleep stages, workouts, weight, or heart metrics, newest first with paging for longer histories.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataType": "<dataType>"
},
"name": "get_data_points"
}
}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 |