measurements
measurements
Page 22 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": 505,
"userId": 171,
"kind": "arm",
"value": 49.6,
"unit": "cm",
"measuredAt": "2025-06-26T19:29:30.736Z",
"createdAt": "2025-06-26T19:30:13.127Z"
},
{
"id": 506,
"userId": 171,
"kind": "hip",
"value": 84.3,
"unit": "cm",
"measuredAt": "2026-04-15T10:40:55.869Z",
"createdAt": "2026-04-15T11:14:52.634Z"
},
{
"id": 507,
"userId": 171,
"kind": "height",
"value": 184.3,
"unit": "cm",
"measuredAt": "2025-09-24T15:32:59.218Z",
"createdAt": "2025-09-24T15:59:46.960Z"
}
],
"meta": {
"page": 22,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=22&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=23&limit=24",
"prev": "/api/v1/measurements?page=21&limit=24"
}
}