Groceries
- userId
-
Cruz Okuneva @cruz.okuneva
- name
- Groceries
- categoryId
- Tires & Wheels
- amount
- 702.48
- period
- monthly
- spent
- 448.48
- currency
- USD
- startsAt
- 2025-08-08
- endsAt
- 2025-09-07
- createdAt
Overview
budgets / #241
Groceries
#241
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/241" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/241" ); 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/241"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/241"
)
budget = res.json() Response
{
"id": 241,
"userId": 239,
"name": "Groceries",
"categoryId": 38,
"amount": 702.48,
"period": "monthly",
"spent": 448.48,
"currency": "USD",
"startsAt": "2025-08-08",
"endsAt": "2025-09-07",
"createdAt": "2026-03-13T00:00:55.990Z"
}