Groceries
- userId
-
Gerda Streich @gerda_streich
- name
- Groceries
- categoryId
- Toys & Games
- amount
- 2658.68
- period
- quarterly
- spent
- 1747.17
- currency
- AUD
- startsAt
- 2025-01-24
- endsAt
- 2025-04-24
- createdAt
Overview
budgets / #128
Groceries
#128
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/128" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/128" ); 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/128"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/128"
)
budget = res.json() Response
{
"id": 128,
"userId": 126,
"name": "Groceries",
"categoryId": 8,
"amount": 2658.68,
"period": "quarterly",
"spent": 1747.17,
"currency": "AUD",
"startsAt": "2025-01-24",
"endsAt": "2025-04-24",
"createdAt": "2026-03-15T05:31:27.683Z"
}