/v1/meta
Service metadata
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/hashprice-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashprice-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashprice-api/v1/meta");
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/hashprice-api/v1/meta",
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": {
"note": "hashprice and meta take no parameters. breakeven takes power_cost (USD/kWh, default 0.05) and efficiency (J/TH, default 20). asic takes power_cost (default 0.05). Hashprice is USD per PH/s and per TH/s per day; costs in USD. Computed as (daily BTC mined × BTC price) ÷ network hashrate. A ~5-minute cache fronts the upstreams.",
"sample": {
"btc_price_usd": 63579.9,
"hashprice_usd_per_phs_day": 32.25
},
"source": "mempool.space + Yahoo Finance (BTC-USD), keyless, live",
"service": "hashprice-api",
"endpoints": {
"GET /v1/asic": "Daily revenue/cost/profit for popular ASIC miners (power_cost).",
"GET /v1/meta": "This document.",
"GET /v1/breakeven": "Profit & breakeven hashprice for your power_cost and efficiency.",
"GET /v1/hashprice": "Current Bitcoin hashprice (USD/PH/s/day, /TH/s/day) + inputs."
},
"description": "The Bitcoin hashprice — the dollars a unit of hashing power earns per day, the mining industry's revenue benchmark — computed live and keyless from on-chain data and the BTC price. The hashprice endpoint gives the current hashprice per PH/s and per TH/s with the inputs (network hashrate, daily Bitcoin mined, fee share, BTC price); breakeven turns it into a profitability check for your electricity cost and rig efficiency (revenue, power cost, profit, margin, breakeven hashprice); asic runs the same maths over today's popular ASIC miners. The hashprice / mining-profitability cut — distinct from the network-security feed (difficulty/hashrate/halving), the multi-coin mining-economics feed (a relative profitability index, not the dollar hashprice) and the mining-pool feed.",
"upstream_status": "ok"
},
"meta": {
"timestamp": "2026-06-13T04:42:54.222Z",
"request_id": "d30e79a3-16e3-4723-9681-32d79aab06ca"
},
"status": "ok",
"message": "Meta",
"success": true
}