example-data.com
Menu
Browse docs and collections

budgets

budgets

Page 8 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": 169,
      "userId": 170,
      "name": "Utilities",
      "categoryId": 34,
      "amount": 3982.9,
      "period": "weekly",
      "spent": 1341.37,
      "currency": "GBP",
      "startsAt": "2025-12-06",
      "endsAt": "2025-12-13",
      "createdAt": "2026-01-18T16:44:24.863Z"
    },
    {
      "id": 170,
      "userId": 170,
      "name": "Utilities",
      "categoryId": 24,
      "amount": 3783.63,
      "period": "yearly",
      "spent": 4046.45,
      "currency": "GBP",
      "startsAt": "2025-04-28",
      "endsAt": "2026-04-28",
      "createdAt": "2026-04-22T02:07:41.298Z"
    },
    {
      "id": 171,
      "userId": 171,
      "name": "Travel",
      "categoryId": null,
      "amount": 3217.69,
      "period": "yearly",
      "spent": 1123.48,
      "currency": "USD",
      "startsAt": "2025-11-23",
      "endsAt": "2026-11-23",
      "createdAt": "2026-04-03T17:32:04.451Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/budgets?page=8&limit=24",
    "first": "/api/v1/budgets?page=1&limit=24",
    "last": "/api/v1/budgets?page=11&limit=24",
    "next": "/api/v1/budgets?page=9&limit=24",
    "prev": "/api/v1/budgets?page=7&limit=24"
  }
}