curl -sS \
"https://example-data.com/api/v1/crypto/4" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/4"
);
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/4"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/4"
)
crypto = res.json() {
"id": 4,
"symbol": "SOL",
"name": "Solana",
"slug": "solana",
"marketCap": 69266550000,
"price": 161.085,
"priceChangePercent24h": -16.09,
"volume24h": 7477672809,
"circulatingSupply": 430000000,
"totalSupply": null,
"createdAt": "2025-10-24T18:19:52.834Z"
}