example-data.com
Menu
Browse docs and collections

Overview

budgets / #165

Groceries

userId
Ari Howe @ari.howe73
name
Groceries
categoryId
Garden & Outdoor
amount
3385.03
period
weekly
spent
2923
currency
CAD
startsAt
2024-08-18
endsAt
createdAt

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 165,
  "userId": 167,
  "name": "Groceries",
  "categoryId": 20,
  "amount": 3385.03,
  "period": "weekly",
  "spent": 2923,
  "currency": "CAD",
  "startsAt": "2024-08-18",
  "endsAt": null,
  "createdAt": "2026-02-18T02:29:11.562Z"
}