example-data.com
Menu
Browse docs and collections

Overview

budgets / #249

Education

userId
Santa Corwin @santa.corwin59
name
Education
categoryId
Automotive
amount
1328.37
period
monthly
spent
178.87
currency
AUD
startsAt
2025-07-09
endsAt
2025-08-08
createdAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/budgets/249" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/budgets/249"
);
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/249"
);
const budget = (await res.json()) as Budget;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets/249"
)
budget = res.json()

Response

{
  "id": 249,
  "userId": 247,
  "name": "Education",
  "categoryId": 9,
  "amount": 1328.37,
  "period": "monthly",
  "spent": 178.87,
  "currency": "AUD",
  "startsAt": "2025-07-09",
  "endsAt": "2025-08-08",
  "createdAt": "2026-03-09T01:49:09.939Z"
}