Bitcoin
- symbol
- BTC
- name
- Bitcoin
- slug
- bitcoin
- marketCap
- 900022500000
- price
- 46155
- priceChangePercent24h
- -2.04
- volume24h
- 7638122780
- circulatingSupply
- 19500000
- totalSupply
- 21000000
- createdAt
Overview
crypto / #1
Bitcoin
#1
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto/1" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto/1" ); 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/1"
);
const crypto = (await res.json()) as Crypto; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto/1"
)
crypto = res.json() Response
{
"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"
}