Lose weight
- userId
-
Cyril Frami @cyril_frami88
- name
- Lose weight
- category
- weight
- targetValue
- 68.9
- currentValue
- 35
- unit
- kg
- deadline
- 2026-08-21
- isCompleted
- false
- createdAt
Overview
goals / #181
Lose weight
#181
Request
curl example
curl -sS \ "https://example-data.com/api/v1/goals/181" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/goals/181" ); const goal = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/goals.d.ts https://example-data.com/types/goals.d.ts
import type { Goal } from "./types/goals";
const res = await fetch(
"https://example-data.com/api/v1/goals/181"
);
const goal = (await res.json()) as Goal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/goals/181"
)
goal = res.json() Response
{
"id": 181,
"userId": 182,
"name": "Lose weight",
"category": "weight",
"targetValue": 68.9,
"currentValue": 35,
"unit": "kg",
"deadline": "2026-08-21",
"isCompleted": false,
"createdAt": "2025-06-01T14:36:12.176Z"
}