example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 103 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": 2449,
      "accountId": 33,
      "kind": "payment",
      "amount": -4079.77,
      "currency": "CNY",
      "description": "Online purchase",
      "status": "failed",
      "occurredAt": "2025-12-13T20:38:44.562Z",
      "createdAt": "2025-12-13T20:39:03.773Z"
    },
    {
      "id": 2450,
      "accountId": 304,
      "kind": "withdrawal",
      "amount": -4166.56,
      "currency": "CHF",
      "description": "Check withdrawal",
      "status": "completed",
      "occurredAt": "2025-09-14T02:17:08.275Z",
      "createdAt": "2025-09-14T02:17:29.252Z"
    },
    {
      "id": 2451,
      "accountId": 288,
      "kind": "withdrawal",
      "amount": -3478.65,
      "currency": "AUD",
      "description": "Cash withdrawal",
      "status": "completed",
      "occurredAt": "2024-06-18T11:33:34.484Z",
      "createdAt": "2024-06-18T11:34:07.375Z"
    }
  ],
  "meta": {
    "page": 103,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=103&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=104&limit=24",
    "prev": "/api/v1/transactions?page=102&limit=24"
  }
}