Electronics
- userId
-
Anne Hamill @anne_hamill75
- name
- Electronics
- categoryId
- Beverages
- amount
- 3050
- period
- quarterly
- spent
- 1594.12
- currency
- USD
- startsAt
- 2024-12-12
- endsAt
- 2025-03-12
- createdAt
Overview
budgets / #7
Electronics
#7
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/7" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/7" ); 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/7"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/7"
)
budget = res.json() Response
{
"id": 7,
"userId": 9,
"name": "Electronics",
"categoryId": 32,
"amount": 3050,
"period": "quarterly",
"spent": 1594.12,
"currency": "USD",
"startsAt": "2024-12-12",
"endsAt": "2025-03-12",
"createdAt": "2025-11-16T08:03:11.488Z"
}