{"uid":"cap_OiY6mYBACkp2wF-ax8Sgm","slug":"bitcoin-mining-hashprice-api-2e58fff9","name":"Bitcoin Mining Hashprice API","description":"Bitcoin mining hashprice: expected mining reward per petahash and per terahash per second per day, in BTC and USD, fused with the network hashrate, current difficulty, the next difficulty-retarget forecast and the block-subsidy and average-fee split. Informational, not advice.","url":"https://api.agentstools.dev/mining/hashprice","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"fiat":{"type":"string","description":"Fiat currency for the USD-equivalent figures (three-letter code such as USD or EUR); defaults to USD"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iToP75x-fGFkR6Rd8pbPw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current Bitcoin mining hashprice (expected reward per PH/s and TH/s per day in BTC and fiat), fused with network hashrate, current difficulty, next difficulty-retarget forecast, and block subsidy vs fee split.","exampleAgentPrompt":"What's the current Bitcoin mining hashprice in EUR — how much BTC and euros can a miner expect to earn per petahash per day, and when is the next difficulty retarget?","exampleUseCases":[{"title":"Daily mining profitability check","prompt":"How much can I expect to earn today mining Bitcoin with a 100 TH/s rig — give me the hashprice in both BTC and USD, and let me know what the current network difficulty looks like."},{"title":"Next difficulty retarget forecast","prompt":"When is the next Bitcoin difficulty adjustment and is it expected to go up or down? Also show me the current network hashrate so I can get a sense of where things are headed."},{"title":"Fee vs subsidy revenue breakdown","prompt":"What percentage of miner revenue is currently coming from transaction fees versus the block subsidy? I want to understand how dependent miners are on fees right now."}],"resultDescription":"Returns the expected mining reward per PH/s and per TH/s per day in both BTC and the requested fiat currency, along with the current network hashrate, current difficulty, the next difficulty-retarget block and forecast, and a breakdown of block subsidy versus average transaction fees.","failureModes":["Invalid fiat currency code returns an error or defaults to USD","Upstream Bitcoin node data unavailable may cause stale or error responses","Payment not received (x402) results in 402 Payment Required response","Network connectivity issues may cause timeouts"],"whenToPreferThis":"Use this endpoint when you need a comprehensive, real-time snapshot of Bitcoin mining economics including hashprice in both BTC and fiat, network difficulty context, and the subsidy/fee revenue split — all in a single call. Prefer over generic crypto price APIs when mining profitability or network health metrics are the focus.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:02:40.445Z","isFirstParty":false}