To access the API endpoints, you need to include your API token for authorization. There are two ways to include your token:
Include the following header in your HTTP request:
Authorization: Token <your_api_token>
Alternatively, you can include your API token as a query parameter in the URL:
?api_token=<your_api_token>
Replace <your_api_token>
with your actual API token.
Calculate mining profitability based on provided parameters.
This endpoint provides a shorthand syntax for passing in per-algorithm settings, so that they fit within the request URL limits. See the POST version for a more machine-friendly format.
cost
: Electricity cost (optional){algorithm_name}={power}|{hashrate}{unit}
Example:
https://whattomine.com/api/v1/calculate?cost=0.1&lrev2=1500|145Mð=2000|100G
Returns a list of coins with their profitability metrics based on the input parameters.
Calculate mining profitability based on provided parameters.
cost
: Electricity cost (float)settings
: Array of algorithm settingsExample request body:
{
"cost": 0.1,
"settings": [
{
"algorithm": "sha256",
"power": 3500,
"hashrate": 110000000000000
},
]
}
Returns a list of coins with their profitability metrics based on the input parameters.
[
{
"id": 1,
"tag": "BTC",
"name": "Bitcoin",
"estimated_rewards": "0.03116",
"estimated_rewards24": "0.02996",
"btc_revenue": "0.03115865",
"btc_revenue24": "0.02996024",
"revenue": "121.18",
"revenue24": "116.52",
"profit": "112.78",
"profit24": "108.12"
}
]
Retrieve a list of supported mining algorithms.
None required.
Returns a list of available mining algorithms.
[
{
"name": "Aion",
"param_name": "eqa"
},
{
"name": "Argon2d-NIM",
"param_name": "a2n"
},
{
"name": "Autolykos",
"param_name": "al"
},
# ...
]
Retrieve a list of active coins with their current statistics and exchange rates.
None required.
Returns a list of active coins, including their latest statistics and current exchange rates.
[
{
"id": 57,
"tag": "ALPH",
"name": "Alephium",
"algorithm": "Blake3",
"algo_param_name": "b3",
"lagging": false,
"testing": false,
"last_update": "2018-12-17T10:37:01.000Z",
"nethash": 877038100746891,
"last_block": 1451338,
"difficulty": 3.508152402987565e+15,
"difficulty24": 3.808152402987565e+15,
"difficulty3": 3.608152402987565e+15,
"difficulty7": 3.308152402987565e+15,
"difficulty14": 3.408152402987565e+15,
"difficulty30": 3.708152402987565e+15,
"exchanges": [
{
"name": "Poloniex",
"last_update": "2018-12-17T10:37:01.000Z",
"price": 2.5e-05,
"price24": 2.5e-05,
"price3": 2.5e-05,
"price7": 2.5e-05,
"price14": 2.5e-05,
"price30": 2.5e-05,
"volume": 1.0
}
]
},
# ...
]
These endpoints provide essential information for cryptocurrency mining calculations and decision-making. The API is designed to be user-friendly and provide up-to-date information on algorithms, coins, and profitability calculations.