# PreReason Bitcoin Miner Survival Index API

> PreReason Bitcoin Miner Survival Index API is a paid API for AI agents from api.prereason.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Returns Bitcoin miner survival metrics including hash ribbon, production cost estimates, and energy pressure signals via the btc.miner-survival briefing.

## Facts

- Endpoint: GET https://api.prereason.com/api/btc/miners?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prereason-bitcoin-miner-survival-index-api-bf552b74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rus05PyhtuQjmUKqnS5dN

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 prereason-bitcoin-miner-survival-index-api-bf552b74
```

Example prompt: Pull me the Bitcoin miner survival briefing from PreReason — I want to see the hash ribbon, production cost, and energy pressure signals for today in markdown format.

## When to prefer this

Use this endpoint when you specifically need Bitcoin miner health metrics — hash ribbon status, energy cost pressure, and production cost estimates — rather than general price or macro data. It is distinct from other PreReason briefings that cover on-chain activity, momentum, or macro liquidity. Prefer this when assessing miner capitulation risk, post-halving miner stress, or energy-driven selling pressure.

## Known failure modes

- Invalid or unsupported briefing ID returns 400 error
- Date outside allowed historical range for current tier returns 403 or data-unavailable error
- Malformed date format (not YYYY-MM-DD) returns 400 validation error
- Missing required 'briefing' query parameter returns 400
- Payment not processed results in 402 Payment Required
- API downtime or rate limiting returns 503 or 429

## How this service works

Bitcoin miner health. Hash ribbon, hashprice thermometer, production cost vs price, energy stress. Mining sector analysis for investment agents.

## Output

Returns a structured or markdown-formatted briefing with Bitcoin miner survival metrics including hash ribbon indicator, estimated miner production costs, energy pressure index, trend direction signals, and a confidence score — all contextualized to the requested date.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Historical date in YYYY-MM-DD format. A paid call serves today or any ?date= on record."
      },
      "format": {
       "enum": [
        "json",
        "markdown"
       ],
       "type": "string",
       "description": "Response format. markdown is token-optimized for LLMs, json is structured. Default is markdown."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "metrics": {
   "hashprice": {
    "name": "hashprice"
   },
   "epoch-pace": {
    "name": "epoch-pace"
   },
   "hash-ribbon": {
    "name": "hash-ribbon"
   },
   "bitcoin-price": {
    "name": "bitcoin-price"
   },
   "production-cost": {
    "name": "production-cost"
   },
   "bitcoin-hash-rate": {
    "name": "bitcoin-hash-rate"
   },
   "bitcoin-difficulty": {
    "name": "bitcoin-difficulty"
   },
   "raw-hashprice-tick": {
    "name": "raw-hashprice-tick"
   },
   "price-to-production": {
    "name": "price-to-production"
   }
  },
  "briefing_used": "btc.miner-survival",
  "briefing_metadata": {
   "name": "Miner Survival Index",
   "description": "Miner profitability check - revenue per hash, production cost tiers, and stress signals",
   "metrics_count": 9,
   "correlations_count": 3
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prereason-bitcoin-miner-survival-index-api-bf552b74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.prereason.com](https://www.zero.xyz/host/api.prereason.com/llms.txt)
