# PreReason Single Metric API

> PreReason Single Metric 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-10-19).

Returns a single financial or Bitcoin metric with pre-reasoned trend analysis, signal, confidence score, momentum, and 90-day percentile across 119 metrics spanning bitcoin, macro, and calculated categories.

## Facts

- Endpoint: GET https://api.prereason.com/api/metrics/:metric?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prereason-single-metric-api-ba8143a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K1f0E9WuOCQS4iAPuEsVG

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-single-metric-api-ba8143a9
```

Example prompt: Pull the bitcoin-dominance metric from PreReason and tell me the current signal, confidence score, and where it sits in the 90-day percentile along with the 7-day and 30-day trend direction.

## When to prefer this

Use this endpoint when you need deep pre-reasoned analysis (trend, signal, confidence, momentum, percentile) on a specific single metric rather than a broad multi-metric dashboard. Ideal for AI agents that need structured, actionable financial signals on one metric at a time without parsing raw data themselves. Prefer over broader endpoints when you want lightweight per-metric cost and targeted signal extraction.

## Known failure modes

- Invalid or unsupported metric name returns an error — must use one of the 119 enumerated metric slugs
- Payment failure if x402 USDC payment of $0.01 is not properly handled
- Network timeout if the upstream data source for the metric is unavailable
- Truncated schema means some metrics near the end of the enum list may need verification

## How this service works

Single financial metric with pre-reasoned trend analysis (7d/30d/90d), signal, confidence score, momentum, and 90-day percentile. 293 metrics across bitcoin, calculated, eth, macro categories for AI agents.

## Output

A single metric object containing the current value, pre-reasoned trend direction over 7-day, 30-day, and 90-day windows, a directional signal (e.g. bullish/bearish/neutral), a confidence score, momentum indicator, and the metric's position in its 90-day historical percentile. Available in JSON or Markdown format.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "metric"
     ],
     "properties": {
      "format": {
       "enum": [
        "json",
        "markdown"
       ],
       "type": "string",
       "description": "Response format: markdown (default) or json."
      },
      "metric": {
       "type": "string",
       "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
       "description": "Metric name. 293 available across bitcoin, calculated, eth, macro categories, listed free at GET /api/metrics."
      }
     }
    }
   },
   "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/prereason-single-metric-api-ba8143a9/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)
