MineCryptoNight API

License

This API and the data it provides is licensed under a Creative Commons Attribution 4.0 International License. Read the licence, understand it and act accordingly.

Endpoints

Do not call more than once per minute. There won't be changes anyway. Data updates are dependent on the block time for each currency. Use a database or cache if you want to process or access the data more often.

1. Best currencies

If you want to automate your mining operation with a script, this is the endpoint to go for. It simply tells you which currency performed best for different periods of time (current, last hour, last 24 hours). Currencies with data older than 30 minutes will be filtered.

Request
Response

Returns a valid JSON document with the best currency (ticker symbol) for different periods. See sample below for exact document structure.

Possible HTTP status codes:

Sample
https://minecryptonight.net/api/best
{
   "current": "KRB",
   "1_hour": "ETN",
   "24_hours": "ETN"
}

2. Calculate reward for all currencies

Calculates the reward for all supported currencies in coins, BTC, $USD and EUR € from the provided hash rate.

Request
Response

Returns a valid JSON document that contains the reward for all supported currencies. The rewards array will be sorted by profitability (in $USD), from highest to lowest. For more details about the data structure see sample below.

Possible HTTP status codes:

Sample
https://minecryptonight.net/api/rewards?hr=100&limit=3
{
   "hash_rate": 100,
   "cryptonight-fast_factor": 2.5,
   "cryptonight-heavy_factor": 0.6,
   "cryptonight-lite_factor": 2.5,
   "cryptonight-lite-tube_factor": 1.5,
   "rewards": [
      {
         "ticker_symbol": "SUMO",
         "algorithm": "cryptonight-heavy",
         "last_network_update": "2018-04-07T12:41:31.181362328+02:00",
         "last_price_update": "2018-04-07T12:39:17.988349111+02:00",
         "reward_24h": {
            "coins": 0.09814501080377841,
            "btc": 0.00001686229430619717,
            "usd": 0.11574142979078783,
            "eur": 0.09419269039233896
         },
         "reward_7d": {
            "coins": 0.6870150756264488,
            "btc": 0.00011803606014338016,
            "usd": 0.8101900085355148,
            "eur": 0.6593488327463727
         },
         "reward_30d": {
            "coins": 2.9443503241133535,
            "btc": 0.0005058688291859153,
            "usd": 3.4722428937236365,
            "eur": 2.82578071177017
         },
         "reward_1y": {
            "coins": 35.82292894337922,
            "btc": 0.006154737421761983,
            "usd": 42.245621873637674,
            "eur": 34.38033199320381
         }
      },
      {
         "ticker_symbol": "KRB",
         "algorithm": "cryptonight",
         "last_network_update": "2018-04-07T12:41:39.387412044+02:00",
         "last_price_update": "2018-04-07T12:38:51.601585537+02:00",
         "reward_24h": {
            "coins": 0.20399843177209023,
            "btc": 0.000012994700103882148,
            "usd": 0.089187094378599,
            "eur": 0.07258224114719143
         },
         "reward_7d": {
            "coins": 1.4279890224046317,
            "btc": 0.00009096290072717504,
            "usd": 0.6243096606501929,
            "eur": 0.50807568803034
         },
         "reward_30d": {
            "coins": 6.119952953162711,
            "btc": 0.0003898410031164647,
            "usd": 2.6756128313579715,
            "eur": 2.177467234415744
         },
         "reward_1y": {
            "coins": 74.45942759681323,
            "btc": 0.004743065537917003,
            "usd": 32.55328944818876,
            "eur": 26.492518018724976
         }
      }
   ]
}
Banner for LocalMonero
Banner for NiceHash