measurements
measurements
Page 20 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": 457,
"userId": 155,
"kind": "weight",
"value": 71.9,
"unit": "kg",
"measuredAt": "2025-10-12T07:47:45.230Z",
"createdAt": "2025-10-12T08:07:02.416Z"
},
{
"id": 458,
"userId": 155,
"kind": "thigh",
"value": 40.6,
"unit": "cm",
"measuredAt": "2026-01-04T15:34:29.940Z",
"createdAt": "2026-01-04T15:51:52.839Z"
},
{
"id": 459,
"userId": 155,
"kind": "waist",
"value": 97.8,
"unit": "cm",
"measuredAt": "2026-02-26T01:31:16.907Z",
"createdAt": "2026-02-26T01:55:00.607Z"
}
],
"meta": {
"page": 20,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=20&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=21&limit=24",
"prev": "/api/v1/measurements?page=19&limit=24"
}
}