example-data.com

goals / #140

userId
Hershel Smitham @hershel.smitham
name
Walk 10000 steps daily
category
habit
targetValue
10000
currentValue
8278.3
unit
steps/day
deadline
isCompleted
false
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/goals/140"
)
goal = res.json()
{
  "id": 140,
  "userId": 147,
  "name": "Walk 10000 steps daily",
  "category": "habit",
  "targetValue": 10000,
  "currentValue": 8278.3,
  "unit": "steps/day",
  "deadline": null,
  "isCompleted": false,
  "createdAt": "2026-04-01T09:45:42.426Z"
}
Draftbit