example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 53 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": 1249,
      "accountId": 82,
      "kind": "payment",
      "amount": -4676.68,
      "currency": "AUD",
      "description": "Restaurant charge",
      "status": "completed",
      "occurredAt": "2026-01-30T05:15:30.194Z",
      "createdAt": "2026-01-30T05:15:36.815Z"
    },
    {
      "id": 1250,
      "accountId": 243,
      "kind": "interest",
      "amount": 8228.61,
      "currency": "CAD",
      "description": "Credit card interest",
      "status": "completed",
      "occurredAt": "2025-01-25T02:16:40.670Z",
      "createdAt": "2025-01-25T02:17:03.110Z"
    },
    {
      "id": 1251,
      "accountId": 244,
      "kind": "fee",
      "amount": -4993.91,
      "currency": "JPY",
      "description": "Late payment fee",
      "status": "completed",
      "occurredAt": "2025-01-31T13:52:50.570Z",
      "createdAt": "2025-01-31T13:53:22.161Z"
    }
  ],
  "meta": {
    "page": 53,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=53&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=54&limit=24",
    "prev": "/api/v1/transactions?page=52&limit=24"
  }
}