Aller au contenu
GET /v1/difficulty

History of difficulty adjustments with change percent

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/difficulty" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mining-api/v1/difficulty", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mining-api/v1/difficulty");
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/difficulty",
    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": {
        "count": 6,
        "period": "3m",
        "source": "mempool.space",
        "adjustments": [
            {
                "date": "2026-05-29T10:29:46.000Z",
                "height": 951552,
                "change_pct": 1.719,
                "difficulty_t": 138.9554
            },
            {
                "date": "2026-05-15T16:01:24.000Z",
                "height": 949536,
                "change_pct": 3.121,
                "difficulty_t": 136.6071
            },
            {
                "date": "2026-05-02T02:06:45.000Z",
                "height": 947520,
                "change_pct": -2.3031,
                "difficulty_t": 132.472
            },
            {
                "date": "2026-04-17T17:55:37.000Z",
                "height": 945504,
                "change_pct": -2.4265,
                "difficulty_t": 135.5949
            },
            {
                "date": "2026-04-03T09:28:40.000Z",
                "height": 943488,
                "change_pct": 3.867,
                "difficulty_t": 138.9669
            },
            {
                "date": "2026-03-20T21:54:19.000Z",
                "height": 941472,
                "change_pct": -7.7557,
                "difficulty_t": 133.7931
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-10T14:01:29.355Z",
        "request_id": "845d60d4-075a-4073-bf54-4839f5cdbd2a"
    },
    "status": "ok",
    "message": "Difficulty retrieved successfully",
    "success": true
}