# Polymarket — List markets (keyset pagination)

List Polymarket markets via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as closed, limit, and retrieve structured data including market identifier, market question, market URL slug, condition identifier, and reported outcome-label representation for market catalogs, and filtered research, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-list-markets-keyset-pagination/15686d0b-61bc-4e21-afc4-6cdb7d02f867/
API ID: 15686d0b-61bc-4e21-afc4-6cdb7d02f867
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4
Page update time: 2026-12-03T02:49:26.223Z
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 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:25.807Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Markets Keyset API

Read records from markets and continue by passing next\_cursor as after\_cursor. limit is 1–100; offset is prohibited. Preserve the exact filters and ordering when continuing. tag\_id is an array on this route.

## What You Can Build

- **Market catalogs**: Display market questions with their identities.
- **Filtered research**: Keep date and activity bounds attached to each result set.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `markets[].id` | Market identifier |
| `markets[].question` | Market question |
| `markets[].slug` | Market URL slug |
| `markets[].conditionId` | Condition identifier |
| `markets[].outcomes` | Reported outcome-label representation |
| `markets[].liquidity` | Reported liquidity context |
| `next_cursor` | Opaque continuation cursor |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — List markets (keyset pagination) 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": {
        "limit": {
          "type": "integer",
          "description": "Maximum number of results to return (max 100)",
          "minimum": 1,
          "maximum": 100
        },
        "order": {
          "type": "string",
          "description": "Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num"
        },
        "ascending": {
          "type": "boolean",
          "description": "Sort direction. Only used when order is set."
        },
        "after_cursor": {
          "type": "string",
          "description": "Opaque cursor token from a previous response's next_cursor"
        },
        "offset": {
          "type": "integer",
          "description": "Not allowed. Returns 422 if provided."
        },
        "id": {
          "type": "array",
          "description": "id",
          "items": {
            "type": "integer"
          }
        },
        "slug": {
          "type": "array",
          "description": "slug",
          "items": {
            "type": "string"
          }
        },
        "closed": {
          "type": "boolean",
          "description": "Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed."
        },
        "decimalized": {
          "type": "boolean",
          "description": "decimalized"
        },
        "clob_token_ids": {
          "type": "array",
          "description": "clob_token_ids",
          "items": {
            "type": "string"
          }
        },
        "condition_ids": {
          "type": "array",
          "description": "condition_ids",
          "items": {
            "type": "string"
          }
        },
        "question_ids": {
          "type": "array",
          "description": "question_ids",
          "items": {
            "type": "string"
          }
        },
        "liquidity_num_min": {
          "type": "number",
          "description": "liquidity_num_min"
        },
        "liquidity_num_max": {
          "type": "number",
          "description": "liquidity_num_max"
        },
        "volume_num_min": {
          "type": "number",
          "description": "volume_num_min"
        },
        "volume_num_max": {
          "type": "number",
          "description": "volume_num_max"
        },
        "start_date_min": {
          "type": "string",
          "description": "start_date_min",
          "format": "date-time"
        },
        "start_date_max": {
          "type": "string",
          "description": "start_date_max",
          "format": "date-time"
        },
        "end_date_min": {
          "type": "string",
          "description": "end_date_min",
          "format": "date-time"
        },
        "end_date_max": {
          "type": "string",
          "description": "end_date_max",
          "format": "date-time"
        },
        "tag_id": {
          "type": "array",
          "description": "tag_id",
          "items": {
            "type": "integer"
          }
        },
        "related_tags": {
          "type": "boolean",
          "description": "related_tags"
        },
        "tag_match": {
          "type": "string",
          "description": "tag_match"
        },
        "cyom": {
          "type": "boolean",
          "description": "cyom"
        },
        "rfq_enabled": {
          "type": "boolean",
          "description": "rfq_enabled"
        },
        "uma_resolution_status": {
          "type": "string",
          "description": "uma_resolution_status"
        },
        "game_id": {
          "type": "string",
          "description": "game_id"
        },
        "sports_market_types": {
          "type": "array",
          "description": "sports_market_types",
          "items": {
            "type": "string"
          }
        },
        "include_tag": {
          "type": "boolean",
          "description": "When true, includes Tags relation on each market"
        },
        "locale": {
          "type": "string",
          "description": "locale"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string"
    },
    "markets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "conditionId": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "endDate": {
            "type": "string"
          },
          "icon": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "liquidity": {
            "type": "string"
          },
          "outcomes": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "resolutionSource": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          }
        }
      }
    },
    "next_cursor": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4?closed=false&limit=2' \
  -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
{
  "$schema": "https://gamma-api.polymarket.com/schemas/MarketsKeysetListResponse.json",
  "markets": [
    {
      "conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
      "description": "This market will resolve to \"Yes\" if China's General Secretary of the Communist Party, Xi Jinping, is removed from power for any length of time between July 3, 2025, and December 31, 2026, 11:59 PM ET. Otherwise, this market will resolve to \"No\".\n\nCCP General Secretary Xi Jinping will be considered removed from power if he announces his resignation from his role as General Secretary, or is otherwise dismissed, detained, disqualified, or otherwise loses his position or is prevented from fulfilling his duties as General Secretary within this market's timeframe.\n\nThe primary resolution source for",
      "endDate": "2027-01-01T04:59:00Z",
      "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/xi-jinping-out-in-2025-EjF4SM20eaa3.jpg",
      "id": "559651",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/xi-jinping-out-in-2025-EjF4SM20eaa3.jpg",
      "liquidity": "376789.27736",
      "outcomes": "[\"Yes\", \"No\"]",
      "question": "Xi Jinping out before 2027?",
      "resolutionSource": "",
      "slug": "xi-jinping-out-before-2027",
      "startDate": "2025-07-03T20:37:00.228Z"
    },
    {
      "conditionId": "0x0f49db97f71c68b1e42a6d16e3de93d85dbf7d4148e3f018eb79e88554be9f75",
      "description": "This market will resolve to “Yes” if the named individual wins and accepts the 2028 nomination of the Democratic Party for U.S. president. Otherwise, this market will resolve to “No”.\n\nThe resolution source for this market will be a consensus of official Democratic Party sources.\n\nAny replacement of the democratic nominee before election day will not change the resolution of the market.",
      "endDate": "2028-11-08T04:59:00Z",
      "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-gavin-newsom-win-the-2028-us-presidential-election-x9lPL7_gXn--.png",
      "id": "559652",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-gavin-newsom-win-the-2028-us-presidential-election-x9lPL7_gXn--.png",
      "liquidity": "556617.52098",
      "outcomes": "[\"Yes\", \"No\"]",
      "question": "Will Gavin Newsom win the 2028 Democratic presidential nomination?",
      "resolutionSource": "",
      "slug": "will-gavin-newsom-win-the-2028-democratic-presidential-nomination-568",
      "startDate": "2025-07-11T18:35:56.805Z"
    }
  ],
  "next_cursor": "bjZlbp--Id8uILt2O_myoOvX-CNl-MzVGdWQ_udL8nt7InYiOjEsImsiOiJtYXJrZXRzIiwib2giOiI0ZjUzY2RhMThjMmJhYTBjMDM1NGJiNWY5YTNlY2JlNWVkMTJhYjRkOGUxMWJhODczYzJmMTExNjEyMDJiOTQ1Iiwia2V5cyI6W3sidCI6InN0cmluZyIsInYiOiI1NTk2NTIifV19"
}
```

## 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
### Can I send offset on this route?
No. The keyset route rejects any supplied offset with 422. Use after_cursor.

### How should I read outcomes?
The saved example encodes outcome labels as a JSON string. Inspect the returned type and parse a string representation deliberately rather than assuming an array.

### Can I substitute a condition ID for a token ID?
Keep numeric market IDs, condition IDs, question IDs and outcome-token IDs in their separate filters.

### Is tag_id scalar or an array?
It is an array on this keyset implementation.

### 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 implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-list-markets-keyset-pagination/15686d0b-61bc-4e21-afc4-6cdb7d02f867/

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