example-data.com
Menu
Browse docs and collections

Overview

measurements / #477

measurements #477

userId
Alex Lang @alex_lang85
kind
weight
value
77
unit
kg
measuredAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/measurements/477"
);
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/477"
);
const measurement = (await res.json()) as Measurement;

Python example

import requests

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

Response

{
  "id": 477,
  "userId": 163,
  "kind": "weight",
  "value": 77,
  "unit": "kg",
  "measuredAt": "2025-11-10T12:11:14.014Z",
  "createdAt": "2025-11-10T12:50:55.984Z"
}