example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 13 of 22.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/accounts?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/accounts.d.ts https://example-data.com/types/accounts.d.ts
import type { Account, ListEnvelope } from "./types/accounts";

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 289,
      "userId": 141,
      "name": "Home Mortgage",
      "type": "loan",
      "balance": -6255.24,
      "currency": "GBP",
      "isActive": true,
      "createdAt": "2026-01-18T05:02:06.674Z"
    },
    {
      "id": 290,
      "userId": 141,
      "name": "HSA Account",
      "type": "other",
      "balance": 3119.13,
      "currency": "USD",
      "isActive": true,
      "createdAt": "2024-07-12T23:17:41.925Z"
    },
    {
      "id": 291,
      "userId": 142,
      "name": "Petty Cash",
      "type": "other",
      "balance": 17974.11,
      "currency": "USD",
      "isActive": true,
      "createdAt": "2025-03-14T17:59:07.668Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=13&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=14&limit=24",
    "prev": "/api/v1/accounts?page=12&limit=24"
  }
}