Free access to cryptocurrency and Bitcoin blockchain data
Please note that this API is public and offered for free. Be kind and don't abuse this free service or else we automatically ban your IP address. Do not query API endpoints more often than once per minute.
Returns the latest Bitcoin block height as a plain text number.
/api/bitcoin/height
840000
Content-Type: text/plain
Returns the last mined Bitcoin block number and timestamp.
/api/bitcoin-last-block
{
"hash": "0000000000000000000...",
"height": 840000,
"time": 1713484800
}
Returns cryptocurrency exchange rates for all supported fiat currencies.
/api/crypto-exchange-rates
| Name | Required | Description |
|---|---|---|
fiat |
Optional | Filter by fiat currency (USD, CAD, EUR, GBP) |
/api/crypto-exchange-rates?fiat=USD
{
"USD": {
"BTC": {"rate": 72194.33, "trend": "up"},
"ETH": {"rate": 2215.97, "trend": "down"}
}
}
Real-time notifications when a new Bitcoin block is mined. Connect via WebSocket to receive push updates.
ws://kryptotracker.net/ws
const ws = new WebSocket("ws://kryptotracker.net/ws");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log(data);
};
{
"type": "new_block",
"block": 840000,
"hash": "0000000000000000000...",
"time": 1713484800
}