example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 24 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": 553,
      "accountId": 83,
      "kind": "fee",
      "amount": -4839.58,
      "currency": "USD",
      "description": "Account service fee",
      "status": "completed",
      "occurredAt": "2024-06-18T06:00:18.926Z",
      "createdAt": "2024-06-18T06:01:04.850Z"
    },
    {
      "id": 554,
      "accountId": 481,
      "kind": "withdrawal",
      "amount": -2770.73,
      "currency": "EUR",
      "description": "Wire transfer sent",
      "status": "completed",
      "occurredAt": "2025-03-03T12:41:45.861Z",
      "createdAt": "2025-03-03T12:41:48.040Z"
    },
    {
      "id": 555,
      "accountId": 54,
      "kind": "withdrawal",
      "amount": -4603.32,
      "currency": "CAD",
      "description": "Cash withdrawal",
      "status": "pending",
      "occurredAt": "2025-01-30T16:11:56.274Z",
      "createdAt": "2025-01-30T16:12:37.336Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=24&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=25&limit=24",
    "prev": "/api/v1/transactions?page=23&limit=24"
  }
}