example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 12 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": 265,
      "accountId": 362,
      "kind": "interest",
      "amount": 8041.59,
      "currency": "GBP",
      "description": "Loan interest payment",
      "status": "completed",
      "occurredAt": "2025-01-25T18:54:48.477Z",
      "createdAt": "2025-01-25T18:55:19.189Z"
    },
    {
      "id": 266,
      "accountId": 48,
      "kind": "transfer",
      "amount": -4601.91,
      "currency": "CNY",
      "description": "Savings transfer",
      "status": "completed",
      "occurredAt": "2025-10-16T09:25:51.391Z",
      "createdAt": "2025-10-16T09:26:50.684Z"
    },
    {
      "id": 267,
      "accountId": 340,
      "kind": "interest",
      "amount": 7861.29,
      "currency": "CAD",
      "description": "Credit card interest",
      "status": "completed",
      "occurredAt": "2025-10-17T03:52:54.055Z",
      "createdAt": "2025-10-17T03:53:39.464Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=12&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=13&limit=24",
    "prev": "/api/v1/transactions?page=11&limit=24"
  }
}