# Crypto Agent Brief API

> Crypto Agent Brief API is a paid API for AI agents from price-bot-production-4d6a.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns LLM-ready cryptocurrency briefs covering price data, technical analysis, comparisons, and trending coins via a simple query string

## Facts

- Endpoint: GET https://price-bot-production-4d6a.up.railway.app/api/data
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-agent-brief-api-5a3aa158
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mBZd1gEd3fiZndIPN3dpQ

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 crypto-agent-brief-api-5a3aa158
```

Example prompt: Can you get me an LLM-ready brief on Bitcoin — including the current price and technical analysis — and format it as markdown?

## When to prefer this

Choose this endpoint when you need a compact, LLM-ready crypto brief that blends price data with technical analysis or trending rankings in a single call — especially in agent workflows where a micropayment model (0.01 USDC via x402) is acceptable and you want pre-summarized, actionable output rather than raw exchange data.

## Known failure modes

- Missing required 'q' parameter returns an error response
- Unrecognized or misspelled coin name may return empty or fallback data
- Payment not fulfilled (402) if x402 micropayment of 0.01 USDC on Base is not completed
- Upstream price data source outage causing stale or unavailable data
- Rate limiting or service unavailability on railway.app hosting

## How this service works

x402 pay-per-call crypto trading intelligence for AI agents. Get live Bitcoin/ETH/SOL BUY/SELL/HOLD signals with support/resistance, volatility regime, risk, edge_score and invalidation — not raw CoinGecko dumps. Price: 0.01 USDC on Base per call. Best value: compare up to 5 coins + vs-BTC strength in one payment. Free routes use security: []. Paid routes require x402 (PAYMENT-SIGNATURE / X-PAYMENT) after HTTP 402. Free tease: GET /api/preview?q=btc (price only). Docs: /llms.txt.

## Output

A structured, LLM-ready text brief containing requested crypto data such as current price, technical analysis indicators, trend signals, and/or comparative metrics for one or more cryptocurrencies, optionally formatted per the format parameter.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Coin ticker: btc, eth, sol, …"
      },
      "format": {
       "enum": [
        "agent",
        "full"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "risk": "low",
  "levels": {
   "support": 92000,
   "resistance": 98000
  },
  "reason": "neutral RSI; MACD flat",
  "regime": "calm",
  "signal": "HOLD",
  "price_usd": 95000,
  "confidence": 62,
  "edge_score": 64,
  "action_hint": "No strong edge.",
  "invalidation": "break of support–resistance range"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-agent-brief-api-5a3aa158/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from price-bot-production-4d6a.up.railway.app](https://www.zero.xyz/host/price-bot-production-4d6a.up.railway.app/llms.txt)
