/v1/schedule
The full halving schedule
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/bitcoinhalving-api/v1/schedule" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitcoinhalving-api/v1/schedule", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitcoinhalving-api/v1/schedule");
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/schedule",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"schedule": [
{
"epoch": 0,
"is_current": false,
"approx_year": 2009,
"start_block": 0,
"subsidy_btc": 50
},
{
"epoch": 1,
"is_current": false,
"approx_year": 2013,
"start_block": 210000,
"subsidy_btc": 25
},
{
"epoch": 2,
"is_current": false,
"approx_year": 2017,
"start_block": 420000,
"subsidy_btc": 12.5
},
{
"epoch": 3,
"is_current": false,
"approx_year": 2021,
"start_block": 630000,
"subsidy_btc": 6.25
},
{
"epoch": 4,
"is_current": true,
"approx_year": 2025,
"start_block": 840000,
"subsidy_btc": 3.125
},
{
"epoch": 5,
"is_current": false,
"approx_year": 2029,
"start_block": 1050000,
"subsidy_btc": 1.5625
},
{
"epoch": 6,
"is_current": false,
"approx_year": 2033,
"start_block": 1260000,
"subsidy_btc": 0.78125
},
{
"epoch": 7,
"is_current": false,
"approx_year": 2037,
"start_block": 1470000,
"subsidy_btc": 0.390625
},
{
"epoch": 8,
"is_current": false,
"approx_year": 2041,
"start_block": 1680000,
"subsidy_btc": 0.1953125
},
{
"epoch": 9,
"is_current": false,
"approx_year": 2045,
"start_block": 1890000,
"subsidy_btc": 0.09765625
},
{
"epoch": 10,
"is_current": false,
"approx_year": 2049,
"start_block": 2100000,
"subsidy_btc": 0.04882813
},
{
"epoch": 11,
"is_current": false,
"approx_year": 2053,
"start_block": 2310000,
"subsidy_btc": 0.02441406
},
{
"epoch": 12,
"is_current": false,
"approx_year": 2057,
"start_block": 2520000,
"subsidy_btc": 0.01220703
},
{
"epoch": 13,
"is_current": false,
"approx_year": 2061,
"start_block": 2730000,
"subsidy_btc": 0.00610352
},
{
…