goals
goals
Page 6 of 11.
Overview
-
Improve flexibility
#121
-
Bench press bodyweight
#122
-
Gain muscle mass
#123
-
Meditate daily
#124
-
Meditate daily
#125
-
Do 100 push-ups
#126
-
Bench press bodyweight
#127
-
Sleep 8 hours nightly
#128
-
Run a 5K
#129
-
Gain muscle mass
#130
-
Lose weight
#131
-
Reduce resting heart rate
#132
-
Bench press bodyweight
#133
-
Walk 10000 steps daily
#134
-
Lose weight
#135
-
Lose weight
#136
-
Lose weight
#137
-
Sleep 8 hours nightly
#138
-
Drink 2L water daily
#139
-
Walk 10000 steps daily
#140
-
Sleep 8 hours nightly
#141
-
Meditate daily
#142
-
Do 100 push-ups
#143
-
Bench press bodyweight
#144
Request
curl example
curl -sS \ "https://example-data.com/api/v1/goals?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/goals?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/goals";
const res = await fetch(
"https://example-data.com/api/v1/goals?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Goal>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/goals",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 121,
"userId": 121,
"name": "Improve flexibility",
"category": "fitness",
"targetValue": 30.6,
"currentValue": 8.1,
"unit": "cm",
"deadline": "2026-04-22",
"isCompleted": false,
"createdAt": "2025-11-28T04:31:52.294Z"
},
{
"id": 122,
"userId": 123,
"name": "Bench press bodyweight",
"category": "fitness",
"targetValue": 104.5,
"currentValue": 98.1,
"unit": "kg",
"deadline": "2026-08-09",
"isCompleted": false,
"createdAt": "2025-07-22T08:57:49.966Z"
},
{
"id": 123,
"userId": 123,
"name": "Gain muscle mass",
"category": "weight",
"targetValue": 81.6,
"currentValue": 29.9,
"unit": "kg",
"deadline": "2026-10-04",
"isCompleted": false,
"createdAt": "2026-01-05T21:06:14.127Z"
}
],
"meta": {
"page": 6,
"limit": 24,
"total": 244,
"totalPages": 11
},
"links": {
"self": "/api/v1/goals?page=6&limit=24",
"first": "/api/v1/goals?page=1&limit=24",
"last": "/api/v1/goals?page=11&limit=24",
"next": "/api/v1/goals?page=7&limit=24",
"prev": "/api/v1/goals?page=5&limit=24"
}
}