# Mavrin Prediction Market Odds API

> Mavrin Prediction Market Odds API is a paid API for AI agents from api.mavrin.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns real-time yes/no ask prices and arbitrage gap for a tracked market pair across Kalshi and Polymarket US

## Facts

- Endpoint: GET https://api.mavrin.app/api/v1/odds
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mavrin-prediction-market-odds-api-6d976b5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FIflA31GW21pjNm76CfOS

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 mavrin-prediction-market-odds-api-6d976b5f
```

Example prompt: What are the current Kalshi and Polymarket odds for the Yankees winning the 2026 MLB championship — and is there an arbitrage gap I should know about?

## When to prefer this

Choose this endpoint when you need real-time, cross-platform prediction market odds from both Kalshi and Polymarket US in a single call, especially when analyzing arbitrage opportunities or hedge costs. Prefer this over querying Kalshi or Polymarket directly when you want normalized, side-by-side comparison data for the same event. Best for AI agents that need to make trading or research decisions based on current market prices without integrating two separate APIs.

## Known failure modes

- Invalid or unrecognized pair_id returns an error or empty result
- Omitting pair_id returns the list of all available pair IDs rather than specific odds
- Payment not fulfilled via x402 results in 402 Payment Required response
- Market may be temporarily unavailable if Kalshi or Polymarket data feed is stale
- Rate limiting or authentication failure if payment protocol is not correctly implemented

## How this service works

Kalshi and Polymarket US research data for agents. Free market search and coverage, odds from 0.004 USDC, and x402 payments on Base.

## Output

Returns a JSON object with the pair_id, yes_ask and no_ask prices from both Kalshi and Polymarket US, the hedge_cost (total cost to hedge both sides), and the gap (price difference between platforms), enabling cross-platform odds comparison and arbitrage analysis.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "pair_id": {
       "type": "string",
       "description": "tracked pair id; omit to list all available pair ids"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gap": 0.006,
  "kalshi": {
   "no_ask": 0.902,
   "yes_ask": 0.099
  },
  "pair_id": "mlb-champ-2026-yankees",
  "hedge_cost": 0.994,
  "polymarket_us": {
   "no_ask": 0.885,
   "yes_ask": 0.117
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mavrin-prediction-market-odds-api-6d976b5f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mavrin.app](https://www.zero.xyz/host/api.mavrin.app/llms.txt)
