# CoinOpSelect Prediction Markets Data API

> CoinOpSelect Prediction Markets Data API is a paid API for AI agents from coinop.publicvm.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-22).

Fetches top prediction markets by volume from Polymarket or Kalshi, including prices, liquidity, spreads, and 24h volume.

## Facts

- Endpoint: GET https://coinop.publicvm.com/api/v1/prediction/markets?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinopselect-prediction-markets-data-api-b500338c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9nyeCRqyPaXQ08no_xUx2

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 coinopselect-prediction-markets-data-api-b500338c
```

Example prompt: Show me the top 20 prediction markets on Polymarket right now, including their current prices, spreads, and 24-hour volume.

## When to prefer this

Use this endpoint when you need real-time ranked prediction market data from Polymarket or Kalshi, including bid/ask spreads, liquidity, and 24h volume, especially in an agent context that supports x402 micropayment on Base. Prefer this over scraping or public APIs when you need structured, aggregated top-N markets in a single call with on-chain payment.

## Known failure modes

- Invalid venue parameter (only 'polymarket' or 'kalshi' accepted) returns an error
- Limit out of range (must be 1-50) may return an error or default
- Payment failure via x402 protocol returns 402 with payment details
- Upstream data source unavailable returns partial or stale data
- Rate limiting if too many calls in rapid succession

## How this service works

Pay-per-call agent data over x402. No signup, no API key, no minimum spend. CoinOpSelect Agent Data API

## Output

A JSON object containing a count of markets, the venue queried, a timestamp, an array of top markets sorted by volume (each with question, slug, best bid, best ask, spread, liquidity, 24h volume, resolution date, condition ID, and price change), plus aggregate total liquidity and total 24h volume across returned markets.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Number of markets, 1-50 (default 10)"
      },
      "venue": {
       "type": "string",
       "description": "polymarket|kalshi (default polymarket)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "count": {
     "type": "number"
    },
    "venue": {
     "type": "string"
    },
    "source": {
     "type": "string"
    },
    "generatedAt": {
     "type": "string"
    },
    "topByVolume": {
     "type": "array"
    },
    "totalLiquidity": {
     "type": "number"
    },
    "totalVolume24h": {
     "type": "number"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 0,
  "venue": "polymarket",
  "source": "stream-5-prediction/prediction-data",
  "generatedAt": "2026-01-01T00:00:00.000Z",
  "topByVolume": [
   {
    "id": "682705",
    "mid": 0,
    "slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
    "venue": "polymarket",
    "spread": 0,
    "volume": 0,
    "bestAsk": 0,
    "bestBid": 0,
    "endDate": "2026-10-28T03:59:00Z",
    "negRisk": false,
    "outcomes": [],
    "question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
    "liquidity": 702451.1328,
    "volume24hr": 0,
    "conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
    "resolutionSource": "",
    "oneDayPriceChange": 0,
    "umaResolutionStatus": ""
   }
  ],
  "totalLiquidity": 0,
  "totalVolume24h": 0
 }
}
```

## More

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