example-data.com

budgets / #165

userId
Ari Howe @ari.howe73
name
Groceries
categoryId
20
amount
3385.03
period
weekly
spent
2923
currency
CAD
startsAt
2024-08-18
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/165"
)
budget = res.json()
{
  "id": 165,
  "userId": 167,
  "name": "Groceries",
  "categoryId": 20,
  "amount": 3385.03,
  "period": "weekly",
  "spent": 2923,
  "currency": "CAD",
  "startsAt": "2024-08-18",
  "endsAt": null,
  "createdAt": "2026-02-18T02:29:11.562Z"
}
Draftbit