example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 22 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": 505,
      "accountId": 82,
      "kind": "transfer",
      "amount": -2987.39,
      "currency": "AUD",
      "description": "Account transfer",
      "status": "completed",
      "occurredAt": "2025-01-18T12:22:39.407Z",
      "createdAt": "2025-01-18T12:23:03.377Z"
    },
    {
      "id": 506,
      "accountId": 410,
      "kind": "withdrawal",
      "amount": -1138.03,
      "currency": "GBP",
      "description": "Wire transfer sent",
      "status": "cancelled",
      "occurredAt": "2025-01-14T07:13:23.106Z",
      "createdAt": "2025-01-14T07:14:04.146Z"
    },
    {
      "id": 507,
      "accountId": 25,
      "kind": "withdrawal",
      "amount": -3212.38,
      "currency": "CAD",
      "description": "Check withdrawal",
      "status": "pending",
      "occurredAt": "2025-02-23T04:11:21.168Z",
      "createdAt": "2025-02-23T04:12:17.051Z"
    }
  ],
  "meta": {
    "page": 22,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=22&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=23&limit=24",
    "prev": "/api/v1/transactions?page=21&limit=24"
  }
}