# Prediction Markets and Derivatives — List Polymarket markets with cursor-based keyset pagination (same filters as /poly…

Query BlockRun Polymarket Markets data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as limit, sort, status, and retrieve structured data including continuation flag, reported count, result limit, returned pagination key field, and reported status for market reference and account inspection, and integration reference.

Documentation: https://openany.si/blockrun/blockrun-prediction-markets-and-derivatives-list-polymarket-markets-with-cursor-based-keyset-pag/542f59d2-3e81-49d0-8ed5-3b0204b808e7/
API ID: 542f59d2-3e81-49d0-8ed5-3b0204b808e7
Provider: blockrun
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/markets/keyset
Page update time: 2026-12-03T02:55:56.595Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.0075 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:55.950Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "7500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## BlockRun Polymarket Markets API

List Polymarket markets with cursor-based keyset pagination (same filters as /polymarket/markets) with the BlockRun API. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Market reference and account inspection**: Keep market, asset and account identities distinct when interpreting records.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `pagination.has_more` | Continuation flag |
| `pagination.count` | Reported count |
| `pagination.limit` | Result limit |
| `pagination.pagination_key` | Returned pagination key field |
| `markets[].status` | Reported status |
| `markets[].title` | Title |
| `markets[].condition_id` | Returned condition id field |
| `markets[].description` | Description |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Prediction Markets and Derivatives — List Polymarket markets with cursor-based keyset pagination (same filters as /poly… request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "condition_id": {
          "type": [
            "array",
            "null"
          ],
          "description": "Polymarket condition ID(s).",
          "items": {
            "type": "string"
          }
        },
        "end_after": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Only markets ending after this unix timestamp (seconds).",
          "minimum": 0
        },
        "end_before": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Only markets ending before this unix timestamp (seconds).",
          "minimum": 0
        },
        "event_slug": {
          "type": [
            "array",
            "null"
          ],
          "description": "Event slug(s). The slug filter for /markets is `event_slug` (or `market_slug`), NOT `slug`.",
          "items": {
            "type": "string"
          }
        },
        "limit": {
          "type": "integer",
          "description": "Max results to return (default 20, max 100).",
          "minimum": 1,
          "maximum": 100
        },
        "market_id": {
          "type": [
            "array",
            "null"
          ],
          "description": "Filter by market ID(s)",
          "items": {
            "type": "string"
          }
        },
        "market_slug": {
          "type": [
            "array",
            "null"
          ],
          "description": "Market slug(s).",
          "items": {
            "type": "string"
          }
        },
        "max_price": {
          "type": [
            "number",
            "null"
          ],
          "description": "Maximum price",
          "minimum": 0,
          "maximum": 1
        },
        "min_open_interest": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum open interest (USD)",
          "minimum": 0
        },
        "min_price": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum price",
          "minimum": 0,
          "maximum": 1
        },
        "min_trades_1d": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Minimum rolling 1-day trade count",
          "minimum": 0
        },
        "min_trades_30d": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Minimum rolling 30-day trade count",
          "minimum": 0
        },
        "min_trades_7d": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Minimum rolling 7-day trade count",
          "minimum": 0
        },
        "min_volume": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum volume (USD)",
          "minimum": 0
        },
        "min_volume_1d": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum rolling 1-day volume (USD)",
          "minimum": 0
        },
        "min_volume_30d": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum rolling 30-day volume (USD)",
          "minimum": 0
        },
        "min_volume_7d": {
          "type": [
            "number",
            "null"
          ],
          "description": "Minimum rolling 7-day volume (USD)",
          "minimum": 0
        },
        "offset": {
          "type": "integer",
          "description": "Deprecated — use pagination_key.",
          "minimum": 0
        },
        "pagination_key": {
          "type": [
            "string",
            "null"
          ],
          "description": "Opaque cursor from a prior response for keyset pagination."
        },
        "predexon_id": {
          "type": [
            "array",
            "null"
          ],
          "description": "Canonical cross-venue Predexon ID(s).",
          "items": {
            "type": "string"
          }
        },
        "question_id": {
          "type": [
            "array",
            "null"
          ],
          "description": "Filter by question ID(s)",
          "items": {
            "type": "string"
          }
        },
        "search": {
          "type": [
            "string",
            "null"
          ],
          "description": "Free-text search over market/question text (min 3 chars). Note: this param is `search` here, NOT `q` — only /markets/search uses `q`.",
          "minLength": 3,
          "maxLength": 100
        },
        "sort": {
          "type": "string",
          "description": "Sort order for results.",
          "enum": [
            "volume",
            "open_interest",
            "price_desc",
            "price_asc",
            "expiration",
            "expiration_asc",
            "created",
            "created_asc",
            "relevance",
            "volume_1d",
            "volume_7d",
            "volume_30d",
            "trades_1d",
            "trades_7d",
            "trades_30d",
            "oi_change_1d",
            "oi_change_7d",
            "oi_change_30d"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ],
          "description": "Filter by market status (e.g. \"open\", \"closed\").",
          "enum": [
            "open",
            "closed",
            null
          ]
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "description": "Filter by Polymarket tag(s).",
          "items": {
            "type": "string"
          }
        },
        "token_id": {
          "type": [
            "array",
            "null"
          ],
          "description": "Filter by token ID(s) - matches either side_a or side_b",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "markets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "condition_id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "end_time": {
            "type": "string"
          },
          "market_id": {
            "type": "string"
          },
          "market_slug": {
            "type": "string"
          },
          "question_id": {
            "type": "string"
          },
          "start_time": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "winning_side": {
            "type": "string"
          }
        }
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean"
        },
        "limit": {
          "type": "integer"
        },
        "pagination_key": {
          "type": "string"
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/markets/keyset?limit=1&sort=volume&status=closed' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "markets": [
    {
      "condition_id": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917",
      "description": "This market will resolve to “Yes” if Donald J. Trump wins the 2024 US Presidential Election. Otherwise, this market will resolve to “No.”\n\nThe resolution source for this market is the Associated Press, Fox News, and NBC. This market will resolve once all three sources call the race for the same candidate. If all three sources haven’t called the race for the same candidate by the inauguration date (January 20, 2025) this market will resolve based on who is inaugurated.",
      "end_time": "2024-11-05T12:00:00Z",
      "market_id": "253591",
      "market_slug": "will-donald-trump-win-the-2024-us-presidential-election",
      "question_id": "0xe3b1bc389210504ebcb9cffe4b0ed06ccac50561e0f24abb6379984cec030f00",
      "start_time": "2024-01-04T22:58:00Z",
      "status": "closed",
      "title": "Will Donald Trump win the 2024 US Presidential Election?",
      "winning_side": "A"
    }
  ],
  "pagination": {
    "count": 1,
    "has_more": true,
    "limit": 1,
    "pagination_key": "eyJzdiI6MTYzNjE4ODIyMi40NzcwMzMxLCJ0aWUiOiIweGRkMjI0NzJlNTUyOTIwYjg0MzgxNThlYTcyMzhiZmFkZmE0ZjczNmFhNGNlZTkxYTZiODZjMzllYWQxMTA5MTciLCJzY29wZSI6eyJzdGF0dXMiOiJjbG9zZWQiLCJtaW5fcHJpY2UiOm51bGwsIm1heF9wcmljZSI6bnVsbCwibWluX29wZW5faW50ZXJlc3QiOm51bGwsIm1pbl92b2x1bWUiOm51bGwsInRhZ3MiOm51bGwsImV2ZW50X3NsdWciOm51bGwsInNlYXJjaCI6bnVsbCwiY29uZGl0aW9uX2lkIjpudWxsLCJxdWVzdGlvbl9pZCI6bnVsbCwibWFya2V0X2lkIjpudWxsLCJtYXJrZXRfc2x1ZyI6bnVsbCwidG9rZW5faWQiOm51bGwsInByZWRleG9uX2lkIjpudWxsLCJlbmRfYWZ0ZXIiOm51bGwsImVuZF9iZWZvcmUiOm51bGwsInNvcnQiOiJ2b2x1bWUifX0="
  }
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this implementation require business input parameters?
No business input is marked as required by the selected schema. Review any optional filters and the documented request format before calling.

### Which pagination or result-size inputs are exposed?
end_after is integer with minimum 0; end_before is integer with minimum 0; limit is integer with minimum 1 and maximum 100; offset is integer with minimum 0. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Which values can I use for sort?
The selected schema accepts volume, open_interest, price_desc, price_asc, expiration, expiration_asc, created, created_asc, relevance, volume_1d, volume_7d, volume_30d, trades_1d, trades_7d, trades_30d, oi_change_1d, oi_change_7d, oi_change_30d. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- blockrun: https://openany.si/blockrun/blockrun-prediction-markets-and-derivatives-list-polymarket-markets-with-cursor-based-keyset-pag/542f59d2-3e81-49d0-8ed5-3b0204b808e7/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
