example-data.com
Menu
Browse docs and collections

accounts

accounts

Page 5 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": 97,
      "userId": 49,
      "name": "Student Loan",
      "type": "loan",
      "balance": -182329.32,
      "currency": "CHF",
      "isActive": true,
      "createdAt": "2025-04-25T22:25:14.856Z"
    },
    {
      "id": 98,
      "userId": 49,
      "name": "Retirement Savings",
      "type": "savings",
      "balance": 33405.84,
      "currency": "JPY",
      "isActive": true,
      "createdAt": "2024-07-08T04:18:48.483Z"
    },
    {
      "id": 99,
      "userId": 50,
      "name": "Personal Loan",
      "type": "loan",
      "balance": -120156.2,
      "currency": "CNY",
      "isActive": true,
      "createdAt": "2025-10-21T13:55:08.085Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 507,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/accounts?page=5&limit=24",
    "first": "/api/v1/accounts?page=1&limit=24",
    "last": "/api/v1/accounts?page=22&limit=24",
    "next": "/api/v1/accounts?page=6&limit=24",
    "prev": "/api/v1/accounts?page=4&limit=24"
  }
}