Groceries
- userId
-
Charlene Roberts @charlene_roberts
- name
- Groceries
- categoryId
- Furniture
- amount
- 4245.1
- period
- quarterly
- spent
- 156.23
- currency
- EUR
- startsAt
- 2024-12-03
- endsAt
- —
- createdAt
Overview
budgets / #1
Groceries
#1
Request
curl example
curl -sS \
"https://example-data.com/api/v1/budgets/1" \
-H "Accept: application/json"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/budgets/1"
);
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/1"
);
const budget = (await res.json()) as Budget;
Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/1"
)
budget = res.json()
Response
{
"id": 1,
"userId": 1,
"name": "Groceries",
"categoryId": 18,
"amount": 4245.1,
"period": "quarterly",
"spent": 156.23,
"currency": "EUR",
"startsAt": "2024-12-03",
"endsAt": null,
"createdAt": "2025-12-09T19:44:56.377Z"
}