example-data.com
Menu
Browse docs and collections

budgets

budgets

Page 9 of 11.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/budgets?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/budgets?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/budgets";

const res = await fetch(
  "https://example-data.com/api/v1/budgets?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Budget>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 193,
      "userId": 193,
      "name": "Utilities",
      "categoryId": null,
      "amount": 1229.23,
      "period": "weekly",
      "spent": 441.59,
      "currency": "EUR",
      "startsAt": "2025-06-14",
      "endsAt": null,
      "createdAt": "2025-08-30T01:11:59.513Z"
    },
    {
      "id": 194,
      "userId": 194,
      "name": "Pet Expenses",
      "categoryId": 34,
      "amount": 873.72,
      "period": "quarterly",
      "spent": 646.62,
      "currency": "GBP",
      "startsAt": "2026-05-21",
      "endsAt": null,
      "createdAt": "2026-05-21T21:31:10.482Z"
    },
    {
      "id": 195,
      "userId": 194,
      "name": "Entertainment",
      "categoryId": 12,
      "amount": 1281.24,
      "period": "monthly",
      "spent": 1518.47,
      "currency": "CAD",
      "startsAt": "2026-02-06",
      "endsAt": null,
      "createdAt": "2026-04-21T00:38:50.553Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/budgets?page=9&limit=24",
    "first": "/api/v1/budgets?page=1&limit=24",
    "last": "/api/v1/budgets?page=11&limit=24",
    "next": "/api/v1/budgets?page=10&limit=24",
    "prev": "/api/v1/budgets?page=8&limit=24"
  }
}