measurements
measurements
Page 18 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": 409,
"userId": 139,
"kind": "arm",
"value": 41.6,
"unit": "cm",
"measuredAt": "2025-08-21T02:30:50.564Z",
"createdAt": "2025-08-21T03:22:56.100Z"
},
{
"id": 410,
"userId": 139,
"kind": "thigh",
"value": 42,
"unit": "cm",
"measuredAt": "2025-07-01T20:04:42.634Z",
"createdAt": "2025-07-01T20:09:40.618Z"
},
{
"id": 411,
"userId": 139,
"kind": "resting_hr",
"value": 65.2,
"unit": "bpm",
"measuredAt": "2025-06-19T06:26:41.379Z",
"createdAt": "2025-06-19T07:09:08.658Z"
}
],
"meta": {
"page": 18,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=18&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=19&limit=24",
"prev": "/api/v1/measurements?page=17&limit=24"
}
}