Get quantity series
API Reference
GET /quantity/{type}
Standalone HealthKit quantity series in columnar shape.
GET
Get quantity series
type is a full HKQuantityTypeIdentifier... string — get the list from /quantity-types. Short forms (StepCount) are also accepted when they map unambiguously.
Query parameters
| Name | Type | Default | Range |
|---|---|---|---|
from | ISO-8601 UTC | to - 7 days | any |
to | ISO-8601 UTC | now | any |
limit | integer | 5000 | 1-50000 |
offset | integer | 0 | ≥ 0 |
t is integer seconds offset from from (the response’s window start), not from a workout’s start.
durarray — included iff any sample has non-zero duration. Step-count and active-energy typically do; HR is instant.srcarray — included iff any sample’s source differs fromid: 0.metadatamap — sparse, present iff any sample has metadata.
MCP examples
Last week’s heart rate samples:get_quantity_series({ "type": "HKQuantityTypeIdentifierHeartRate", "from": "2026-05-04T00:00:00Z", "to": "2026-05-11T00:00:00Z" })
Resting HR over the past 60 days:
get_quantity_series({ "type": "HKQuantityTypeIdentifierRestingHeartRate", "from": "2026-03-11T00:00:00Z", "to": "2026-05-11T00:00:00Z" })
Errors
404 unknown_type— identifier doesn’t match any known quantity type.
Path Parameters
Full HKQuantityTypeIdentifier (short forms like StepCount also accepted).
Query Parameters
ISO-8601 UTC window start. Default: to - 7 days.
ISO-8601 UTC window end. Default: now.
Required range:
1 <= x <= 50000Required range:
x >= 0Response
Quantity series