# Prediction Market Event Lookup

> Prediction Market Event Lookup is a paid API for AI agents from x402-stock-indicators.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches real-time prediction market data for a specific event by slug, including outcomes, probabilities, trading volume, and market status from Polymarket.

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/prediction-market-event/%7Bslug%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-market-event-lookup-66e9dd59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7o6tI3xQV2r7r5EPbtNDF

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-event-lookup-66e9dd59
```

Example prompt: Pull up the Polymarket prediction market for 'next-prime-minister-of-ethiopia' and tell me the current probabilities and trading volume for each outcome.

## When to prefer this

Use this endpoint when you need structured, per-outcome probability and volume data for a specific Polymarket prediction market event identified by its slug, without needing an API key or subscription — ideal for pay-per-call agent workflows using USDC micropayments over x402.

## Known failure modes

- Invalid or non-existent slug returns a 404 or empty result
- Market may be closed or resolved, returning a status other than 'active'
- Payment failure over x402 protocol if USDC balance is insufficient
- Slug format mismatch (e.g. using spaces instead of hyphens) causes lookup failure
- Stale data if Polymarket feed is delayed

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

Returns a JSON object containing the event slug, human-readable title, data source (e.g. Polymarket), market status (active/closed), an array of outcomes each with label, market ID, USD trading volume, and probability, the market close date, and the total number of outcomes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "slug": "next-prime-minister-of-ethiopia",
  "title": "Next Prime Minister of Ethiopia?",
  "source": "polymarket",
  "status": "active",
  "outcomes": [
   {
    "label": "Will Abiy Ahmed be the next Prime Minister of Ethiopia?",
    "market_id": "will-abiy-ahmed-be-the-next-prime-minister-of-ethiopia",
    "volume_usd": 123390.75,
    "probability": 0.9395
   },
   {
    "label": "Will someone else be the next Prime Minister of Ethiopia?",
    "market_id": "will-someone-else-be-the-next-prime-minister-of-ethiopia",
    "volume_usd": 41200.5,
    "probability": 0.03
   }
  ],
  "close_date": "2026-12-31T12:00:00Z",
  "outcome_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-market-event-lookup-66e9dd59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
