example-data.com

goals / #183

userId
Hilda Crooks @hilda_crooks61
name
Bench press bodyweight
category
fitness
targetValue
97.5
currentValue
93.6
unit
kg
deadline
2026-12-23
isCompleted
false
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/goals/183" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/goals/183"
);
const goal = await res.json();
import type { Goal } from "https://example-data.com/types/goals.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/goals/183"
);
const goal = (await res.json()) as Goal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/goals/183"
)
goal = res.json()
{
  "id": 183,
  "userId": 187,
  "name": "Bench press bodyweight",
  "category": "fitness",
  "targetValue": 97.5,
  "currentValue": 93.6,
  "unit": "kg",
  "deadline": "2026-12-23",
  "isCompleted": false,
  "createdAt": "2026-05-08T20:29:49.883Z"
}
Draftbit