example-data.com
Menu
Browse docs and collections

Overview

budgets / #149

Dining Out

userId
Sheridan Turcotte @sheridan.turcotte
name
Dining Out
categoryId
amount
1940.48
period
quarterly
spent
107.7
currency
AUD
startsAt
2025-06-28
endsAt
2025-09-26
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 149,
  "userId": 153,
  "name": "Dining Out",
  "categoryId": null,
  "amount": 1940.48,
  "period": "quarterly",
  "spent": 107.7,
  "currency": "AUD",
  "startsAt": "2025-06-28",
  "endsAt": "2025-09-26",
  "createdAt": "2025-08-05T12:17:05.417Z"
}