example-data.com
Menu
Browse docs and collections

budgets

budgets

Page 5 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": 97,
      "userId": 94,
      "name": "Travel",
      "categoryId": null,
      "amount": 1020.68,
      "period": "weekly",
      "spent": 565.55,
      "currency": "AUD",
      "startsAt": "2026-02-05",
      "endsAt": null,
      "createdAt": "2026-05-01T02:59:08.438Z"
    },
    {
      "id": 98,
      "userId": 94,
      "name": "Gifts",
      "categoryId": 34,
      "amount": 1053.01,
      "period": "quarterly",
      "spent": 325.55,
      "currency": "EUR",
      "startsAt": "2025-08-29",
      "endsAt": null,
      "createdAt": "2026-02-10T23:29:40.997Z"
    },
    {
      "id": 99,
      "userId": 95,
      "name": "Clothing",
      "categoryId": 39,
      "amount": 923.86,
      "period": "monthly",
      "spent": 147.62,
      "currency": "USD",
      "startsAt": "2024-09-27",
      "endsAt": "2024-10-27",
      "createdAt": "2025-04-19T06:23:55.710Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/budgets?page=5&limit=24",
    "first": "/api/v1/budgets?page=1&limit=24",
    "last": "/api/v1/budgets?page=11&limit=24",
    "next": "/api/v1/budgets?page=6&limit=24",
    "prev": "/api/v1/budgets?page=4&limit=24"
  }
}