example-data.com

budgets / #144

userId
Fritz Skiles @fritz_skiles
name
Healthcare
categoryId
amount
4323.92
period
yearly
spent
87.36
currency
USD
startsAt
2024-10-08
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/144"
)
budget = res.json()
{
  "id": 144,
  "userId": 144,
  "name": "Healthcare",
  "categoryId": null,
  "amount": 4323.92,
  "period": "yearly",
  "spent": 87.36,
  "currency": "USD",
  "startsAt": "2024-10-08",
  "endsAt": null,
  "createdAt": "2025-02-12T11:12:15.896Z"
}
Draftbit