Aller au contenu
GET /v1/hashrate

Current network hashrate and difficulty plus history

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/mining-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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