# Bitcoin Mining Hashprice API

> Bitcoin Mining Hashprice API is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

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.

## Facts

- Endpoint: GET https://api.agentstools.dev/mining/hashprice
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-mining-hashprice-api-2e58fff9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OiY6mYBACkp2wF-ax8Sgm

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bitcoin-mining-hashprice-api-2e58fff9
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-mining-hashprice-api-2e58fff9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
