example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 17 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": 385,
      "userId": 191,
      "name": "Joint Checking",
      "type": "checking",
      "balance": 5098.84,
      "currency": "CHF",
      "isActive": true,
      "createdAt": "2024-10-11T14:29:26.700Z"
    },
    {
      "id": 386,
      "userId": 191,
      "name": "Petty Cash",
      "type": "other",
      "balance": 10778.13,
      "currency": "JPY",
      "isActive": true,
      "createdAt": "2026-04-25T21:23:33.606Z"
    },
    {
      "id": 387,
      "userId": 192,
      "name": "High-Yield Savings",
      "type": "savings",
      "balance": 39526.19,
      "currency": "CHF",
      "isActive": true,
      "createdAt": "2026-04-19T20:03:30.305Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=17&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=18&limit=24",
    "prev": "/api/v1/accounts?page=16&limit=24"
  }
}