example-data.com

budgets / #38

userId
Trace Witting-Stamm @trace_witting-stamm17
name
Travel
categoryId
amount
2801.61
period
yearly
spent
1273.93
currency
GBP
startsAt
2025-02-11
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/38"
)
budget = res.json()
{
  "id": 38,
  "userId": 42,
  "name": "Travel",
  "categoryId": null,
  "amount": 2801.61,
  "period": "yearly",
  "spent": 1273.93,
  "currency": "GBP",
  "startsAt": "2025-02-11",
  "endsAt": null,
  "createdAt": "2025-06-26T19:08:47.499Z"
}
Draftbit