example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 2 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": 25,
      "accountId": 197,
      "kind": "interest",
      "amount": -81.11,
      "currency": "CNY",
      "description": "Credit card interest",
      "status": "completed",
      "occurredAt": "2024-09-29T17:20:54.143Z",
      "createdAt": "2024-09-29T17:21:44.093Z"
    },
    {
      "id": 26,
      "accountId": 60,
      "kind": "payment",
      "amount": -688.94,
      "currency": "GBP",
      "description": "Subscription renewal",
      "status": "completed",
      "occurredAt": "2025-04-08T00:38:16.057Z",
      "createdAt": "2025-04-08T00:39:14.430Z"
    },
    {
      "id": 27,
      "accountId": 206,
      "kind": "withdrawal",
      "amount": -194.29,
      "currency": "CAD",
      "description": "Bank transfer out",
      "status": "failed",
      "occurredAt": "2026-05-09T01:41:40.120Z",
      "createdAt": "2026-05-09T01:42:03.975Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=2&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=3&limit=24",
    "prev": "/api/v1/transactions?page=1&limit=24"
  }
}