Pet Expenses
- userId
-
Alex Lang @alex_lang85
- name
- Pet Expenses
- categoryId
- —
- amount
- 1073.78
- period
- monthly
- spent
- 1.72
- currency
- EUR
- startsAt
- 2025-09-18
- endsAt
- 2025-10-18
- createdAt
Overview
budgets / #158
Pet Expenses
#158
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/158" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/158" ); 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/158"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/158"
)
budget = res.json() Response
{
"id": 158,
"userId": 163,
"name": "Pet Expenses",
"categoryId": null,
"amount": 1073.78,
"period": "monthly",
"spent": 1.72,
"currency": "EUR",
"startsAt": "2025-09-18",
"endsAt": "2025-10-18",
"createdAt": "2026-04-16T00:12:55.542Z"
}