Skip to content
GET /v1/hashrate

Network hashrate (EH/s) now and as a timeseries

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/hashrate-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "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:
…