# Polymarket Odds Lookup

> Polymarket Odds Lookup is a paid API for AI agents from x402-endpoints.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Fetches real-time prediction market odds and probabilities for a specific Polymarket market by ID or slug

## Facts

- Endpoint: GET https://x402-endpoints.onrender.com/polymarket/odds
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-odds-lookup-e19b1a53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mpj_HeH71gD1efx5k8In0

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 polymarket-odds-lookup-e19b1a53
```

Example prompt: What are the current Polymarket odds for the market 'will-it-rain-tomorrow' — give me each outcome's probability and the total liquidity?

## When to prefer this

Use this endpoint when you need real-time, structured prediction market probabilities from Polymarket for a specific known market ID or slug. Prefer this over manual web scraping when you need machine-readable probabilities, liquidity, and volume data for downstream agent decisions such as risk assessment or event probability weighting.

## Known failure modes

- Invalid or non-existent market ID/slug returns an error or empty result
- Market may be closed or resolved, returning closed:true with no live odds
- Polymarket Gamma API upstream downtime causes fetch failure
- Stale or cached data may not reflect the most recent trades if cached:true
- Payment failure (insufficient USDC balance) blocks the request entirely before any data is returned

## How this service works

Live prediction market odds, implied probabilities and betting-market data from Polymarket — give a market id or slug, get each outcome with its probability (0-1), volume, liquidity and resolution status.

## Output

Returns a structured JSON object with the market question, active/closed status, list of outcomes with names, prices, and probabilities, total liquidity, trading volume, end date, and a timestamp. Also indicates whether data was served from cache and names the source (Polymarket Gamma API). Includes a disclaimer that odds are indicative and not investment advice.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "market"
     ],
     "properties": {
      "market": {
       "type": "string",
       "description": "Polymarket market id or slug, e.g. '2654605' or 'will-it-rain-tomorrow'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "2654605",
  "slug": "wta-andreeva-vs-day-set-2",
  "active": true,
  "cached": false,
  "closed": false,
  "source": "Polymarket Gamma API (gamma-api.polymarket.com)",
  "volume": "99.98",
  "end_date": "2026-07-01T11:30:00Z",
  "outcomes": [
   {
    "name": "Andreeva",
    "price": 0.06,
    "probability": 0.06
   },
   {
    "name": "Day",
    "price": 0.94,
    "probability": 0.94
   }
  ],
  "question": "Set 2 Winner: Andreeva vs Day",
  "liquidity": "1426.8",
  "timestamp": "2026-06-24T14:20:00Z",
  "disclaimer": "Indicative market odds, not investment advice.",
  "resolution_source": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-odds-lookup-e19b1a53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-endpoints.onrender.com](https://www.zero.xyz/host/x402-endpoints.onrender.com/llms.txt)
