example-data.com
Menu
Browse docs and collections

budgets

budgets

Page 3 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": 49,
      "userId": 50,
      "name": "Utilities",
      "categoryId": null,
      "amount": 1377.71,
      "period": "weekly",
      "spent": 538.53,
      "currency": "USD",
      "startsAt": "2025-11-08",
      "endsAt": "2025-11-15",
      "createdAt": "2026-03-04T06:19:54.961Z"
    },
    {
      "id": 50,
      "userId": 50,
      "name": "Healthcare",
      "categoryId": 21,
      "amount": 292.86,
      "period": "weekly",
      "spent": 130.49,
      "currency": "AUD",
      "startsAt": "2025-12-28",
      "endsAt": null,
      "createdAt": "2026-04-20T11:45:30.077Z"
    },
    {
      "id": 51,
      "userId": 51,
      "name": "Transportation",
      "categoryId": null,
      "amount": 4847.79,
      "period": "weekly",
      "spent": 2212.85,
      "currency": "GBP",
      "startsAt": "2024-10-23",
      "endsAt": null,
      "createdAt": "2025-09-27T02:45:39.399Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/budgets?page=3&limit=24",
    "first": "/api/v1/budgets?page=1&limit=24",
    "last": "/api/v1/budgets?page=11&limit=24",
    "next": "/api/v1/budgets?page=4&limit=24",
    "prev": "/api/v1/budgets?page=2&limit=24"
  }
}