example-data.com
Menu
Browse docs and collections

Overview

measurements / #420

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/measurements/420" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/measurements/420"
);
const measurement = 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 } from "./types/measurements";

const res = await fetch(
  "https://example-data.com/api/v1/measurements/420"
);
const measurement = (await res.json()) as Measurement;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/measurements/420"
)
measurement = res.json()

Response

{
  "id": 420,
  "userId": 143,
  "kind": "body_fat_pct",
  "value": 20.7,
  "unit": "%",
  "measuredAt": "2026-01-24T17:45:48.686Z",
  "createdAt": "2026-01-24T18:23:54.855Z"
}