crypto / #1
- symbol
- BTC
- name
- Bitcoin
- slug
- bitcoin
- marketCap
- 900022500000
- price
- 46155
- priceChangePercent24h
- -2.04
- volume24h
- 7638122780
- circulatingSupply
- 19500000
- totalSupply
- 21000000
- createdAt
Component variants
Medium
Bitcoin
#1
Small
crypto/1 curl -sS \
"https://example-data.com/api/v1/crypto/1" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/crypto/1"
);
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/1"
);
const crypto = (await res.json()) as Crypto;import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/1"
)
crypto = res.json() {
"id": 1,
"symbol": "BTC",
"name": "Bitcoin",
"slug": "bitcoin",
"marketCap": 900022500000,
"price": 46155,
"priceChangePercent24h": -2.04,
"volume24h": 7638122780,
"circulatingSupply": 19500000,
"totalSupply": 21000000,
"createdAt": "2026-02-07T01:29:08.434Z"
}