# Riley Craig x402 Agent Store — Prediction Markets

> Riley Craig x402 Agent Store — Prediction Markets is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches live prediction market listings from Polymarket, filterable by keyword, sorted by volume or liquidity, returning implied probabilities and trading data.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/markets/prediction
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-prediction-markets-2c75815c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RyI_zC4DYb2OO6WbuW8Vu

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 riley-craig-x402-agent-store-prediction-markets-2c75815c
```

Example prompt: What are the top 10 Bitcoin prediction markets on Polymarket right now, sorted by volume? Show me the questions and their implied yes probabilities.

## When to prefer this

Use this endpoint when an agent needs real-time prediction market data including crowd-implied probabilities and trading volumes, especially for crypto, macro, or political events. Prefer over generic news APIs when you want quantified market beliefs rather than editorial content. Best when the user wants to know what traders are actually betting on.

## Known failure modes

- Invalid sort parameter returns error — only 'volume' or 'liquidity' accepted
- top parameter out of range (>25 or <1) may return validation error
- No markets match keyword filter — returns empty markets array with count 0
- Payment not included or insufficient — returns 402 Payment Required
- Service unavailable — upstream Polymarket data fetch failure

## How this service works

Live real-money prediction-market odds from Polymarket: top markets by 24h volume with implied probabilities, price moves, dollar volume, and liquidity. Search by keyword (bitcoin, election, fed, world cup, AI). For trading, forecasting, news, and event-resolution agents — one paid call instead of integrating the exchange API yourself.

## Output

A JSON object with a count, source (polymarket), and an array of market objects each containing the market question, end date, 24-hour volume in USD, and implied yes probability as a decimal.

## 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": "Keyword filter, e.g. bitcoin, election, fed, world cup"
      },
      "top": {
       "type": "number",
       "description": "1-25, default 10"
      },
      "sort": {
       "type": "string",
       "description": "volume|liquidity, default volume"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "markets": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "source": "polymarket",
  "markets": [
   {
    "end_date": "2026-07-01",
    "question": "Will Bitcoin hit $150k by June 30, 2026?",
    "volume_24h": 5821652,
    "implied_yes": 0.0135
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-prediction-markets-2c75815c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
