Aller au contenu
GET /v1/coin

Full mining stats for one coin

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/whattomine-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/whattomine-api/v1/coin" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/whattomine-api/v1/coin", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/whattomine-api/v1/coin");
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/whattomine-api/v1/coin",
    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": {
        "tag": "RVN",
        "name": "Ravencoin",
        "source": "WhatToMine",
        "nethash": 1954625201458,
        "updated": "2026-06-11T16:44:09.000Z",
        "algorithm": "KawPow",
        "difficulty": 27305.79862546014,
        "last_block": 4406440,
        "market_cap": 68458997,
        "btc_revenue": 5.11e-6,
        "block_reward": 1250,
        "block_time_s": 60,
        "profitability": 370,
        "btc_exchange_rate": 6.704518529569208e-8,
        "estimated_rewards": 76.24668,
        "profitability_24h": 336
    },
    "meta": {
        "timestamp": "2026-06-11T16:47:01.505Z",
        "request_id": "fbaa77fa-7552-4871-bb99-94f044bb4299"
    },
    "status": "ok",
    "message": "Coin retrieved successfully",
    "success": true
}