/v1/hashrate
Network hashrate (EH/s) now and as a timeseries
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/hashrate-api/v1/hashrate" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashrate-api/v1/hashrate", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashrate-api/v1/hashrate");
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/hashrate-api/v1/hashrate",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "Bitcoin's network hashrate — the total computing power securing the chain, in EH/s (exahashes per second) — now and as a daily timeseries over the chosen window. A rising hashrate means more miners and a more secure, harder-to-attack chain. Pass period (1m, 3m, 6m, 1y, 2y, 3y, all; default 1y) and limit (1-365 most-recent points, default 30). Live, cached ~60s.",
"period": "1y",
"points": 30,
"source": "mempool.space public API (v1/mining/hashrate), keyless",
"history": [
{
"date": "2026-06-12T00:00:00.000Z",
"hashrate_ehs": 932.13
},
{
"date": "2026-06-11T00:00:00.000Z",
"hashrate_ehs": 852.17
},
{
"date": "2026-06-10T00:00:00.000Z",
"hashrate_ehs": 860.83
},
{
"date": "2026-06-09T00:00:00.000Z",
"hashrate_ehs": 898.39
},
{
"date": "2026-06-08T00:00:00.000Z",
"hashrate_ehs": 806.9
},
{
"date": "2026-06-07T00:00:00.000Z",
"hashrate_ehs": 830.23
},
{
"date": "2026-06-06T00:00:00.000Z",
"hashrate_ehs": 926.82
},
{
"date": "2026-06-05T00:00:00.000Z",
"hashrate_ehs": 990.52
},
{
"date": "2026-06-04T00:00:00.000Z",
"hashrate_ehs": 752.89
},
{
"date": "2026-06-03T00:00:00.000Z",
"hashrate_ehs": 759.81
},
{
"date": "2026-06-02T00:00:00.000Z",
"hashrate_ehs": 922.21
},
{
"date": "2026-06-01T00:00:00.000Z",
"hashrate_ehs": 1007.69
},
{
"date": "2026-05-31T00:00:00.000Z",
"hashrate_ehs": 977.27
},
{
"date": "2026-05-30T00:00:00.000Z",
"hashrate_ehs": 959.21
},
{
"date": "2026-05-29T00:00:00.000Z",
"hashrate_ehs": 1101.45
},
{
"date": "2026-05-28T00:00:00.000Z",
"hashrate_ehs": 949.12
},
{
"date": "2026-05-27T00:00:00.000Z",
"hashrate_ehs": 940.36
},
{
"date": "2026-05-26T00:00:00.000Z",
"hashrate_ehs": 1130.4
},
{
"date": "2026-05-25T00:00:00.000Z",
"hashrate_ehs": 886.35
},
{
"date": "2026-05-24T00:00:00.000Z",
"hashrate_ehs": 1112.35
},
{
"date": "2026-05-23T00:00:
…