Home Improvement
- userId
-
Alvina Koch @alvina.koch8
- name
- Home Improvement
- categoryId
- Health & Beauty
- amount
- 660.21
- period
- monthly
- spent
- 654.22
- currency
- USD
- startsAt
- 2024-07-07
- endsAt
- —
- createdAt
Overview
budgets / #15
Home Improvement
#15
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/15" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/15" ); 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/15"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/15"
)
budget = res.json() Response
{
"id": 15,
"userId": 20,
"name": "Home Improvement",
"categoryId": 6,
"amount": 660.21,
"period": "monthly",
"spent": 654.22,
"currency": "USD",
"startsAt": "2024-07-07",
"endsAt": null,
"createdAt": "2025-01-28T09:37:16.752Z"
}