/v1/metrics
The catalog of available on-chain metrics
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/bitcoinstats-api/v1/metrics" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitcoinstats-api/v1/metrics", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitcoinstats-api/v1/metrics");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bitcoinstats-api/v1/metrics",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 14,
"source": "blockchain.com",
"metrics": [
{
"name": "active-addresses",
"unit": "addresses",
"label": "Active addresses per day"
},
{
"name": "transactions",
"unit": "transactions",
"label": "Confirmed transactions per day"
},
{
"name": "transaction-volume-usd",
"unit": "USD",
"label": "Estimated transaction volume"
},
{
"name": "mempool-size",
"unit": "transactions",
"label": "Unconfirmed transactions in mempool"
},
{
"name": "utxo-count",
"unit": "outputs",
"label": "Unspent transaction outputs (UTXO set)"
},
{
"name": "hash-rate",
"unit": "TH/s",
"label": "Network hash rate"
},
{
"name": "difficulty",
"unit": "difficulty",
"label": "Mining difficulty"
},
{
"name": "miners-revenue-usd",
"unit": "USD",
"label": "Miners' revenue"
},
{
"name": "transaction-fees-usd",
"unit": "USD",
"label": "Total transaction fees"
},
{
"name": "avg-block-size",
"unit": "MB",
"label": "Average block size"
},
{
"name": "cost-per-transaction",
"unit": "USD",
"label": "Miners revenue per transaction"
},
{
"name": "market-cap-usd",
"unit": "USD",
"label": "Market capitalisation"
},
{
"name": "exchange-volume-usd",
"unit": "USD",
"label": "Exchange trade volume"
},
{
"name": "median-confirmation-time",
"unit": "minutes",
"label": "Median confirmation time"
}
]
},
"meta": {
"timestamp": "2026-06-10T14:00:07.320Z",
"request_id": "aa487118-a796-437a-b8fc-40b9ab14eaed"
},
"status": "ok",
"message": "Metrics retrieved successfully",
"success": true
}