Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitcoinmetrics-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitcoinmetrics-api/v1/meta");
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/meta",
    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": {
        "note": "metric is one of the keys from /v1/metrics (hash-rate, difficulty, miners-revenue, transactions, fees-usd, market price, supply …). timespan is 30days, 90days, 1year (default), 2years, 5years or all. Each metric is a daily time series; values carry the unit shown in the metrics directory.",
        "source": "blockchain.com charts API (api.blockchain.info/charts, live)",
        "service": "bitcoinmetrics-api",
        "btc_price": 61450.38,
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/latest": "A metric's current value with recent change (metric=difficulty).",
            "GET /v1/metric": "One metric's time series + summary over a window (metric=hashrate, timespan=1year).",
            "GET /v1/metrics": "Directory of all available metrics with their units and categories."
        },
        "description": "The long-run on-chain economics of Bitcoin as time series, from blockchain.com. metric returns one metric's full time series over a chosen window with summary stats (first, last, change, min, max, average); latest returns a metric's current value with recent change; metrics lists every available metric (hash rate, difficulty, miners revenue, transactions, fees, market price/cap, supply, mempool size, block size, on-chain volume, unique addresses, UTXO count, confirmation time). Live, no key, nothing stored. The historical / charting view of Bitcoin's network economics — distinct from the live mempool-snapshot, multi-chain network-stats and price-feed APIs.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-12T01:41:32.331Z",
        "request_id": "6dd2c0d4-cff0-4bb7-be95-333eae167176"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}