/v1/halving
Countdown to the next halving
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}