Polymarket — List markets (keyset pagination)
Use the Polymarket Markets List API to discover prediction markets and filter by status, liquidity, or trading volume. Use after_cursor to page through markets and date filters to narrow the results. Build prediction-market discovery tools, market dashboards, and scheduled data syncs. The GET request schema also lists limit, order, ascending. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Polymarket — List markets (keyset pagination)
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
$schemastringmarketsobject[]conditionIdstringdescriptionstringendDatestringiconstringidstringimagestringliquiditystringoutcomesstringquestionstringresolutionSourcestringslugstringstartDatestring
next_cursorstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
$schema?: string;
markets?: Array<{
conditionId?: string;
description?: string;
endDate?: string;
icon?: string;
id?: string;
image?: string;
liquidity?: string;
outcomes?: string;
question?: string;
resolutionSource?: string;
slug?: string;
startDate?: string;
}>;
next_cursor?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
PolymarketCurrent Polymarket — List markets (keyset pagination) · GET · View API reference | $0 / call | — | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
limit | URL query parametersquery | integer | No | Maximum number of results to return (max 100) minimum: 1 · maximum: 100 |
order | URL query parametersquery | string | No | Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num |
ascending | URL query parametersquery | boolean | No | Sort direction. Only used when order is set. |
after_cursor | URL query parametersquery | string | No | Opaque cursor token from a previous response's next_cursor |
offset | URL query parametersquery | integer | No | Not allowed. Returns 422 if provided. |
id | URL query parametersquery | array | No | idNested fields and variants
|
slug | URL query parametersquery | array | No | slugNested fields and variants
|
closed | URL query parametersquery | boolean | No | 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 | URL query parametersquery | boolean | No | decimalized |
clob_token_ids | URL query parametersquery | array | No | clob_token_idsNested fields and variants
|
condition_ids | URL query parametersquery | array | No | condition_idsNested fields and variants
|
question_ids | URL query parametersquery | array | No | question_idsNested fields and variants
|
liquidity_num_min | URL query parametersquery | number | No | liquidity_num_min |
liquidity_num_max | URL query parametersquery | number | No | liquidity_num_max |
volume_num_min | URL query parametersquery | number | No | volume_num_min |
volume_num_max | URL query parametersquery | number | No | volume_num_max |
start_date_min | URL query parametersquery | string | No | start_date_min format: date-time |
start_date_max | URL query parametersquery | string | No | start_date_max format: date-time |
end_date_min | URL query parametersquery | string | No | end_date_min format: date-time |
end_date_max | URL query parametersquery | string | No | end_date_max format: date-time |
tag_id | URL query parametersquery | array | No | tag_idNested fields and variants
|
related_tags | URL query parametersquery | boolean | No | related_tags |
tag_match | URL query parametersquery | string | No | tag_match |
cyom | URL query parametersquery | boolean | No | cyom |
rfq_enabled | URL query parametersquery | boolean | No | rfq_enabled |
uma_resolution_status | URL query parametersquery | string | No | uma_resolution_status |
game_id | URL query parametersquery | string | No | game_id |
sports_market_types | URL query parametersquery | array | No | sports_market_typesNested fields and variants
|
include_tag | URL query parametersquery | boolean | No | When true, includes Tags relation on each market |
locale | URL query parametersquery | string | No | locale |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"$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"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Polymarket — List markets (keyset pagination)
Use the Polymarket Markets List API to discover prediction markets and filter by status, liquidity, or trading volume. Use after_cursor to page through markets and date filters to narrow the results. Build prediction-market discovery tools, market dashboards, and scheduled data syncs. The GET request schema also lists limit, order, ascending. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — List markets (keyset pagination): https://openany.si/markets/apis/capabilities/polymarket-list-markets-keyset-pagination?offering=15686d0b-61bc-4e21-afc4-6cdb7d02f867 · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/15686d0b-61bc-4e21-afc4-6cdb7d02f867
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4
Price: $0 / call
Provider: Polymarket
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```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'
```
## API contract
```json
{
"resource_type": "api",
"name": "Polymarket — List markets (keyset pagination)",
"endpoint": "https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/list-markets-keyset-pagination-321a46b4",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Maximum number of results to return (max 100)",
"location": "query",
"maximum": "100",
"minimum": "1",
"name": "limit",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num",
"location": "query",
"name": "order",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Sort direction. Only used when order is set.",
"location": "query",
"name": "ascending",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "Opaque cursor token from a previous response's next_cursor",
"location": "query",
"name": "after_cursor",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "Not allowed. Returns 422 if provided.",
"location": "query",
"name": "offset",
"nullable": false,
"required": false,
"type": "integer"
},
{
"description": "id",
"item_type": "integer",
"location": "query",
"name": "id",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "slug",
"item_type": "string",
"location": "query",
"name": "slug",
"nullable": false,
"required": false,
"type": "array"
},
{
"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.",
"location": "query",
"name": "closed",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "decimalized",
"location": "query",
"name": "decimalized",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "clob_token_ids",
"item_type": "string",
"location": "query",
"name": "clob_token_ids",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "condition_ids",
"item_type": "string",
"location": "query",
"name": "condition_ids",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "question_ids",
"item_type": "string",
"location": "query",
"name": "question_ids",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "liquidity_num_min",
"location": "query",
"name": "liquidity_num_min",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "liquidity_num_max",
"location": "query",
"name": "liquidity_num_max",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "volume_num_min",
"location": "query",
"name": "volume_num_min",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "volume_num_max",
"location": "query",
"name": "volume_num_max",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "start_date_min",
"format": "date-time",
"location": "query",
"name": "start_date_min",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "start_date_max",
"format": "date-time",
"location": "query",
"name": "start_date_max",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "end_date_min",
"format": "date-time",
"location": "query",
"name": "end_date_min",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "end_date_max",
"format": "date-time",
"location": "query",
"name": "end_date_max",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "tag_id",
"item_type": "integer",
"location": "query",
"name": "tag_id",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "related_tags",
"location": "query",
"name": "related_tags",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "tag_match",
"location": "query",
"name": "tag_match",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "cyom",
"location": "query",
"name": "cyom",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "rfq_enabled",
"location": "query",
"name": "rfq_enabled",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "uma_resolution_status",
"location": "query",
"name": "uma_resolution_status",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "game_id",
"location": "query",
"name": "game_id",
"nullable": false,
"required": false,
"type": "string"
},
{
"description": "sports_market_types",
"item_type": "string",
"location": "query",
"name": "sports_market_types",
"nullable": false,
"required": false,
"type": "array"
},
{
"description": "When true, includes Tags relation on each market",
"location": "query",
"name": "include_tag",
"nullable": false,
"required": false,
"type": "boolean"
},
{
"description": "locale",
"location": "query",
"name": "locale",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Documentation example (source abbreviated)",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"closed": false,
"limit": 2
}
},
"response_body": {
"$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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Documentation example (source abbreviated)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 30
Review these request fields before running. Keep the published provider and request method unchanged.
limit- Maximum number of results to return (max 100)
order- Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num
ascending- Sort direction. Only used when order is set.
after_cursor- Opaque cursor token from a previous response's next_cursor
offset- Not allowed. Returns 422 if provided.
id- id
slug- slug
closed- 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- decimalized
clob_token_ids- clob_token_ids
condition_ids- condition_ids
question_ids- question_ids
liquidity_num_min- liquidity_num_min
liquidity_num_max- liquidity_num_max
volume_num_min- volume_num_min
volume_num_max- volume_num_max
start_date_min- start_date_min
start_date_max- start_date_max
end_date_min- end_date_min
end_date_max- end_date_max
tag_id- tag_id
related_tags- related_tags
tag_match- tag_match
cyom- cyom
rfq_enabled- rfq_enabled
uma_resolution_status- uma_resolution_status
game_id- game_id
sports_market_types- sports_market_types
include_tag- When true, includes Tags relation on each market
locale- locale
Terminal · cURLcurl \ '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'Check the response
Sample response · Documented HTTP 200
Sample response{ "$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" }