# AI Rook Crypto Price API

> AI Rook Crypto Price API is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Returns the current USD price, 24-hour change, and market cap for a given cryptocurrency ticker symbol

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/crypto-price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-crypto-price-api-d92a95ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iPkVXTVHJg-oeEMPxzKvA

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 ai-rook-crypto-price-api-d92a95ee
```

Example prompt: What's the current price of ETH right now, including its 24-hour change and market cap?

## When to prefer this

Use this endpoint when you need a real-time spot price for a major cryptocurrency (BTC, ETH, SOL, etc.) along with 24-hour change and market cap, paid per-call with no API key or signup required, via USDC on Base mainnet using the x402 protocol.

## Known failure modes

- Invalid or unknown ticker symbol returns an error or empty result
- Payment failure via x402 if insufficient USDC balance on Base mainnet
- Network timeout if the upstream price feed is unavailable
- Rate limiting if too many calls are made in rapid succession

## How this service works

Live crypto price via CoinGecko. Pass ?symbol=BTC. Returns price, 24h change, market cap.

## Output

Returns a JSON object with the ticker symbol, current USD price, timestamp, 24-hour percentage change, and market cap in USD. Example: {symbol: 'BTC', price_usd: 65420.5, timestamp: '2026-07-23T05:00:00Z', change_24h_pct: 2.3, market_cap_usd: 1290000000000}.

## 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",
     "properties": {
      "symbol": {
       "type": "string",
       "default": "BTC",
       "description": "Crypto ticker symbol e.g. BTC, ETH, SOL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "symbol": "BTC",
  "price_usd": 65420.5,
  "timestamp": "2026-07-23T05:00:00Z",
  "change_24h_pct": 2.3,
  "market_cap_usd": 1290000000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-crypto-price-api-d92a95ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
