example-data.com
Menu
Browse docs and collections

budgets

budgets

Page 11 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": 241,
      "userId": 239,
      "name": "Groceries",
      "categoryId": 38,
      "amount": 702.48,
      "period": "monthly",
      "spent": 448.48,
      "currency": "USD",
      "startsAt": "2025-08-08",
      "endsAt": "2025-09-07",
      "createdAt": "2026-03-13T00:00:55.990Z"
    },
    {
      "id": 242,
      "userId": 240,
      "name": "Transportation",
      "categoryId": null,
      "amount": 3393.66,
      "period": "yearly",
      "spent": 2788.01,
      "currency": "GBP",
      "startsAt": "2025-08-19",
      "endsAt": null,
      "createdAt": "2026-01-11T09:52:21.203Z"
    },
    {
      "id": 243,
      "userId": 240,
      "name": "Pet Expenses",
      "categoryId": 37,
      "amount": 2424.82,
      "period": "monthly",
      "spent": 2393.36,
      "currency": "AUD",
      "startsAt": "2024-08-23",
      "endsAt": null,
      "createdAt": "2025-09-12T01:31:55.391Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 250,
    "totalPages": 11
  },
  "links": {
    "self": "/api/v1/budgets?page=11&limit=24",
    "first": "/api/v1/budgets?page=1&limit=24",
    "last": "/api/v1/budgets?page=11&limit=24",
    "next": null,
    "prev": "/api/v1/budgets?page=10&limit=24"
  }
}