goals
goals
Page 10 of 11.
Overview
-
Bench press bodyweight
#217
-
Run a 5K
#218
-
Bench press bodyweight
#219
-
Meditate daily
#220
-
Sleep 8 hours nightly
#221
-
Eat 150g protein daily
#222
-
Eat 150g protein daily
#223
-
Reduce resting heart rate
#224
-
Run a marathon
#225
-
Run a 5K
#226
-
Sleep 8 hours nightly
#227
-
Do 100 push-ups
#228
-
Walk 10000 steps daily
#229
-
Do 100 push-ups
#230
-
Improve flexibility
#231
-
Run a 5K
#232
-
Lose weight
#233
-
Eat 150g protein daily
#234
-
Gain muscle mass
#235
-
Gain muscle mass
#236
-
Do 100 push-ups
#237
-
Gain muscle mass
#238
-
Lose weight
#239
-
Run a 5K
#240
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": 217,
"userId": 217,
"name": "Bench press bodyweight",
"category": "fitness",
"targetValue": 77.4,
"currentValue": 6.1,
"unit": "kg",
"deadline": "2026-11-13",
"isCompleted": false,
"createdAt": "2025-06-19T17:00:43.138Z"
},
{
"id": 218,
"userId": 217,
"name": "Run a 5K",
"category": "fitness",
"targetValue": 5,
"currentValue": 0,
"unit": "km",
"deadline": "2026-07-16",
"isCompleted": false,
"createdAt": "2025-08-31T08:38:05.594Z"
},
{
"id": 219,
"userId": 219,
"name": "Bench press bodyweight",
"category": "fitness",
"targetValue": 66.4,
"currentValue": 32.4,
"unit": "kg",
"deadline": null,
"isCompleted": false,
"createdAt": "2025-09-05T13:48:00.278Z"
}
],
"meta": {
"page": 10,
"limit": 24,
"total": 244,
"totalPages": 11
},
"links": {
"self": "/api/v1/goals?page=10&limit=24",
"first": "/api/v1/goals?page=1&limit=24",
"last": "/api/v1/goals?page=11&limit=24",
"next": "/api/v1/goals?page=11&limit=24",
"prev": "/api/v1/goals?page=9&limit=24"
}
}