📡 API Documentation
Access BTCPool.Online data programmatically with our REST API
Base URL:
https://btcpool.online/api/v1
GET/stats
Get comprehensive pool and network statistics
Response:
{ "success": true, "data": { "btcPrice": {...}, "networkStats": {...}, "poolStats": {...} } }GET/price
Get current Bitcoin price and 24h change
Response:
{ "success": true, "data": { "price": 85000, "change24h": 2.5, "marketCap": 1650000000000 } }GET/network
Get Bitcoin network statistics (hashrate, difficulty, block height)
Response:
{ "success": true, "data": { "blocks": 879000, "difficulty": 110000000000000, "networkHashrate": 800000000000000000000 } }GET/blocks
Get latest Bitcoin blocks. Optional: ?count=15 (max 100)
Response:
{ "success": true, "count": 15, "data": [{ "height": 879000, "hash": "...", "pool": "Foundry USA", ... }] }GET/block/:hashOrHeight
Get detailed information about a specific block
Example:
/api/v1/block/879000
GET/miner/:address
Get statistics for a specific miner by wallet address
Example:
/api/v1/miner/bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
GET/calculator
Calculate solo mining statistics. Params: hashrate, unit (TH/s, PH/s, etc.)
Example:
/api/v1/calculator?hashrate=100&unit=TH/s
GET/pools
Get mining pool distribution (7 day)
GET/halving
Get next Bitcoin halving information