# Prediction Market Search

> Prediction Market Search is a paid API for AI agents from agentbodega.store, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Search and filter prediction markets by query, category, venue, activity status, and sort order, returning live market intelligence with a receipt-backed payment record.

## Facts

- Endpoint: POST https://agentbodega.store/api/prediction-markets/search
- 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/prediction-market-search-e462e366
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xSZgbRL2g_YDG64LRejLy

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 prediction-market-search-e462e366 -d '<json body>'
```

Example prompt: Search prediction markets for active politics markets on Polymarket, sorted by most recent, and show me what's currently trading on the 2024 US election.

## When to prefer this

Use this endpoint when an agent needs to discover, browse, or filter prediction markets across categories and venues in real time. Prefer this over general web search when structured market data with activity status and sortability is needed, especially when the user wants to monitor or analyze specific market types (politics, sports, finance) on specific prediction platforms.

## Known failure modes

- Invalid or unsupported category returns no results or error
- Unknown venue identifier returns empty result set
- Malformed query string causes API error
- Payment failure or insufficient USDC balance blocks request
- Rate limiting if too many requests are made in a short window
- No markets found matching the specified filters returns empty list

## How this service works

Search active or historical public prediction markets by keyword, category, venue, liquidity, volume, and end date; returns normalized read-only market rows with outcomes, prices, and source-neutral feed metadata.

## Output

A list of matching prediction markets with live market intelligence including odds, activity status, category, venue, and sort-ordered results, plus a receipt-backed record confirming the paid API request was processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "fields": [
      {
       "name": "query",
       "type": "string",
       "required": false
      },
      {
       "name": "venue",
       "type": "string",
       "required": false
      },
      {
       "name": "activeOnly",
       "type": "boolean",
       "required": false
      },
      {
       "name": "closed",
       "type": "boolean",
       "required": false
      },
      {
       "name": "category",
       "type": "string",
       "required": false
      },
      {
       "name": "limit",
       "type": "integer",
       "required": false
      },
      {
       "name": "sort",
       "type": "string",
       "required": false
      },
      {
       "name": "includeRules",
       "type": "boolean",
       "required": false
      }
     ],
     "required": [],
     "fieldCount": 8,
     "contentType": "application/json",
     "optionalPreview": [
      "query",
      "venue",
      "activeOnly",
      "closed",
      "category",
      "limit",
      "sort",
      "includeRules"
     ],
     "omittedFieldCount": 0
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-market-search-e462e366/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbodega.store](https://www.zero.xyz/host/agentbodega.store/llms.txt)
