Documentation index: /llms.txt. Full docs in Markdown: /docs.md (the same text as /llms-full.txt).


PreReason API Documentation

To give ChatGPT, Claude or another AI agent current market and economic data, connect PreReason's financial data MCP server, or call its REST API with a key or, on the routes that take one, an x402 payment per call with no account. Each briefing is reasoned in advance, as Markdown or JSON, with every figure dated and every briefing naming its sources.

Complete API reference for the PreReason market context API. Financial data optimized for AI agents, delivered in markdown or JSON format.

Authentication

Briefings and metric readings need an API key (or, on the short URLs, metric readings and company routes, an x402 payment per call); the catalogue and health check need none. Pass a key in one of these headers:

Example: curl -H "Authorization: Bearer YOUR_KEY" https://api.prereason.com/api/btc

Get your free API key — no credit card required.

An agent can get a key from inside its session: POST https://api.prereason.com/api/agent/claims starts a claim, the person it works for approves one link, and the key reaches the agent when it polls. auth.md has the whole flow.

Primary Endpoint: GET /api/context

Returns a pre-reasoned market briefing for the requested domain.

Parameters

Example: GET /api/context?briefing=btc.context&format=markdown

Short URL Shortcuts

Company Briefings

One listed company per call, each figure dated and sourced: GET /api/context?briefing=equities.company/<company> with a key on the plans that read it, or GET /api/companies/<company> paid per call with x402 and no key. 4,427 company briefings for companies filing with the SEC as of 2026-10-23, 1,546 Japanese company briefings as of 2026-10-22, 2,530 Korean company briefings as of 2026-10-22, 481 company briefings for companies filing in the UK as of 2026-10-31, 1,614 company briefings for companies filing in 24 European countries as of 2026-10-30 and 310 Brazilian company briefings as of 2026-11-03. India: 503 Indian companies have figures, a median of 2 quarters each, as of 2026-11-02. Hong Kong: 65 companies listed in Hong Kong have figures, each from its newest interim or annual results announcement, as of 2026-10-30.

Other Endpoints

Response Format

Markdown responses include: a tag on each metric (Bullish, Bearish or Neutral on crypto native metrics such as Bitcoin and Ether; on every other metric Above-Trend, Below-Trend or At-Trend, where the value sits against its trend), confidence score (0-100), 7d/30d/90d trend changes, percentile ranking against historical distribution, and cross-asset correlation coefficients.

JSON responses include the same data in structured key-value format with typed fields.

Rate Limits

Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.

MCP Server Integration

Install the PreReason MCP server for native tool access in Claude Desktop, Claude Code, Cursor, and Windsurf.

Install: npx -y @prereason/mcp

Set environment variable PREREASON_API_KEY to your API key.

Remote MCP endpoint: https://api.prereason.com/api/mcp

7 tools available: get_context, get_metric, get_changes, get_news, list_briefings, list_metrics, get_health

Available Briefings

Browse all briefings | Browse all metrics