# Polymarket Prediction Market Search

> Polymarket Prediction Market Search is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-12-04).

Search Polymarket prediction markets by keyword and return open (or closed) markets with outcome odds, bid/ask prices, volume, liquidity, and end dates.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/polymarket/search?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-04
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-polymarket-prediction-market-1cd3cdcd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_usid06DaZgoA8vEdfGR0V

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 agent-data-tools-revmesh2074-workers-dev-polymarket-prediction-market-1cd3cdcd
```

Example prompt: What are the current Polymarket odds for the Fed cutting rates this year? Search for up to 5 open markets on 'fed rates' and show me the outcome probabilities and liquidity for each.

## When to prefer this

Use this endpoint when you need to discover Polymarket markets by topic and retrieve current crowd-sourced probability estimates for any event. It is the right choice when you want to look up odds before accessing an order book, compare multiple markets on a theme, or feed probability data into a forecasting pipeline. Prefer this over manually browsing Polymarket when you need structured, machine-readable output with bid/ask spreads and volume data.

## Known failure modes

- No markets found for the keyword — returns empty markets array with count 0
- Polymarket API unavailable — upstream timeout or error propagated in response
- Invalid 'closed' parameter value — may be ignored or cause unexpected results
- limit out of range (outside 1-20) — may be clamped or return an error
- Stale data if Polymarket's API has delayed updates

## How this service works

Search Polymarket prediction markets by keyword (election, bitcoin, fed, world cup) and get the matching open markets with outcome odds as implied probabilities, best bid and ask, volume, liquidity, end date and token ids. Use to look up the odds on an event, find a market before reading its order book, or feed a forecasting agent.

## Output

A JSON object containing the query string, number of matching markets, a timestamp, and an array of markets each with: market question, URL, slug, active/closed flags, outcome names with implied probability prices and token IDs, best bid, best ask, last trade price, 24h price change, total volume, 24h volume, liquidity, condition ID, and end date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "q"
 ],
 "properties": {
  "q": {
   "type": "string",
   "description": "Search words, e.g. bitcoin, election, fed rates"
  },
  "limit": {
   "type": "integer",
   "description": "Markets to return, 1-20 (default 10)"
  },
  "closed": {
   "type": "string",
   "description": "true for resolved or closed markets instead of open ones"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "note": {
   "type": "string"
  },
  "count": {
   "type": "number"
  },
  "query": {
   "type": "string"
  },
  "closed": {
   "type": "boolean"
  },
  "markets": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "slug": {
      "type": "string"
     },
     "active": {
      "type": "boolean"
     },
     "closed": {
      "type": "boolean"
     },
     "volume": {
      "type": "number"
     },
     "bestAsk": {
      "type": "number"
     },
     "bestBid": {
      "type": "number"
     },
     "endDate": {
      "type": "string"
     },
     "outcomes": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "price": {
         "type": "number"
        },
        "tokenId": {
         "type": "string"
        }
       }
      }
     },
     "question": {
      "type": "string"
     },
     "dayChange": {
      "type": "number"
     },
     "liquidity": {
      "type": "number"
     },
     "volume24h": {
      "type": "number"
     },
     "conditionId": {
      "type": "string"
     },
     "lastTradePrice": {
      "type": "number"
     }
    }
   }
  },
  "checkedAt": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-polymarket-prediction-market-1cd3cdcd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
