example-data.com
Menu
Browse docs and collections

measurements

measurements

Page 31 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": 721,
      "userId": 237,
      "kind": "hip",
      "value": 74.3,
      "unit": "cm",
      "measuredAt": "2026-04-02T16:18:37.510Z",
      "createdAt": "2026-04-02T17:03:29.178Z"
    },
    {
      "id": 722,
      "userId": 238,
      "kind": "arm",
      "value": 43.9,
      "unit": "cm",
      "measuredAt": "2026-02-15T09:21:28.577Z",
      "createdAt": "2026-02-15T09:21:32.751Z"
    },
    {
      "id": 723,
      "userId": 239,
      "kind": "height",
      "value": 163,
      "unit": "cm",
      "measuredAt": "2025-11-14T17:01:11.560Z",
      "createdAt": "2025-11-14T17:02:51.704Z"
    }
  ],
  "meta": {
    "page": 31,
    "limit": 24,
    "total": 760,
    "totalPages": 32
  },
  "links": {
    "self": "/api/v1/measurements?page=31&limit=24",
    "first": "/api/v1/measurements?page=1&limit=24",
    "last": "/api/v1/measurements?page=32&limit=24",
    "next": "/api/v1/measurements?page=32&limit=24",
    "prev": "/api/v1/measurements?page=30&limit=24"
  }
}