{"openapi":"3.1.0","info":{"title":"Bitcoin Hashprice & Mining Profitability API","version":"1.0.0","description":"The Bitcoin hashprice — the single number every Bitcoin miner watches: how many US dollars a unit of hashing power earns in a day. It is the mining industry's revenue benchmark (the \"Hashprice Index\"), and it falls every time the difficulty rises, the block subsidy halves, fees dry up or the price drops. This computes it live and keyless from on-chain data and the BTC price: the daily Bitcoin the whole network mines (block subsidy plus transaction fees), the network hashrate, and the dollar price of Bitcoin. The hashprice endpoint returns the current hashprice in dollars per PH/s per day and per TH/s per day, with the inputs behind it — the network hashrate, the daily Bitcoin mined, the share of that which is fees, and the BTC price. The breakeven endpoint turns it into a profitability check: give it your electricity cost (USD per kWh) and your rig's efficiency (J/TH) and it returns the daily revenue, power cost and profit per TH/s, the margin, and the breakeven hashprice at which you would mine at a loss. The asic endpoint runs the same maths over today's popular ASIC miners (Antminer S21, S19 XP, Whatsminer M60 and more) at your electricity cost — daily revenue, power cost and profit for each machine, ranked. This is the hashprice / mining-profitability cut — distinct from the network-security feed (difficulty, hashrate, halving), the multi-coin mining-economics feed (which ranks coins by a relative profitability index, not the dollar hashprice) and the mining-pool-distribution feed. Hashprice is in USD per PH/s and per TH/s per day; costs in USD. No key, nothing stored beyond a short cache.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/hashprice-api","description":"oanor gateway"}],"tags":[{"name":"Hashprice"},{"name":"Breakeven"},{"name":"ASIC"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/hashprice":{"get":{"operationId":"get_v1_hashprice","tags":["Hashprice"],"summary":"Current Bitcoin hashprice (USD/PH/s/day) + inputs","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"The Bitcoin hashprice — the network's daily mining revenue per unit of hashrate, the miner's revenue benchmark. hashprice_usd_per_phs_day is dollars earned per petahash per second per day; per_ths_day is the same per terahash. It equals (daily Bitcoin mined × BTC price) ÷ network hashrate, where daily Bitcoin mined is the block subsidy plus fees over the last ~144 blocks. It drops as difficulty/hashrate climbs, the subsidy halves, fees fall or the price drops. Live, cached ~5m.","source":"mempool.space (hashrate + block rewards) + Yahoo Finance (BTC-USD), keyless","btc_price_usd":63579.9,"fee_share_pct":0.82,"daily_btc_mined":453.6983,"network_hashrate_ehs":894.36,"daily_network_revenue_usd":28846090,"hashprice_usd_per_phs_day":32.25,"hashprice_usd_per_ths_day":0.032253},"meta":{"timestamp":"2026-06-13T04:42:53.975Z","request_id":"4dfc73ab-dd27-43bd-922c-19bae5de455f"},"status":"ok","message":"Hashprice retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/breakeven":{"get":{"operationId":"get_v1_breakeven","tags":["Breakeven"],"summary":"Profit & breakeven hashprice for your power cost and efficiency","description":"","parameters":[{"name":"power_cost","in":"query","required":false,"description":"Electricity cost in USD per kWh","schema":{"type":"string"},"example":"0.05"},{"name":"efficiency","in":"query","required":false,"description":"Rig efficiency in J/TH","schema":{"type":"string"},"example":"20"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Mining profitability at your inputs. Give power_cost (your electricity price in USD per kWh, default 0.05) and efficiency (your rig's J/TH, default 20 — lower is better; an S21 is ~17.5). It returns, per TH/s per day, the revenue (the live hashprice), the electricity cost (efficiency × 24h × power_cost) and the profit, the margin, and the breakeven hashprice — the hashprice below which you mine at a loss. Live, cached ~5m.","source":"mempool.space + Yahoo Finance, keyless","margin_pct":25.59,"profitable":true,"efficiency_j_per_th":20,"power_cost_usd_per_kwh":0.05,"profit_usd_per_ths_day":0.008253,"revenue_usd_per_ths_day":0.032253,"hashprice_usd_per_ths_day":0.032253,"power_cost_usd_per_ths_day":0.024,"breakeven_hashprice_usd_per_phs_day":24},"meta":{"timestamp":"2026-06-13T04:42:54.050Z","request_id":"bf83328f-0624-4341-89f9-da8c488e93cf"},"status":"ok","message":"Breakeven retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/asic":{"get":{"operationId":"get_v1_asic","tags":["ASIC"],"summary":"Daily revenue/cost/profit for popular ASIC miners","description":"","parameters":[{"name":"power_cost","in":"query","required":false,"description":"Electricity cost in USD per kWh","schema":{"type":"string"},"example":"0.05"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Daily mining economics for today's popular Bitcoin ASIC miners at the live hashprice and your electricity cost (power_cost in USD per kWh, default 0.05), ranked by profit — each machine's daily revenue (its TH/s × the hashprice), its daily power cost (its draw × 24h × power_cost) and the resulting profit. Specs are nominal manufacturer figures. Live, cached ~5m.","count":6,"miners":[{"model":"Antminer S21 Pro","profitable":true,"power_watts":3531,"hashrate_ths":234,"daily_profit_usd":3.31,"daily_revenue_usd":7.55,"efficiency_j_per_th":15.09,"daily_power_cost_usd":4.24},{"model":"Antminer S21","profitable":true,"power_watts":3500,"hashrate_ths":200,"daily_profit_usd":2.25,"daily_revenue_usd":6.45,"efficiency_j_per_th":17.5,"daily_power_cost_usd":4.2},{"model":"Whatsminer M60S","profitable":true,"power_watts":3441,"hashrate_ths":186,"daily_profit_usd":1.87,"daily_revenue_usd":6,"efficiency_j_per_th":18.5,"daily_power_cost_usd":4.13},{"model":"Antminer S19 XP","profitable":true,"power_watts":3010,"hashrate_ths":140,"daily_profit_usd":0.9,"daily_revenue_usd":4.52,"efficiency_j_per_th":21.5,"daily_power_cost_usd":3.61},{"model":"Whatsminer M50","profitable":false,"power_watts":3306,"hashrate_ths":118,"daily_profit_usd":-0.16,"daily_revenue_usd":3.81,"efficiency_j_per_th":28.02,"daily_power_cost_usd":3.97},{"model":"Antminer S19j Pro","profitable":false,"power_watts":3068,"hashrate_ths":104,"daily_profit_usd":-0.33,"daily_revenue_usd":3.35,"efficiency_j_per_th":29.5,"daily_power_cost_usd":3.68}],"source":"mempool.space + Yahoo Finance + nominal ASIC specs, keyless","power_cost_usd_per_kwh":0.05,"hashprice_usd_per_ths_day":0.032253},"meta":{"timestamp":"2026-06-13T04:42:54.133Z","request_id":"5fff408a-98d7-42e4-bfae-0eea926f85f9"},"status":"ok","message":"ASIC economics retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"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}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":700,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":1950,"monthly_call_quota":26500,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":6400,"monthly_call_quota":156000,"rps_limit":16,"hard_limit":true},{"slug":"scale","name":"Scale","price_cents_month":18100,"monthly_call_quota":530000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/hashprice-api"}