Skip to content
GET /v1/halving

Countdown to the next halving

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bitcoinhalving-api

It works. Grab an API key and use it in your project.

Get an API key

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_..."}
)

Example response

A real response from this endpoint, captured by the latest 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
}