curl -sS \
"https://example-data.com/api/v1/crypto/15" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/15"
);
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/15"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/15"
)
crypto = res.json() {
"id": 15,
"symbol": "TRX",
"name": "TRON",
"slug": "tron",
"marketCap": 9702528000,
"price": 0.110256,
"priceChangePercent24h": -18.44,
"volume24h": 1461369352,
"circulatingSupply": 88000000000,
"totalSupply": null,
"createdAt": "2024-09-26T17:56:38.680Z"
}