example-data.com

goals / #164

userId
Vincenza Zemlak-Collier @vincenza_zemlak-collier
name
Do 100 push-ups
category
fitness
targetValue
100
currentValue
56.8
unit
reps
deadline
2026-08-23
isCompleted
false
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/goals/164" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/goals/164"
);
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/164"
);
const goal = (await res.json()) as Goal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/goals/164"
)
goal = res.json()
{
  "id": 164,
  "userId": 168,
  "name": "Do 100 push-ups",
  "category": "fitness",
  "targetValue": 100,
  "currentValue": 56.8,
  "unit": "reps",
  "deadline": "2026-08-23",
  "isCompleted": false,
  "createdAt": "2025-10-29T16:19:26.857Z"
}
Draftbit