curl -sS \
"https://example-data.com/api/v1/crypto/5" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/5"
);
const crypto = await res.json();import type { Crypto } from "https://example-data.com/types/crypto.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/crypto/5"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/5"
)
crypto = res.json() {
"id": 5,
"symbol": "XRP",
"name": "XRP",
"slug": "xrp",
"marketCap": 25658100000,
"price": 0.57018,
"priceChangePercent24h": -8.06,
"volume24h": 8717988803,
"circulatingSupply": 45000000000,
"totalSupply": 100000000000,
"createdAt": "2026-01-17T21:20:03.039Z"
}