btcintel

A block's figures, as the node computes them (getblockstats)

GET /v1/blocks/{id}/stats
who may call it
Anyone
no key and no session
what it costs
1 request of the quota
tiers and keys
how fresh
Depends on the request
every answer carries the index's height and the node's
MCP tool
None
Block by height or canonical hash has one: get_block
how fresh, by case
by hash: cached for 7 days, it never changes
by height: cached for 10 seconds, and up to 30 seconds more while it is read again
On this page

Bitcoin Core's getblockstats for one block, renamed to the API's units: the transaction, input and output counts, the total output, the fees (total and median), the subsidy and the reward (subsidy plus fees), the segwit counts and weight, and the change of the UTXO set. Core counts the coinbase in some figures and not in others: txs and outs count it; ins, total_out_sat, total_weight and total_size cover the non-coinbase transactions only. fee_rate_avg is exact: the total fee over the total weight, in sat/vB. Core's own rates (core_fee_rates: minimum, average, maximum and the 10th, 25th, 50th, 75th and 90th percentile of weight) are served verbatim, under Core's names, and are whole sat/vB rounded down (Core divides integers), so a sub-1 sat/vB block reads 0 there; the unrounded percentiles are in the block's summary. A percentile is an individual rate, not the effective rate of a package (bitcoin/bitcoin#31140). A block named by its hash answers with an immutable cache; one named by its height is a reorg away from meaning another block and is kept ten seconds. 404 when the node cannot compute them: it does not have the block, it pruned the block's data, or it has no undo data for it (a stale block it never connected has none).

Parameters

NameWhereTypeRequiredWhat it does
idpathstringrequiredHeight (decimal) or canonical block hash (64 hex).

What it answers

The block's figures.

FieldTypeWhat it carries
subjectobjectThe block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for.
statsobjectThe node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added.
schema
  • subject Subject required — The block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for.
    • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
    • key string — Canonical key.
  • stats object required — The node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added.
    • method string required — Where the figures come from: always getblockstats, the node's own computation. · one of "getblockstats"
    • height integer required — The block's height, as the node gives it.
    • txs integer required — Transactions, the coinbase included.
    • ins integer — Inputs, the coinbase's left out.
    • outs integer — Outputs, the coinbase's included.
    • total_out_sat integer — The value of every output but the coinbase's.
    • total_fee_sat integer required — The fees of the block's transactions, in sat (Core's totalfee).
    • subsidy_sat integer required — The block subsidy at its height, in sat (Core's subsidy).
    • reward_sat integer required — Subsidy plus fees.
    • fee_rate_avg number — sat/vB, exact: the total fee × 4 over the total weight, three decimals. Absent when the block has no non-coinbase weight.
    • fee_median_sat integer — The median fee of the block's transactions, in sat, truncated as Core computes it (medianfee).
    • core_fee_rates object — Core's rates as getblockstats prints them: whole sat/vB, rounded down.
      • minfeerate number — The lowest fee rate, Core's minfeerate.
      • avgfeerate number — The average fee rate, Core's avgfeerate.
      • maxfeerate number — The highest fee rate, Core's maxfeerate.
      • feerate_percentiles array of number — At the 10th, 25th, 50th, 75th and 90th percentile of weight.
    • segwit_txs integer — The block's segwit transactions (Core's swtxs).
    • segwit_weight integer — The total weight of those segwit transactions, in weight units (Core's swtotal_weight).
    • total_weight integer — The total weight of the non-coinbase transactions, in weight units (Core's total_weight).
    • total_size integer — The total size of the non-coinbase transactions, in bytes (Core's total_size).
    • utxo_increase integer — The change in the count of unspent outputs, unspendable outputs counted.
    • utxo_increase_actual integer — The same without the unspendable outputs. Bitcoin Core gives it since 25.0; absent from an older node.
    • utxo_size_inc integer — The change in the size of the UTXO set, in bytes, unspendable outputs counted (Core's utxo_size_inc).
    • median_time_unix integer — The block's median time past, in unix seconds (Core's mediantime).

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. The message says which.
501not_configurednot_configured: this deployment does not run what the route needs, for example the mempool engine, accounts, the intel store or watchlists. The message names it.
503index_unavailableindex_unavailable: the node did not answer.

Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.

Example

curl and jq, in any shell.

curl -s https://api.btcintel.io/v1/blocks/968212/stats | jq

The answer, read on 23 Nov 2026 at 14:56 UTC

{
  "stats": {
    "core_fee_rates": {
      "avgfeerate": 1,
      "feerate_percentiles": [
        0,
        0,
        1,
        2,
        4
      ],
      "maxfeerate": 100,
      "minfeerate": 0
    },
    "fee_median_sat": 45,
    "fee_rate_avg": 1.701,
    "height": 968212,
    "ins": 7649,
    "median_time_unix": 1790125957,
    "method": "getblockstats",
    "outs": 11732,
    "reward_sat": 314198142,
    "segwit_txs": 3884,
    "segwit_weight": 3136344,
    "subsidy_sat": 312500000,
    "total_fee_sat": 1698142,
    "total_out_sat": 408598427396,
    "total_size": 1569134,
    "total_weight": 3993944,
    "txs": 5089,
    "utxo_increase": 4083,
    "utxo_increase_actual": 678,
    "utxo_size_inc": 297077
  },
  "subject": {
    "key": "00000000000000000000c1a9a8e7e5b6042c0a2b1452e9fe4c2e7638b2458648",
    "kind": "block"
  }
}

Its headers

Cache-Control: public, max-age=10, stale-while-revalidate=30
X-Btcintel-Index-Height: 977224
X-Btcintel-Node-Height: 977224
X-Ratelimit-Limit: 120
X-Ratelimit-Remaining: 215
X-Ratelimit-Tier: t0