Naar de inhoud
GET /v1/coin

Full mining stats for one coin

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/whattomine-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

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