example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 2 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": 25,
      "userId": 13,
      "name": "Vacation Savings",
      "type": "savings",
      "balance": 28008.28,
      "currency": "CAD",
      "isActive": true,
      "createdAt": "2025-03-02T15:04:53.155Z"
    },
    {
      "id": 26,
      "userId": 14,
      "name": "Rewards Card",
      "type": "credit_card",
      "balance": -7652.87,
      "currency": "JPY",
      "isActive": true,
      "createdAt": "2025-08-14T01:41:49.498Z"
    },
    {
      "id": 27,
      "userId": 14,
      "name": "Petty Cash",
      "type": "other",
      "balance": 2382.98,
      "currency": "CHF",
      "isActive": true,
      "createdAt": "2025-05-09T20:46:28.519Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=2&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=3&limit=24",
    "prev": "/api/v1/accounts?page=1&limit=24"
  }
}