example-data.com

budgets / #158

userId
Alex Lang @alex_lang85
name
Pet Expenses
categoryId
amount
1073.78
period
monthly
spent
1.72
currency
EUR
startsAt
2025-09-18
endsAt
2025-10-18
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/budgets/158" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/budgets/158"
);
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/158"
);
const budget = (await res.json()) as Budget;
import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets/158"
)
budget = res.json()
{
  "id": 158,
  "userId": 163,
  "name": "Pet Expenses",
  "categoryId": null,
  "amount": 1073.78,
  "period": "monthly",
  "spent": 1.72,
  "currency": "EUR",
  "startsAt": "2025-09-18",
  "endsAt": "2025-10-18",
  "createdAt": "2026-04-16T00:12:55.542Z"
}
Draftbit