example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 21 of 105.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/transactions?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/transactions?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/transactions.d.ts https://example-data.com/types/transactions.d.ts
import type { Transaction, ListEnvelope } from "./types/transactions";

const res = await fetch(
  "https://example-data.com/api/v1/transactions?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Transaction>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/transactions",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 481,
      "accountId": 49,
      "kind": "payment",
      "amount": -564.23,
      "currency": "USD",
      "description": "Loan payment",
      "status": "failed",
      "occurredAt": "2025-10-19T03:36:58.191Z",
      "createdAt": "2025-10-19T03:37:18.798Z"
    },
    {
      "id": 482,
      "accountId": 363,
      "kind": "fee",
      "amount": -1819.13,
      "currency": "CNY",
      "description": "Wire transfer fee",
      "status": "completed",
      "occurredAt": "2025-12-02T12:41:48.597Z",
      "createdAt": "2025-12-02T12:42:12.272Z"
    },
    {
      "id": 483,
      "accountId": 121,
      "kind": "withdrawal",
      "amount": -143.25,
      "currency": "CAD",
      "description": "Bank transfer out",
      "status": "failed",
      "occurredAt": "2024-08-24T19:50:31.719Z",
      "createdAt": "2024-08-24T19:51:28.152Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=21&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=22&limit=24",
    "prev": "/api/v1/transactions?page=20&limit=24"
  }
}