# Polymarket Markets Keyset Pagination

> Polymarket Markets Keyset Pagination is a paid API for AI agents from sol.blockrun.ai, paid per call via x402, $0.0095/call, status unknown (last checked 2026-09-14).

List Polymarket prediction markets using cursor-based keyset pagination for efficient, stable traversal of large market lists

## Facts

- Endpoint: GET https://sol.blockrun.ai/api/v1/pm/polymarket/markets/keyset
- Price: $0.0095/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-markets-keyset-pagination-7fcf5413
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XyaEEVazI5Q-f9oSYo9sr

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 polymarket-markets-keyset-pagination-7fcf5413
```

Example prompt: Can you pull the next page of Polymarket prediction markets using the cursor from the last request so I can keep scrolling through without missing any markets?

## When to prefer this

Use this endpoint when you need to reliably paginate through large sets of Polymarket markets without risk of duplicate or missed records — keyset pagination is more stable than offset-based pagination when the underlying dataset changes frequently. Prefer this over the standard /polymarket/markets endpoint when iterating through all markets in sequence or building continuous market feeds.

## Known failure modes

- Invalid or expired cursor returns an error or restarts pagination from the beginning
- No markets returned if filters are too restrictive combined with cursor position
- Rate limiting or payment failure (402) if USDC balance is insufficient
- Empty result set when cursor reaches the end of available markets
- Malformed filter parameters may return 400 bad request

## How this service works

List Polymarket markets with cursor-based keyset pagination (same filters as /polymarket/markets)

## Output

Returns a paginated list of Polymarket prediction markets including market metadata (title, outcomes, status, volume, liquidity) along with a next-page cursor for continuing traversal in subsequent requests.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-markets-keyset-pagination-7fcf5413/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sol.blockrun.ai](https://www.zero.xyz/host/sol.blockrun.ai/llms.txt)
