/v1/range
Start/end block, block count and avg block time for a window
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/blocktime-api/v1/range" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/blocktime-api/v1/range", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/blocktime-api/v1/range");
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/blocktime-api/v1/range",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "The first and last block covering the time window, the number of blocks in it, and the average block time across the window.",
"chain": "ethereum",
"source": "DeFiLlama",
"end_block": 19129889,
"block_count": 220994,
"start_block": 18908895,
"end_timestamp": 1706745600,
"start_timestamp": 1704067200,
"duration_seconds": 2678400,
"avg_block_time_seconds": 12.12
},
"meta": {
"timestamp": "2026-06-14T08:04:14.428Z",
"request_id": "6b10183e-b947-46c9-a849-701b8387813b"
},
"status": "ok",
"message": "Block range retrieved successfully",
"success": true
}