BNB
- symbol
- BNB
- name
- BNB
- slug
- bnb
- marketCap
- 63874440000
- price
- 417.48
- priceChangePercent24h
- -19.73
- volume24h
- 3318740793
- circulatingSupply
- 153000000
- totalSupply
- 200000000
- createdAt
Overview
crypto / #3
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto/3" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto/3" ); const crypto = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/crypto.d.ts https://example-data.com/types/crypto.d.ts
import type { Crypto } from "./types/crypto";
const res = await fetch(
"https://example-data.com/api/v1/crypto/3"
);
const crypto = (await res.json()) as Crypto; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/3"
)
crypto = res.json() Response
{
"id": 3,
"symbol": "BNB",
"name": "BNB",
"slug": "bnb",
"marketCap": 63874440000,
"price": 417.48,
"priceChangePercent24h": -19.73,
"volume24h": 3318740793,
"circulatingSupply": 153000000,
"totalSupply": 200000000,
"createdAt": "2024-11-25T03:12:13.278Z"
}