goals
goals
Page 7 of 11.
Overview
-
Walk 10000 steps daily
#145
-
Reduce resting heart rate
#146
-
Run a marathon
#147
-
Bench press bodyweight
#148
-
Gain muscle mass
#149
-
Run a marathon
#150
-
Eat 150g protein daily
#151
-
Do 100 push-ups
#152
-
Meditate daily
#153
-
Improve flexibility
#154
-
Sleep 8 hours nightly
#155
-
Reduce resting heart rate
#156
-
Sleep 8 hours nightly
#157
-
Run a 5K
#158
-
Eat 150g protein daily
#159
-
Reduce resting heart rate
#160
-
Lose weight
#161
-
Drink 2L water daily
#162
-
Run a 5K
#163
-
Do 100 push-ups
#164
-
Reduce body fat
#165
-
Eat 150g protein daily
#166
-
Run a 5K
#167
-
Walk 10000 steps daily
#168
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": 145,
"userId": 149,
"name": "Walk 10000 steps daily",
"category": "habit",
"targetValue": 10000,
"currentValue": 3424.1,
"unit": "steps/day",
"deadline": null,
"isCompleted": false,
"createdAt": "2025-12-21T23:03:43.524Z"
},
{
"id": 146,
"userId": 150,
"name": "Reduce resting heart rate",
"category": "fitness",
"targetValue": 64.4,
"currentValue": 29.5,
"unit": "bpm",
"deadline": "2027-02-26",
"isCompleted": false,
"createdAt": "2025-07-27T17:15:04.968Z"
},
{
"id": 147,
"userId": 154,
"name": "Run a marathon",
"category": "fitness",
"targetValue": 42,
"currentValue": 36.7,
"unit": "km",
"deadline": "2027-04-25",
"isCompleted": false,
"createdAt": "2026-03-13T16:52:11.367Z"
}
],
"meta": {
"page": 7,
"limit": 24,
"total": 244,
"totalPages": 11
},
"links": {
"self": "/api/v1/goals?page=7&limit=24",
"first": "/api/v1/goals?page=1&limit=24",
"last": "/api/v1/goals?page=11&limit=24",
"next": "/api/v1/goals?page=8&limit=24",
"prev": "/api/v1/goals?page=6&limit=24"
}
}