get_structured_export
Export selected Apple Health metrics as clean structured JSON for any date range, with pagination to handle large datasets. Specify metrics and dates to get exactly the data you need.
Instructions
Return clean structured JSON for the chosen metrics/date range. Paginated: the result carries nextCursor when more metrics remain — pass it back as cursor for the next page. Prefer naming the metrics you need and a date range; calling it bare over a full history is a lot of data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | YYYY-MM-DD | |
| limit | No | Maximum data points to return (default 365, max 3000). The server rolls up rather than truncating. | |
| start | No | YYYY-MM-DD | |
| cursor | No | Opaque cursor from a previous call's nextCursor. | |
| metrics | No | ||
| granularity | No | Roll daily values up before returning them. 'auto' (default) picks the finest granularity that fits the response budget, so a multi-year range returns monthly points instead of thousands of daily ones. |