# AgentPay Prediction Market Search

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

Search prediction markets by topic and return current market questions, outcomes, and trading volumes

## Facts

- Endpoint: POST https://agentpay.help/v1/prediction-market
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentpay-prediction-market-search-ee854aa5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_55_iTT3EkTquPGDingkxd

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

Example prompt: What does the prediction market currently say about a Fed rate hike in 2026? Show me up to 5 markets on that topic.

## When to prefer this

Use this endpoint when you need real-time crowd-sourced probability data on a specific topic — especially for macroeconomic, political, or financial events. Prefer this over news search when you want quantified market consensus rather than narrative reporting, and over general web search when you specifically need trading volume and binary outcome probabilities from prediction markets.

## Known failure modes

- Query too short (under 2 characters) returns validation error
- No matching markets found returns empty events array
- Limit outside 1-10 range may return an error or default behavior
- Payment failure via x402 returns 402 Payment Required
- Network or upstream data provider outage returns 5xx error

## How this service works

Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.

## Output

A JSON object containing a count, the original query, and a list of matching events. Each event includes a title, end date, and one or more markets with questions, outcome probabilities (Yes/No), and trading volume in USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "description": "Max events 1-10, default 5"
  },
  "query": {
   "type": "string",
   "minLength": 2,
   "description": "Topic to search markets for"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "query": "fed rate",
  "events": [
   {
    "title": "Fed rate hike in 2026?",
    "markets": [
     {
      "volume": "128000",
      "outcomes": {
       "No": 1,
       "Yes": 0
      },
      "question": "Fed Rate Hike by June 2026 Meeting?"
     }
    ],
    "end_date": "2026-12-31T00:00:00Z"
   }
  ]
 }
}
```

## More

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