Start in under a minute.
One cURL command. No API key needed for basic testing. Public endpoints with IP-based rate limits are ready to go.
$ curl https://api.bitcompare.net/api/v1/prices/BTC{
"data": {
"BTC": {
"price_usd": 97432.18,
"change_24h": 2.34,
"volume_24h": 28400000000,
"providers": 45,
"last_updated": "2026-03-03T12:00:00Z"
}
}
}Three steps to live data.
From zero to production in minutes, not hours.
1. Make a request
Public endpoints work immediately with IP-based rate limits. Try it with cURL or your browser.
2. Get an API key
Sign up for a free key to increase rate limits. Pro keys unlock commercial use and bulk endpoints.
3. Build your product
Rates, metadata, charts, sentiment — everything you need from a single integration.
Works with every language.
REST-based API with examples in JavaScript, Python, cURL, and more.
Query rates across providers
Lending, staking, and borrowing rates from 50+ CeFi and DeFi providers. Compare APYs across platforms in a single request.
$ curl "https://api.bitcompare.net/api/v1/rates/BTC" \
-H "x-api-key: YOUR_KEY"{
"data": [
{
"provider": "Aave",
"category": "lending",
"apy": 4.82
},
{
"provider": "Compound",
"category": "lending",
"apy": 3.91
},
{
"provider": "Lido",
"category": "staking",
"apy": 3.24
}
]
}Look up coin metadata
Full metadata for 19,000+ coins — market cap, categories, network addresses, rankings. Search, filter, and paginate.
const res = await fetch(
'https://api.bitcompare.net/api/v1/coins/bitcoin',
{ headers: { 'x-api-key': 'YOUR_KEY' } }
)
const { data } = await res.json(){
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"rank": 1,
"categories": [
"layer-1",
"store-of-value"
],
"market_cap": 1920000000000
}WebSocket price streams
Subscribe to real-time price feeds with ~1 second update frequency. Available on Pro and Enterprise plans.
const ws = new WebSocket('wss://api.bitcompare.net/api/v1/prices/ws')
ws.onopen = () => {
ws.send(JSON.stringify({ subscribe: ['BTC', 'ETH'] }))
}
ws.onmessage = (event) => {
const tick = JSON.parse(event.data)
console.log(`${tick.symbol}: $${tick.price_usd}`)
}BTC: $97435.22 ETH: $3842.11 BTC: $97441.87
Historical charts in Python
OHLC price data with 5-minute to daily resolution. Up to 5 years of history for backtesting and research.
>>> import requests
res = requests.get(
'https://api.bitcompare.net/api/v1/charts/bitcoin',
params={'range': '30d', 'format': 'ohlc'},
headers={'x-api-key': 'YOUR_KEY'}
)
data = res.json()['data']
print(f"Points: {len(data)}")Points: 30
The data behind the API.
Comprehensive coverage for every crypto use case.
CeFi and DeFi rate providers
Coins with full metadata
Stablecoins with peg tracking
Fiat currencies supported
Dive into the full documentation.
Comprehensive guides, code examples, and endpoint reference.