example-data.com
Menu
Browse docs and collections

measurements

measurements

Page 28 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": 649,
      "userId": 214,
      "kind": "thigh",
      "value": 75.1,
      "unit": "cm",
      "measuredAt": "2026-03-20T16:53:07.756Z",
      "createdAt": "2026-03-20T17:23:30.020Z"
    },
    {
      "id": 650,
      "userId": 215,
      "kind": "height",
      "value": 189.5,
      "unit": "cm",
      "measuredAt": "2025-08-29T02:19:26.527Z",
      "createdAt": "2025-08-29T03:14:44.064Z"
    },
    {
      "id": 651,
      "userId": 215,
      "kind": "resting_hr",
      "value": 49.4,
      "unit": "bpm",
      "measuredAt": "2025-07-02T04:43:11.238Z",
      "createdAt": "2025-07-02T04:46:33.231Z"
    }
  ],
  "meta": {
    "page": 28,
    "limit": 24,
    "total": 760,
    "totalPages": 32
  },
  "links": {
    "self": "/api/v1/measurements?page=28&limit=24",
    "first": "/api/v1/measurements?page=1&limit=24",
    "last": "/api/v1/measurements?page=32&limit=24",
    "next": "/api/v1/measurements?page=29&limit=24",
    "prev": "/api/v1/measurements?page=27&limit=24"
  }
}