example-data.com

goals / #185

userId
D'angelo Kling @dangelo_kling6
name
Run a 5K
category
fitness
targetValue
5
currentValue
0.9
unit
km
deadline
2026-06-03
isCompleted
false
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/goals/185"
)
goal = res.json()
{
  "id": 185,
  "userId": 188,
  "name": "Run a 5K",
  "category": "fitness",
  "targetValue": 5,
  "currentValue": 0.9,
  "unit": "km",
  "deadline": "2026-06-03",
  "isCompleted": false,
  "createdAt": "2026-04-14T23:04:16.716Z"
}
Draftbit