# PreReason Bitcoin Grid Stress API

> PreReason Bitcoin Grid Stress API is a paid API for AI agents from api.prereason.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns Bitcoin grid stress analysis including epoch pace, difficulty adjustment forecasts, and miner pressure metrics as structured market context.

## Facts

- Endpoint: GET https://api.prereason.com/api/btc/grid
- 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/prereason-bitcoin-grid-stress-api-216e115b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2KMeDdI1NN7XM_RoFjMXc

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-grid-stress-api-216e115b
```

Example prompt: Pull me the btc.grid-stress briefing from PreReason in markdown format so I can see the current Bitcoin epoch pace, difficulty adjustment forecast, and miner pressure signals for today.

## When to prefer this

Use this endpoint when you specifically need Bitcoin mining network health data — epoch progression, difficulty adjustment outlook, and miner financial stress — rather than general price or macro context. Prefer this over btc.miner-survival for grid/epoch timing focus, and over btc.pulse for mining-specific signals rather than mempool or fee data.

## Known failure modes

- Missing required 'briefing' query parameter returns a 400 validation error
- Invalid briefing ID enum value returns a 400 bad request
- Date outside the tier's allowed historical range returns a 403 or 402 payment required
- Payment not provided or invalid returns a 402 Payment Required (x402)
- Server-side data unavailability for the requested date returns a 503 or 404
- Invalid date format (not YYYY-MM-DD) returns a 400 error

## 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 JSON or markdown document containing Bitcoin grid stress context: epoch pace, estimated difficulty adjustment percentage, miner production cost vs price pressure, and directional signals (bullish/bearish/neutral) with confidence scores and a generated_at timestamp.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "format": "json",
   "briefing": "btc.grid-stress"
  }
 }
}
```

## 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-grid-stress-api-216e115b/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)
