example-data.com

budgets / #185

userId
Minerva Hettinger @minerva_hettinger
name
Pet Expenses
categoryId
amount
3147.61
period
monthly
spent
124.28
currency
AUD
startsAt
2024-05-23
endsAt
2024-06-22
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/185"
)
budget = res.json()
{
  "id": 185,
  "userId": 183,
  "name": "Pet Expenses",
  "categoryId": null,
  "amount": 3147.61,
  "period": "monthly",
  "spent": 124.28,
  "currency": "AUD",
  "startsAt": "2024-05-23",
  "endsAt": "2024-06-22",
  "createdAt": "2026-01-15T00:19:47.468Z"
}
Draftbit