measurements
measurements
Page 11 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": 241,
"userId": 81,
"kind": "thigh",
"value": 79.1,
"unit": "cm",
"measuredAt": "2025-09-19T17:30:34.785Z",
"createdAt": "2025-09-19T18:11:58.817Z"
},
{
"id": 242,
"userId": 81,
"kind": "weight",
"value": 49.6,
"unit": "kg",
"measuredAt": "2026-01-01T18:20:50.307Z",
"createdAt": "2026-01-01T19:05:25.114Z"
},
{
"id": 243,
"userId": 82,
"kind": "waist",
"value": 104.3,
"unit": "cm",
"measuredAt": "2025-09-07T05:56:21.266Z",
"createdAt": "2025-09-07T05:56:44.734Z"
}
],
"meta": {
"page": 11,
"limit": 24,
"total": 760,
"totalPages": 32
},
"links": {
"self": "/api/v1/measurements?page=11&limit=24",
"first": "/api/v1/measurements?page=1&limit=24",
"last": "/api/v1/measurements?page=32&limit=24",
"next": "/api/v1/measurements?page=12&limit=24",
"prev": "/api/v1/measurements?page=10&limit=24"
}
}