curl -sS \
"https://example-data.com/api/v1/crypto/20" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/20"
);
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/20"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/20"
)
crypto = res.json() {
"id": 20,
"symbol": "APT",
"name": "Aptos",
"slug": "aptos",
"marketCap": 3448944000,
"price": 8.0208,
"priceChangePercent24h": -3.62,
"volume24h": 854121595,
"circulatingSupply": 430000000,
"totalSupply": 1000000000,
"createdAt": "2025-01-06T10:22:53.690Z"
}