Aller au contenu
GET /v1/meta

Service metadata

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/hashrate-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/hashrate-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashrate-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashrate-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/hashrate-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": "difficulty, halving and meta take no parameters. hashrate takes period (1m/3m/6m/1y/2y/3y/all, default 1y) and limit (1-365, default 30). rewards takes blocks (1-1000, default 144). Hashrate is in EH/s, difficulty in raw and trillions, rewards in BTC (from satoshis), times in UTC ISO-8601. A short ~60-second protective cache fronts the upstream.",
        "source": "mempool.space public API, keyless, live",
        "service": "hashrate-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/halving": "Countdown to the next block-subsidy halving (height, subsidy, blocks/days left).",
            "GET /v1/rewards": "Block-reward economics over a window — subsidy, fees, fee share (blocks).",
            "GET /v1/hashrate": "Network hashrate in EH/s, now and as a timeseries (period, limit).",
            "GET /v1/difficulty": "Current difficulty + the next-adjustment countdown (progress, projected change, blocks left)."
        },
        "description": "Bitcoin's network-security and mining-economics layer, live and keyless: hashrate, mining difficulty, the difficulty-adjustment countdown, the halving countdown and per-window block-reward economics, from mempool.space. The difficulty endpoint gives the current difficulty and the live adjustment countdown (epoch progress, projected change, blocks to retarget); hashrate gives the network hashrate in EH/s plus a historical timeseries; halving counts down to the next subsidy halving (height, subsidy, blocks/days remaining); rewards gives block-reward economics (subsidy, fees, fee share). The Bitcoin difficulty / hashrate / halving cut — distinct from the Bitcoin block-explorer feed (mempool, fees, blocks, addresses), the mining-pool-distribution feed (who finds blocks), and the multi-coin mining-profitability feed.",
        "upstream_status": "ok",
        "sample_difficulty": {
            "epoch_progress_pct": 92.06,
            "estimated_change_pct": -10.32
        }
    },
    "meta": {
        "timestamp": "2026-06-12T19:35:55.947Z",
        "request_id": "295c01fb-77bf-4957-881e-2e29bae33677"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}