# PreReason Bitcoin Energy Cost Analysis API

> PreReason Bitcoin Energy Cost Analysis API is a paid API for AI agents from api.prereason.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Returns Bitcoin production cost, hashprice, and energy pressure metrics for miners and market context

## Facts

- Endpoint: GET https://api.prereason.com/api/btc/energy
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prereason-bitcoin-energy-cost-analysis-api-6e353468
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kAXds2Up8BA4xopnUbrpp

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-energy-cost-analysis-api-6e353468
```

Example prompt: Pull the btc.energy briefing from PreReason to show me today's Bitcoin production cost, hashprice, and whether there's meaningful energy pressure on miners — give it to me in JSON format.

## When to prefer this

Use this endpoint when you need Bitcoin miner economics data specifically — production cost, hashprice, and energy pressure — as opposed to general price action, on-chain metrics, or macro context. Ideal for assessing whether Bitcoin is trading above or below miner break-even, evaluating miner capitulation risk, or understanding energy-driven selling pressure.

## Known failure modes

- Missing or invalid 'briefing' query parameter returns 400 error
- Date out of allowed range for subscription tier returns 403 or data-unavailable error
- Invalid date format (not YYYY-MM-DD) returns validation error
- Payment not completed or invalid x402 payment header returns 402 Payment Required
- Network timeout on external data source returns 503

## How this service works

PreReason delivers market context for financial agents. Bitcoin on-chain metrics, macro indicators, and reasoning context in one API call.

## Output

Returns a structured JSON object containing Bitcoin energy-related metrics including production cost (break-even price), hashprice, energy pressure signals, trend indicators, and confidence scores, along with a generated timestamp and briefing ID.

## 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",
     "required": [
      "briefing"
     ],
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Historical date in YYYY-MM-DD format. Access range depends on tier: Free=30d, Basic=from Jan 2025, Pro=all."
      },
      "format": {
       "enum": [
        "json",
        "markdown"
       ],
       "type": "string",
       "description": "Response format. markdown is token-optimized for LLMs, json is structured."
      },
      "briefing": {
       "enum": [
        "btc.quick-check",
        "btc.context",
        "btc.pulse",
        "btc.grid-stress",
        "macro.snapshot",
        "cross.correlations",
        "btc.momentum",
        "btc.on-chain",
        "btc.miner-survival",
        "btc.etf-flows",
        "macro.liquidity",
        "cross.breadth",
        "btc.full",
        "btc.factors",
        "btc.energy",
        "btc.treasury",
        "cross.regime",
        "fx.liquidity"
       ],
       "type": "string",
       "description": "Briefing ID. 18 available: btc.quick-check, btc.context, btc.pulse, btc.grid-stress, macro.snapshot, cross.correlations (Tier 1), btc.momentum, btc.on-chain, btc.miner-survival, btc.etf-flows, macro.liquidity, cross.breadth (Tier 2), btc.full, btc.factors, btc.energy, btc.treasury, cross.regime, fx.liquidity (Tier 3)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "context": "Bitcoin trading at $84,200, up 4.2% over 7 days...",
  "metrics": {
   "bitcoin_price": {
    "signal": "bullish",
    "trend_7d": 4.2,
    "confidence": 82
   }
  },
  "briefing": "btc.quick-check",
  "generated_at": "2026-03-17T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prereason-bitcoin-energy-cost-analysis-api-6e353468/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)
