Travel
- userId
-
Lilly Rosenbaum @lilly.rosenbaum
- name
- Travel
- categoryId
- Fiction
- amount
- 1580.59
- period
- weekly
- spent
- 934.39
- currency
- EUR
- startsAt
- 2025-01-27
- endsAt
- 2025-02-03
- createdAt
Overview
budgets / #220
Travel
#220
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/220" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/220" ); 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/220"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/220"
)
budget = res.json() Response
{
"id": 220,
"userId": 223,
"name": "Travel",
"categoryId": 24,
"amount": 1580.59,
"period": "weekly",
"spent": 934.39,
"currency": "EUR",
"startsAt": "2025-01-27",
"endsAt": "2025-02-03",
"createdAt": "2025-08-25T19:39:56.236Z"
}