measurements
measurements
Page 5 of 32.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/measurements?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/measurements?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/measurements.d.ts https://example-data.com/types/measurements.d.ts
import type { Measurement, ListEnvelope } from "./types/measurements";
const res = await fetch(
"https://example-data.com/api/v1/measurements?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Measurement>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/measurements",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 97,
"userId": 37,
"kind": "resting_hr",
"value": 69.5,
"unit": "bpm",
"measuredAt": "2026-02-05T02:13:39.574Z",
"createdAt": "2026-02-05T02:15:49.891Z"
},
{
"id": 98,
"userId": 37,
"kind": "height",
"value": 158.3,
"unit": "cm",
"measuredAt": "2026-04-05T04:59:37.957Z",
"createdAt": "2026-04-05T05:19:50.004Z"
},
{
"id": 99,
"userId": 37,
"kind": "chest",
"value": 117.5,
"unit": "cm",
"measuredAt": "2025-12-27T05:48:35.751Z",
"createdAt": "2025-12-27T05:54:35.879Z"
}
],
"meta": {
"page": 5,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=5&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=6&limit=24",
"prev": "/api/v1/measurements?page=4&limit=24"
}
}