Drink 2L water daily
- userId
-
Gwendolyn Wyman @gwendolyn.wyman87
- name
- Drink 2L water daily
- category
- nutrition
- targetValue
- 2
- currentValue
- 0.6
- unit
- L/day
- deadline
- 2026-04-30
- isCompleted
- false
- createdAt
Overview
goals / #37
Drink 2L water daily
#37
Request
curl example
curl -sS \ "https://example-data.com/api/v1/goals/37" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/goals/37" ); 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/37"
);
const goal = (await res.json()) as Goal; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/goals/37"
)
goal = res.json() Response
{
"id": 37,
"userId": 40,
"name": "Drink 2L water daily",
"category": "nutrition",
"targetValue": 2,
"currentValue": 0.6,
"unit": "L/day",
"deadline": "2026-04-30",
"isCompleted": false,
"createdAt": "2026-03-12T05:36:36.557Z"
}