Clothing
- userId
-
Sonia Nolan @sonia_nolan
- name
- Clothing
- categoryId
- —
- amount
- 465.86
- period
- monthly
- spent
- 167.76
- currency
- GBP
- startsAt
- 2024-12-06
- endsAt
- 2025-01-05
- createdAt
Overview
budgets / #209
Clothing
#209
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/209" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/209" ); 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/209"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/209"
)
budget = res.json() Response
{
"id": 209,
"userId": 208,
"name": "Clothing",
"categoryId": null,
"amount": 465.86,
"period": "monthly",
"spent": 167.76,
"currency": "GBP",
"startsAt": "2024-12-06",
"endsAt": "2025-01-05",
"createdAt": "2025-08-19T17:56:53.163Z"
}