crypto / #2
- symbol
- ETH
- name
- Ethereum
- slug
- ethereum
- marketCap
- 344340000000
- price
- 2869.5
- priceChangePercent24h
- -10.98
- volume24h
- 1072402001
- circulatingSupply
- 120000000
- totalSupply
- —
- createdAt
Component variants
Medium
Ethereum
#2
Small
crypto/2 curl -sS \
"https://example-data.com/api/v1/crypto/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/2"
);
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/2"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/2"
)
crypto = res.json() {
"id": 2,
"symbol": "ETH",
"name": "Ethereum",
"slug": "ethereum",
"marketCap": 344340000000,
"price": 2869.5,
"priceChangePercent24h": -10.98,
"volume24h": 1072402001,
"circulatingSupply": 120000000,
"totalSupply": null,
"createdAt": "2026-03-28T08:57:44.378Z"
}