{
  "name": "Bitcoin Halving API",
  "description": "Free, no-signup arithmetic for Bitcoin's halving schedule. No API key, no rate limit tracking, no live node required — pure math against the protocol's fixed issuance schedule.",
  "usage": "GET /api/halving/:height — replace :height with any non-negative block height integer.",
  "example": "https://why21million.com/api/halving/850000",
  "fields": {
    "height": "The block height you requested.",
    "era": "1-indexed halving era that height belongs to.",
    "rewardBtc": "Block subsidy in BTC during that era (0 once issuance ends, era > 33).",
    "blocksIntoEra": "How many blocks into the era this height is (0-indexed).",
    "blocksUntilNextHalving": "Blocks remaining until the next halving from this height.",
    "nextHalvingBlock": "The block height of the next halving."
  },
  "source": "https://why21million.com/book/halving-schedule/",
  "library": "https://github.com/Sergey-PrudentDev/halving-math"
}