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
- how fresh
- Depends on the request
- every answer carries the index's height and the node's
- 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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | string | required | Height (decimal) or canonical block hash (64 hex). |
What it answers
The block's figures.
| Field | Type | What it carries |
|---|---|---|
subject | object | The block the figures are of: kind block and its canonical hash, the one asked for or the one at the height asked for. |
stats | object | The node's getblockstats for the block, renamed to the API's units, with the reward and the exact average rate added. |
schema
subjectSubject required — The block the figures are of: kindblockand its canonical hash, the one asked for or the one at the height asked for.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
statsobject required — The node'sgetblockstatsfor the block, renamed to the API's units, with the reward and the exact average rate added.methodstring required — Where the figures come from: alwaysgetblockstats, the node's own computation. · one of "getblockstats"heightinteger required — The block's height, as the node gives it.txsinteger required — Transactions, the coinbase included.insinteger — Inputs, the coinbase's left out.outsinteger — Outputs, the coinbase's included.total_out_satinteger — The value of every output but the coinbase's.total_fee_satinteger required — The fees of the block's transactions, in sat (Core'stotalfee).subsidy_satinteger required — The block subsidy at its height, in sat (Core'ssubsidy).reward_satinteger required — Subsidy plus fees.fee_rate_avgnumber — sat/vB, exact: the total fee × 4 over the total weight, three decimals. Absent when the block has no non-coinbase weight.fee_median_satinteger — The median fee of the block's transactions, in sat, truncated as Core computes it (medianfee).core_fee_ratesobject — Core's rates as getblockstats prints them: whole sat/vB, rounded down.minfeeratenumber — The lowest fee rate, Core'sminfeerate.avgfeeratenumber — The average fee rate, Core'savgfeerate.maxfeeratenumber — The highest fee rate, Core'smaxfeerate.feerate_percentilesarray of number — At the 10th, 25th, 50th, 75th and 90th percentile of weight.
segwit_txsinteger — The block's segwit transactions (Core'sswtxs).segwit_weightinteger — The total weight of those segwit transactions, in weight units (Core'sswtotal_weight).total_weightinteger — The total weight of the non-coinbase transactions, in weight units (Core'stotal_weight).total_sizeinteger — The total size of the non-coinbase transactions, in bytes (Core'stotal_size).utxo_increaseinteger — The change in the count of unspent outputs, unspendable outputs counted.utxo_increase_actualinteger — The same without the unspendable outputs. Bitcoin Core gives it since 25.0; absent from an older node.utxo_size_incinteger — The change in the size of the UTXO set, in bytes, unspendable outputs counted (Core'sutxo_size_inc).median_time_unixinteger — The block's median time past, in unix seconds (Core'smediantime).
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 404 | not_found | not_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. |
| 501 | not_configured | not_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. |
| 503 | index_unavailable | index_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 | jqThe 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