example-data.com
Menu
Browse docs and collections

Overview

goals / #153

Meditate daily

userId
Marlin Goldner @marlin_goldner6
name
Meditate daily
category
habit
targetValue
22.4
currentValue
2.5
unit
minutes/day
deadline
isCompleted
false
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/goals/153" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/goals/153"
);
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/153"
);
const goal = (await res.json()) as Goal;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/goals/153"
)
goal = res.json()

Response

{
  "id": 153,
  "userId": 160,
  "name": "Meditate daily",
  "category": "habit",
  "targetValue": 22.4,
  "currentValue": 2.5,
  "unit": "minutes/day",
  "deadline": null,
  "isCompleted": false,
  "createdAt": "2025-10-01T08:22:48.103Z"
}