Skip to content
GET /v1/metrics

Directory of available metrics

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bitcoinmetrics-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/bitcoinmetrics-api/v1/metrics" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitcoinmetrics-api/v1/metrics", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitcoinmetrics-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/bitcoinmetrics-api/v1/metrics",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 15,
        "source": "blockchain.com",
        "metrics": [
            {
                "name": "Market Price",
                "unit": "USD",
                "chart": "market-price",
                "metric": "price",
                "category": "market"
            },
            {
                "name": "Market Capitalization",
                "unit": "USD",
                "chart": "market-cap",
                "metric": "marketcap",
                "category": "market"
            },
            {
                "name": "Hash Rate",
                "unit": "TH/s",
                "chart": "hash-rate",
                "metric": "hashrate",
                "category": "mining"
            },
            {
                "name": "Difficulty",
                "unit": "",
                "chart": "difficulty",
                "metric": "difficulty",
                "category": "mining"
            },
            {
                "name": "Miners Revenue",
                "unit": "USD",
                "chart": "miners-revenue",
                "metric": "miners-revenue",
                "category": "mining"
            },
            {
                "name": "Transactions per Day",
                "unit": "count",
                "chart": "n-transactions",
                "metric": "transactions",
                "category": "network"
            },
            {
                "name": "Transaction Fees",
                "unit": "USD",
                "chart": "transaction-fees-usd",
                "metric": "fees-usd",
                "category": "network"
            },
            {
                "name": "Cost per Transaction",
                "unit": "USD",
                "chart": "cost-per-transaction",
                "metric": "cost-per-tx",
                "category": "network"
            },
            {
                "name": "Circulating Supply",
                "unit": "BTC",
                "chart": "total-bitcoins",
                "metric": "supply",
                "category": "supply"
            },
            {
                "name": "Mempool Size",
                "unit": "bytes",
                "chart": "mempool-size",
                "metric": "mempool-bytes",
                "category": "network"
            },
            {
                "name": "Average Block Size",
                "unit": "MB",
                "chart": "avg-block-size",
                "metric": "block-size",
                "category": "network"
            },
            {
                "name": "Est. Transaction Volume",
                "unit": "USD",
                "chart": "estimated-transaction-volume-usd",
                "metric": "tx-volume-usd",
                "category": "network"
            },
            {
                "name": "Unique Addresses per Day",
                "unit": "count",
                "chart": "n-unique-addresses",
                "metric": "unique-addresses",
      
…