measurements
measurements
Page 17 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": 385,
"userId": 131,
"kind": "hip",
"value": 95,
"unit": "cm",
"measuredAt": "2026-03-07T22:29:39.287Z",
"createdAt": "2026-03-07T23:16:52.927Z"
},
{
"id": 386,
"userId": 131,
"kind": "height",
"value": 186,
"unit": "cm",
"measuredAt": "2025-10-17T04:25:45.773Z",
"createdAt": "2025-10-17T04:29:26.984Z"
},
{
"id": 387,
"userId": 132,
"kind": "weight",
"value": 48.6,
"unit": "kg",
"measuredAt": "2026-03-05T16:20:24.991Z",
"createdAt": "2026-03-05T16:35:29.601Z"
}
],
"meta": {
"page": 17,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=17&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=18&limit=24",
"prev": "/api/v1/measurements?page=16&limit=24"
}
}