example-data.com
Menu
Browse docs and collections

Overview

budgets / #231

Personal Care

userId
Malvina Ortiz @malvina_ortiz
name
Personal Care
categoryId
Fiction
amount
1282.21
period
weekly
spent
788.97
currency
EUR
startsAt
2024-12-25
endsAt
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/budgets/231" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/budgets/231"
);
const budget = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/budgets.d.ts https://example-data.com/types/budgets.d.ts
import type { Budget } from "./types/budgets";

const res = await fetch(
  "https://example-data.com/api/v1/budgets/231"
);
const budget = (await res.json()) as Budget;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets/231"
)
budget = res.json()

Response

{
  "id": 231,
  "userId": 234,
  "name": "Personal Care",
  "categoryId": 24,
  "amount": 1282.21,
  "period": "weekly",
  "spent": 788.97,
  "currency": "EUR",
  "startsAt": "2024-12-25",
  "endsAt": null,
  "createdAt": "2025-07-31T20:32:32.222Z"
}