# 2s Predict Price — CLOB Outcome Token Price Lookup

> 2s Predict Price — CLOB Outcome Token Price 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 predicted price for a CLOB (Central Limit Order Book) outcome token by its token ID, useful for prediction market probability lookups.

## Facts

- Endpoint: GET https://2s.io/api/predict/price
- 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-predict-price-clob-outcome-token-price-lookup-bebf03af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9nLRVYd6nP8uamb2MeOlH

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-predict-price-clob-outcome-token-price-lookup-bebf03af
```

Example prompt: What's the current predicted price for CLOB outcome token '0xabc123def456' on the prediction market — I want to know the market-implied probability right now.

## When to prefer this

Use this endpoint when you need the real-time market-implied price or probability for a specific CLOB prediction market outcome token and have the token ID available. Prefer this over general price APIs when dealing specifically with prediction market outcome tokens rather than standard crypto or equity assets.

## Known failure modes

- Missing or invalid tokenId returns an error or empty result
- Token ID not found in the CLOB system returns a 404 or null price
- Payment failure (USDC/x402) results in 402 Payment Required before data is returned
- Network timeout or upstream data unavailability returns a 5xx error

## How this service works

Live best bid, best ask, and midpoint for a Polymarket outcome token (CLOB token id — get it from predict.markets clobTokenIds). The midpoint is the market's implied probability for that outcome. Read-only from Polymarket's CLOB.

## Output

Returns the current predicted price for the specified CLOB outcome token, representing its market-implied probability or fair value as determined by the 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",
    "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
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "ok",
   "items",
   "total",
   "source"
  ],
  "properties": {
   "ok": {
    "enum": [
     true
    ],
    "type": "boolean"
   },
   "items": {
    "type": "array",
    "items": {
     "type": "object",
     "required": [
      "tokenId",
      "bid",
      "ask",
      "mid"
     ],
     "properties": {
      "ask": {
       "type": "number",
       "nullable": true
      },
      "bid": {
       "type": "number",
       "nullable": true
      },
      "mid": {
       "type": "number",
       "nullable": true
      },
      "tokenId": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "total": {
    "type": "integer",
    "nullable": true,
    "description": "Total matching rows upstream; null when unknown."
   },
   "source": {
    "type": "object",
    "required": [
     "provider",
     "url",
     "license"
    ],
    "properties": {
     "url": {
      "type": "string"
     },
     "license": {
      "type": "string"
     },
     "provider": {
      "type": "string"
     }
    },
    "additionalProperties": false
   }
  },
  "additionalProperties": false
 },
 "example": {
  "ok": true,
  "items": [
   {
    "ask": 1,
    "bid": 1,
    "mid": 1,
    "tokenId": "example"
   }
  ],
  "total": 1,
  "source": {
   "url": "example",
   "license": "example",
   "provider": "example"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-predict-price-clob-outcome-token-price-lookup-bebf03af/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)
