example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 8 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": 169,
      "userId": 84,
      "name": "Primary Checking",
      "type": "checking",
      "balance": 18026.24,
      "currency": "CAD",
      "isActive": true,
      "createdAt": "2025-05-12T09:12:59.833Z"
    },
    {
      "id": 170,
      "userId": 85,
      "name": "Personal Loan",
      "type": "loan",
      "balance": -67963.72,
      "currency": "EUR",
      "isActive": true,
      "createdAt": "2026-01-20T04:38:40.291Z"
    },
    {
      "id": 171,
      "userId": 85,
      "name": "Home Mortgage",
      "type": "loan",
      "balance": -145111.66,
      "currency": "AUD",
      "isActive": true,
      "createdAt": "2025-08-24T00:13:24.435Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=8&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=9&limit=24",
    "prev": "/api/v1/accounts?page=7&limit=24"
  }
}