# Polymarket Prediction Markets Query

> Polymarket Prediction Markets Query is a paid API for AI agents from api.agent-data.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Returns Polymarket prediction market data matching a search query or top-traded markets, including outcome probabilities, 24h volume, liquidity, 24h price change, and end date.

## Facts

- Endpoint: GET https://api.agent-data.workers.dev/api/v1/polymarket?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-prediction-markets-query-428d20a9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LwwTMiNBaCsnWn7_g4hTN

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-prediction-markets-query-428d20a9
```

Example prompt: Can you look up the current Polymarket prediction market odds for Bitcoin — show me the top 5 results including probabilities and 24-hour volume?

## When to prefer this

Use this endpoint when you need real-time prediction market probabilities and trading data from Polymarket specifically. Prefer this over general web search when you need structured, machine-readable probability data for forecasting questions about crypto, politics, or current events, and when you need 24h volume and liquidity signals alongside the odds.

## Known failure modes

- No markets found for the given query — returns empty markets array
- Query too broad returns unrelated markets
- Limit parameter out of range (must be 1–50) causes validation error
- Polymarket API unavailable upstream causes 5xx error
- Misspelled search terms yield low-relevance results

## How this service works

Polymarket prediction markets matching a query or the most traded ones: outcome probabilities, 24h volume, liquidity, 24h change and end date.

## Output

A JSON array of prediction markets matching the query (or top-traded if no query), each containing the market question, a list of outcomes with names and probabilities, 24h USD volume, liquidity, 24h change, and market end date.

## 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": {
      "q": {
       "type": "string",
       "description": "Search words"
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "bitcoin",
  "markets": [
   {
    "outcomes": [
     {
      "name": "Yes",
      "probability": 0.23
     },
     {
      "name": "No",
      "probability": 0.77
     }
    ],
    "question": "Will Bitcoin reach $150k in 2026?",
    "volume_24h_usd": 1250000
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-prediction-markets-query-428d20a9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agent-data.workers.dev](https://www.zero.xyz/host/api.agent-data.workers.dev/llms.txt)
