Vai al contenuto
GET /v1/hashrate

Current network hashrate and difficulty plus history

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/mining-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/mining-api/v1/hashrate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mining-api/v1/hashrate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mining-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/mining-api/v1/hashrate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "period": "1m",
        "points": 31,
        "source": "mempool.space",
        "hashrate_history": [
            {
                "date": "2026-05-11T00:00:00.000Z",
                "hashrate_ehs": 993.9411
            },
            {
                "date": "2026-05-12T00:00:00.000Z",
                "hashrate_ehs": 1107.9023
            },
            {
                "date": "2026-05-13T00:00:00.000Z",
                "hashrate_ehs": 864.9438
            },
            {
                "date": "2026-05-14T00:00:00.000Z",
                "hashrate_ehs": 916.314
            },
            {
                "date": "2026-05-15T00:00:00.000Z",
                "hashrate_ehs": 987.446
            },
            {
                "date": "2026-05-16T00:00:00.000Z",
                "hashrate_ehs": 968.6996
            },
            {
                "date": "2026-05-17T00:00:00.000Z",
                "hashrate_ehs": 1029.7729
            },
            {
                "date": "2026-05-18T00:00:00.000Z",
                "hashrate_ehs": 960.3486
            },
            {
                "date": "2026-05-19T00:00:00.000Z",
                "hashrate_ehs": 936.4806
            },
            {
                "date": "2026-05-20T00:00:00.000Z",
                "hashrate_ehs": 962.9338
            },
            {
                "date": "2026-05-21T00:00:00.000Z",
                "hashrate_ehs": 1042.2743
            },
            {
                "date": "2026-05-22T00:00:00.000Z",
                "hashrate_ehs": 853.8633
            },
            {
                "date": "2026-05-23T00:00:00.000Z",
                "hashrate_ehs": 1063.8837
            },
            {
                "date": "2026-05-24T00:00:00.000Z",
                "hashrate_ehs": 1112.3522
            },
            {
                "date": "2026-05-25T00:00:00.000Z",
                "hashrate_ehs": 886.353
            },
            {
                "date": "2026-05-26T00:00:00.000Z",
                "hashrate_ehs": 1130.3989
            },
            {
                "date": "2026-05-27T00:00:00.000Z",
                "hashrate_ehs": 940.3621
            },
            {
                "date": "2026-05-28T00:00:00.000Z",
                "hashrate_ehs": 949.1191
            },
            {
                "date": "2026-05-29T00:00:00.000Z",
                "hashrate_ehs": 1101.448
            },
            {
                "date": "2026-05-30T00:00:00.000Z",
                "hashrate_ehs": 959.2063
            },
            {
                "date": "2026-05-31T00:00:00.000Z",
                "hashrate_ehs": 977.2729
            },
            {
                "date": "2026-06-01T00:00:00.000Z",
                "hashrate_ehs": 1007.689
            },
            {
                "date": "2026-06-02T00:00:00.000Z",
                "hashrate_ehs": 922.2064
            },
            {
                "date": "2026-06-03T00:00:00.000Z"
…