Zum Inhalt springen
GET /v1/halving

Countdown to the next halving

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bitcoinhalving-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "halving_epoch": 4,
        "current_height": 952921,
        "days_remaining": 758,
        "estimated_date": "2028-07-06T02:58:05.025Z",
        "halvings_so_far": 4,
        "blocks_remaining": 97079,
        "next_subsidy_btc": 1.5625,
        "next_halving_block": 1050000,
        "current_subsidy_btc": 3.125,
        "avg_block_time_seconds": 675
    },
    "meta": {
        "timestamp": "2026-06-09T03:02:15.440Z",
        "request_id": "36bbc24e-e306-453b-94bd-2fc472cbce30"
    },
    "status": "ok",
    "message": "Halving retrieved successfully",
    "success": true
}