Travel
- userId
-
Trace Witting-Stamm @trace_witting-stamm17
- name
- Travel
- categoryId
- —
- amount
- 2801.61
- period
- yearly
- spent
- 1273.93
- currency
- GBP
- startsAt
- 2025-02-11
- endsAt
- —
- createdAt
Overview
budgets / #38
Travel
#38
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/38" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/38" ); 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/38"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/38"
)
budget = res.json() Response
{
"id": 38,
"userId": 42,
"name": "Travel",
"categoryId": null,
"amount": 2801.61,
"period": "yearly",
"spent": 1273.93,
"currency": "GBP",
"startsAt": "2025-02-11",
"endsAt": null,
"createdAt": "2025-06-26T19:08:47.499Z"
}