example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Browse 498 crypto-holdings records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Showing first 6 of 24 on this page.

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/crypto-holdings?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/crypto-holdings.d.ts https://example-data.com/types/crypto-holdings.d.ts
import type { CryptoHolding, ListEnvelope } from "./types/crypto-holdings";

const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<CryptoHolding>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 1,
      "userId": 1,
      "cryptoId": 13,
      "quantity": 85.07869486,
      "costBasis": 0.00000492,
      "purchasedAt": "2025-03-11T09:55:17.870Z"
    },
    {
      "id": 2,
      "userId": 1,
      "cryptoId": 6,
      "quantity": 20.66360485,
      "costBasis": 0.63058925,
      "purchasedAt": "2026-05-06T19:59:24.785Z"
    },
    {
      "id": 3,
      "userId": 2,
      "cryptoId": 29,
      "quantity": 30.96952154,
      "costBasis": 208.03298733,
      "purchasedAt": "2025-07-31T02:06:45.168Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 498,
    "totalPages": 20
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=1",
    "first": "/api/v1/crypto-holdings?page=1",
    "last": "/api/v1/crypto-holdings?page=20",
    "next": "/api/v1/crypto-holdings?page=2",
    "prev": null
  }
}

View full response →