example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 11 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": 241,
      "userId": 119,
      "name": "Student Loan",
      "type": "loan",
      "balance": -499545.49,
      "currency": "CNY",
      "isActive": true,
      "createdAt": "2024-06-16T16:19:45.682Z"
    },
    {
      "id": 242,
      "userId": 119,
      "name": "401(k)",
      "type": "investment",
      "balance": 203022.49,
      "currency": "EUR",
      "isActive": true,
      "createdAt": "2025-07-06T17:23:18.139Z"
    },
    {
      "id": 243,
      "userId": 120,
      "name": "Joint Checking",
      "type": "checking",
      "balance": 15876.14,
      "currency": "CAD",
      "isActive": true,
      "createdAt": "2024-07-26T09:25:21.495Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=11&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=12&limit=24",
    "prev": "/api/v1/accounts?page=10&limit=24"
  }
}