example-data.com
Menu
Browse docs and collections

transactions

transactions

Page 70 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": 1657,
      "accountId": 289,
      "kind": "interest",
      "amount": 7898.56,
      "currency": "GBP",
      "description": "Interest charge",
      "status": "pending",
      "occurredAt": "2024-12-02T01:38:11.605Z",
      "createdAt": "2024-12-02T01:39:08.347Z"
    },
    {
      "id": 1658,
      "accountId": 270,
      "kind": "fee",
      "amount": -2462.41,
      "currency": "JPY",
      "description": "Overdraft fee",
      "status": "completed",
      "occurredAt": "2025-01-24T06:12:56.089Z",
      "createdAt": "2025-01-24T06:13:04.509Z"
    },
    {
      "id": 1659,
      "accountId": 280,
      "kind": "withdrawal",
      "amount": -4674.22,
      "currency": "GBP",
      "description": "ATM withdrawal",
      "status": "completed",
      "occurredAt": "2025-06-27T12:15:23.267Z",
      "createdAt": "2025-06-27T12:15:56.741Z"
    }
  ],
  "meta": {
    "page": 70,
    "limit": 24,
    "total": 2500,
    "totalPages": 105
  },
  "links": {
    "self": "/api/v1/transactions?page=70&limit=24",
    "first": "/api/v1/transactions?page=1&limit=24",
    "last": "/api/v1/transactions?page=105&limit=24",
    "next": "/api/v1/transactions?page=71&limit=24",
    "prev": "/api/v1/transactions?page=69&limit=24"
  }
}