# SiteCheck Crypto Order Book

> SiteCheck Crypto Order Book is a paid API for AI agents from api.sitecheck-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-15).

Fetches a level-2 snapshot of the Coinbase Exchange public order book for a given trading pair, returning bids, asks, spread, and mid price.

## Facts

- Endpoint: GET https://api.sitecheck-api.workers.dev/api/crypto/orderbook?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-crypto-order-book-2d8636d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ooyvoqj6bHnxOy0ZcAUIz

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 sitecheck-crypto-order-book-2d8636d1
```

Example prompt: Can you pull the current order book for BTC-USD showing the top 20 levels on each side — I want to see the best bid, best ask, spread in bps, and mid price right now?

## When to prefer this

Choose this endpoint when you need a real-time level-2 order book snapshot from Coinbase Exchange, including bid/ask ladders, spread, and mid price for a specific trading pair. It is ideal for agents that require current market microstructure data (not just a ticker price) and want it via a simple pay-per-call HTTP GET with no exchange API key required. Prefer alternatives if you need streaming/WebSocket order book updates, historical order book data, or order books from exchanges other than Coinbase.

## Known failure modes

- Invalid or unsupported trading pair returns an error — only Coinbase product IDs (e.g. BTC-USD) are accepted
- Depth parameter out of range (must be 1–50) may return a validation error
- Coinbase Exchange API downtime or rate limiting may cause upstream failures
- Network timeout on the Cloudflare Worker may result in a 5xx error

## How this service works

A level-2 order book snapshot for a Coinbase pair: best bid and ask, mid price, spread in price and basis points, and the top bids and asks up to depth 50. It is a snapshot, not a quote: prices move between calls. Information only, not financial advice.

## Output

Returns a JSON object containing the trading pair, snapshot timestamp, bid and ask arrays (each with price and size), best bid, best ask, mid price, spread, spread in basis points, order book depth, data source attribution, and a disclaimer. Data is sourced from the Coinbase Exchange level-2 public order book.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Coinbase product, e.g. BTC-USD"
      },
      "depth": {
       "type": "string",
       "description": "1 to 50 levels per side (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mid": 83645.775,
  "asks": [
   {
    "size": 0.0000633,
    "price": 83645.78
   },
   {
    "size": 0.09563486,
    "price": 83651.5
   }
  ],
  "bids": [
   {
    "size": 0.50964207,
    "price": 83645.77
   },
   {
    "size": 0.01669213,
    "price": 83644.1
   }
  ],
  "pair": "BTC-USD",
  "depth": 5,
  "source": "Coinbase Exchange public order book (level 2, snapshot)",
  "spread": 0.01,
  "bestAsk": 83645.78,
  "bestBid": 83645.77,
  "checkedAt": "2026-10-14T04:49:20.542Z",
  "spreadBps": 0.0012,
  "disclaimer": "Information only, not financial advice."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-crypto-order-book-2d8636d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.sitecheck-api.workers.dev](https://www.zero.xyz/host/api.sitecheck-api.workers.dev/llms.txt)
