Electronics
- userId
-
Kennith Hahn @kennith.hahn
- name
- Electronics
- categoryId
- Home & Garden
- amount
- 2488.62
- period
- quarterly
- spent
- 2912.97
- currency
- USD
- startsAt
- 2024-09-13
- endsAt
- —
- createdAt
Overview
budgets / #202
Electronics
#202
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/202" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/202" ); 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/202"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/202"
)
budget = res.json() Response
{
"id": 202,
"userId": 201,
"name": "Electronics",
"categoryId": 3,
"amount": 2488.62,
"period": "quarterly",
"spent": 2912.97,
"currency": "USD",
"startsAt": "2024-09-13",
"endsAt": null,
"createdAt": "2025-11-17T00:26:20.111Z"
}