# Klymax402 Prediction Markets API

> Klymax402 Prediction Markets API is a paid API for AI agents from klymax402.com, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-14).

Fetches live prediction market listings from Polymarket and/or Kalshi, sortable by volume, recency, or closing time, with optional category filtering.

## Facts

- Endpoint: GET https://klymax402.com/api/prediction-markets/api/markets
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/klymax402-prediction-markets-api-ead3056c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9oGw7xgEGPd9L3zhuZlSf

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 klymax402-prediction-markets-api-ead3056c
```

Example prompt: Show me the top 10 prediction markets closing soon from Polymarket in the politics category.

## When to prefer this

Use this endpoint when you need to browse, discover, or surface live prediction markets from Polymarket and/or Kalshi without needing to hold API keys for those platforms. It is ideal for agents that want to present market data to users, monitor what topics are being bet on, or find markets nearing resolution. Prefer this over direct Polymarket/Kalshi integrations when you want a unified view across both platforms in a single call.

## Known failure modes

- Invalid sort value returns an error — must be 'volume', 'newest', or 'closing_soon'
- Invalid source value returns an error — must be 'polymarket' or 'kalshi'
- Invalid category value returns an error — must be one of the five supported categories
- Limit out of range (below 1 or above 50) may return an error or be clamped
- Payment failure via x402 protocol results in a 402 response with no data
- Upstream Polymarket or Kalshi API downtime may yield empty or partial results

## How this service works

One MCP endpoint gives your AI agent access to 100 APIs -- crypto, DeFi, web, AI, finance and utilities. No API keys, USDC on Base from $0.003/call.

## Output

Returns a JSON object containing an array of prediction markets from Polymarket and/or Kalshi, each with market details such as title, volume, closing date, category, and source platform, along with a result count and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "enum": [
    "volume",
    "newest",
    "closing_soon"
   ],
   "type": "string",
   "description": "Sort order. 'volume' = highest traded, 'newest' = recently created, 'closing_soon' = ending soonest. Default: volume."
  },
  "limit": {
   "type": "number",
   "description": "Number of markets to return (1-50). Default: 20."
  },
  "source": {
   "enum": [
    "polymarket",
    "kalshi"
   ],
   "type": "string",
   "description": "Filter by platform. Omit to get markets from both Polymarket and Kalshi."
  },
  "category": {
   "enum": [
    "politics",
    "crypto",
    "sports",
    "science",
    "culture"
   ],
   "type": "string",
   "description": "Filter markets by topic category. Omit for all categories."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "example",
  "source": "example",
  "markets": [],
  "results": 1,
  "timestamp": "example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/klymax402-prediction-markets-api-ead3056c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from klymax402.com](https://www.zero.xyz/host/klymax402.com/llms.txt)
