example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 17 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": 385,
      "accountId": 477,
      "kind": "transfer",
      "amount": 892.91,
      "currency": "USD",
      "description": "Savings transfer",
      "status": "pending",
      "occurredAt": "2025-01-07T16:59:24.262Z",
      "createdAt": "2025-01-07T16:59:37.197Z"
    },
    {
      "id": 386,
      "accountId": 350,
      "kind": "transfer",
      "amount": -1456.41,
      "currency": "CAD",
      "description": "Savings transfer",
      "status": "cancelled",
      "occurredAt": "2026-02-02T23:37:06.329Z",
      "createdAt": "2026-02-02T23:37:08.908Z"
    },
    {
      "id": 387,
      "accountId": 380,
      "kind": "withdrawal",
      "amount": -1381.25,
      "currency": "USD",
      "description": "Cash withdrawal",
      "status": "completed",
      "occurredAt": "2025-02-15T01:46:27.700Z",
      "createdAt": "2025-02-15T01:47:14.098Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=17&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=18&limit=24",
    "prev": "/api/v1/transactions?page=16&limit=24"
  }
}