example-data.com
Menu
Browse docs and collections

Overview

budgets / #37

Fitness

userId
Amely Daniel @amely_daniel
name
Fitness
categoryId
Fiction
amount
2620.12
period
yearly
spent
3130.1
currency
USD
startsAt
2024-07-19
endsAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 37,
  "userId": 41,
  "name": "Fitness",
  "categoryId": 24,
  "amount": 2620.12,
  "period": "yearly",
  "spent": 3130.1,
  "currency": "USD",
  "startsAt": "2024-07-19",
  "endsAt": null,
  "createdAt": "2025-08-27T03:51:20.417Z"
}