Electronics
- userId
-
Sammy Schmidt @sammy.schmidt
- name
- Electronics
- categoryId
- Food & Grocery
- amount
- 1040.12
- period
- monthly
- spent
- 1000.39
- currency
- AUD
- startsAt
- 2025-01-24
- endsAt
- 2025-02-23
- createdAt
Overview
budgets / #187
Electronics
#187
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/187" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/187" ); 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/187"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/187"
)
budget = res.json() Response
{
"id": 187,
"userId": 186,
"name": "Electronics",
"categoryId": 7,
"amount": 1040.12,
"period": "monthly",
"spent": 1000.39,
"currency": "AUD",
"startsAt": "2025-01-24",
"endsAt": "2025-02-23",
"createdAt": "2025-05-01T03:09:12.465Z"
}