Skip to content
GET /v1/hashrate

Live hashrate (TH/s) and BlockDAG state: block/header counts, tips, difficulty

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/kaspametrics-api

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

Get an API key

Code snippets

curl "https://api.oanor.com/kaspametrics-api/v1/hashrate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kaspametrics-api/v1/hashrate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kaspametrics-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/kaspametrics-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": "Live Kaspa network hashrate (in TH/s) and BlockDAG state: the total block and header counts, the number of current DAG tips and the difficulty. Kaspa is a parallel proof-of-work BlockDAG, so many blocks confirm per second.",
        "source": "Kaspa REST",
        "network": "kaspa-mainnet",
        "tip_count": 10,
        "difficulty": 20595965226266084,
        "block_count": 1430378,
        "hashrate_th": 411919.3,
        "header_count": 1430378,
        "past_median_time": 1781456537927,
        "virtual_daa_score": 460370634
    },
    "meta": {
        "timestamp": "2026-06-14T17:04:31.194Z",
        "request_id": "8ef293a8-485a-4dba-9a53-1e351b59e4e8"
    },
    "status": "ok",
    "message": "Hashrate retrieved successfully",
    "success": true
}