example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 16 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": 361,
      "userId": 176,
      "name": "Gift Card Balance",
      "type": "other",
      "balance": 3264.57,
      "currency": "CNY",
      "isActive": true,
      "createdAt": "2025-12-16T11:53:03.636Z"
    },
    {
      "id": 362,
      "userId": 177,
      "name": "401(k)",
      "type": "investment",
      "balance": 244498.06,
      "currency": "GBP",
      "isActive": true,
      "createdAt": "2026-05-13T14:28:18.065Z"
    },
    {
      "id": 363,
      "userId": 178,
      "name": "Business Card",
      "type": "credit_card",
      "balance": -2627.56,
      "currency": "CNY",
      "isActive": false,
      "createdAt": "2026-04-11T05:29:34.931Z"
    }
  ],
  "meta": {
    "page": 16,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=16&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=17&limit=24",
    "prev": "/api/v1/accounts?page=15&limit=24"
  }
}