# 2s Market Prediction API

> 2s Market Prediction API 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 ground-truth market prediction data for a given prediction market by ID, slug, or condition ID

## Facts

- Endpoint: GET https://2s.io/api/predict/market
- 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-market-prediction-api-ab5f181a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AIeSBQBEnU1T0f3Qz7c_C

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-market-prediction-api-ab5f181a
```

Example prompt: What are the current odds on the prediction market with slug 'will-the-fed-cut-rates-in-2025' — pull the latest market data including probabilities and conditions.

## When to prefer this

Use this endpoint when you need real-time ground-truth probability data from prediction markets and can identify the market by its ID, slug, or condition ID. Prefer this over general web search when you need structured, machine-readable market odds rather than news articles about predictions.

## Known failure modes

- Missing required query parameters (id, slug, or conditionId) returns an error
- Invalid or nonexistent market ID/slug/conditionId returns not-found error
- Payment not included or insufficient USDC triggers 402 response
- Market data temporarily unavailable returns 5xx error
- Malformed query parameter exceeding maxLength constraint rejected

## How this service works

A single Polymarket market by conditionId, slug, or id. Returns the question, outcomes + live prices (implied probabilities), CLOB token ids, USD volume + liquidity, dates, description, and URL. Pass one of conditionId / slug / id.

## Output

Returns prediction market data for the specified market, including current probabilities, odds, outcome conditions, and related metadata for the matched market identified by ID, slug, or condition ID.

## 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",
     "properties": {
      "id": {
       "type": "string",
       "maxLength": 40
      },
      "slug": {
       "type": "string",
       "maxLength": 200
      },
      "conditionId": {
       "type": "string",
       "maxLength": 80
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-market-prediction-api-ab5f181a/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)
