# BlockRun.AI Polymarket Markets Keyset Pagination

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

Lists Polymarket prediction markets using cursor-based keyset pagination for efficient traversal of large market datasets

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/pm/polymarket/markets/keyset
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-b68d36dd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NQzmZxUB5MSz-J81QcblQ

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 blockrun-ai-b68d36dd
```

Example prompt: Show me the next page of Polymarket prediction markets using the cursor from my last query so I can continue browsing through all available markets.

## When to prefer this

Use this endpoint when you need to efficiently paginate through large volumes of Polymarket markets without offset-based pagination issues; keyset/cursor pagination avoids the performance degradation and inconsistency problems of offset pagination for large datasets

## Known failure modes

- Invalid or expired cursor returns error or restarts pagination
- No markets found returns empty data array
- Rate limiting or payment failure returns 402 or 429 status
- 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 markets including market metadata and a cursor token for fetching the next page of results

## Example request

```json
{
 "input": {
  "body": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "query": {
     "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/blockrun-ai-b68d36dd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
