Aller au contenu
GET /v1/metrics

Directory of available metrics

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/bitcoinmetrics-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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",
      
…