# 2s Prediction Market Orderbook Lookup

> 2s Prediction Market Orderbook Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Fetches the current orderbook (bids and asks) for a CLOB outcome token on a prediction market by token ID

## Facts

- Endpoint: GET https://2s.io/api/predict/orderbook
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-prediction-market-orderbook-lookup-8a5e56e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pCoyC39j3NFMi2zrjZSkZ

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 2s-prediction-market-orderbook-lookup-8a5e56e9
```

Example prompt: Pull up the live orderbook for the prediction market outcome token with ID 0x1234abcd — I want to see the current bids and asks.

## When to prefer this

Use this endpoint when you need real-time orderbook data for a specific CLOB prediction market outcome token and want pay-per-call access without API key signup. Prefer this over exchange-specific APIs when you need a single unified interface across multiple prediction market tokens.

## Known failure modes

- Invalid or unknown tokenId returns an error or empty orderbook
- Token ID too short or too long (outside 1-120 chars) returns validation error
- Token no longer active or delisted may return empty or stale data
- Payment failure via x402 prevents data retrieval
- Network timeout if market data feed is unavailable

## How this service works

Full CLOB order book (bids + asks with price and size) for a Polymarket outcome token. Use the clobTokenIds from predict.markets. Read-only depth snapshot from Polymarket's CLOB.

## Output

Returns the current orderbook state for the specified CLOB outcome token, including bid and ask price levels with quantities, enabling analysis of market depth and current best prices.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "tokenId"
     ],
     "properties": {
      "tokenId": {
       "type": "string",
       "maxLength": 120,
       "minLength": 1,
       "description": "CLOB token id (outcome token)."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-prediction-market-orderbook-lookup-8a5e56e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
