example-data.com

budgets / #114

userId
Abdul Rau @abdul.rau
name
Education
categoryId
25
amount
857.19
period
yearly
spent
873.03
currency
CAD
startsAt
2025-02-13
endsAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/budgets/114" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/budgets/114"
);
const budget = await res.json();
import type { Budget } from "https://example-data.com/types/budgets.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/budgets/114"
);
const budget = (await res.json()) as Budget;
import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets/114"
)
budget = res.json()
{
  "id": 114,
  "userId": 108,
  "name": "Education",
  "categoryId": 25,
  "amount": 857.19,
  "period": "yearly",
  "spent": 873.03,
  "currency": "CAD",
  "startsAt": "2025-02-13",
  "endsAt": null,
  "createdAt": "2026-01-28T20:08:22.844Z"
}
Draftbit