Groceries
- userId
-
Cyril Frami @cyril_frami88
- name
- Groceries
- categoryId
- Hair Care
- amount
- 3872.36
- period
- weekly
- spent
- 203.67
- currency
- USD
- startsAt
- 2025-01-30
- endsAt
- —
- createdAt
Overview
budgets / #183
Groceries
#183
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/183" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/183" ); 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/183"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/183"
)
budget = res.json() Response
{
"id": 183,
"userId": 182,
"name": "Groceries",
"categoryId": 28,
"amount": 3872.36,
"period": "weekly",
"spent": 203.67,
"currency": "USD",
"startsAt": "2025-01-30",
"endsAt": null,
"createdAt": "2025-11-01T14:01:56.538Z"
}