example-data.com

budgets / #154

userId
Sandrine Osinski @sandrine.osinski
name
Gifts
categoryId
20
amount
3972.51
period
yearly
spent
3537.31
currency
USD
startsAt
2026-03-19
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/154"
)
budget = res.json()
{
  "id": 154,
  "userId": 157,
  "name": "Gifts",
  "categoryId": 20,
  "amount": 3972.51,
  "period": "yearly",
  "spent": 3537.31,
  "currency": "USD",
  "startsAt": "2026-03-19",
  "endsAt": null,
  "createdAt": "2026-03-20T17:01:45.247Z"
}
Draftbit