Polymarket — Get sampling markets
Retrieve sampling markets with the Polymarket API. The sample response includes descriptions. Request fields include next-page cursor (next_cursor). Use it for on-chain or crypto market research. 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 — Get sampling markets
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
countintegerdataobject[]accepting_order_timestampstringaccepting_ordersbooleanactivebooleanarchivedbooleanclosedbooleancondition_idstringdescriptionstringenable_order_bookbooleanminimum_order_sizeintegerminimum_tick_sizenumberquestionstringquestion_idstring
limitintegernext_cursorstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
count?: number;
data?: Array<{
accepting_order_timestamp?: string;
accepting_orders?: boolean;
active?: boolean;
archived?: boolean;
closed?: boolean;
condition_id?: string;
description?: string;
enable_order_book?: boolean;
minimum_order_size?: number;
minimum_tick_size?: number;
question?: string;
question_id?: string;
}>;
limit?: number;
next_cursor?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
PolymarketCurrent Polymarket — Get sampling markets · 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/sampling-markets- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/polymarket/sampling-markets' \
-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 |
|---|---|---|---|---|
next_cursor | URL query parametersquery | string | No | next_cursor |
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.
{
"count": 1000,
"data": [
{
"accepting_order_timestamp": "2025-07-03T20:36:33Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "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",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Xi Jinping out before 2027?",
"question_id": "0x1d925c6933062c2e38031293612d8680ffa097c5d3ba2f87a8ecc565bd47183e"
},
{
"accepting_order_timestamp": "2025-07-11T18:35:34Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "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.",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Will Gavin Newsom win the 2028 Democratic presidential nomination?",
"question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814700"
},
{
"accepting_order_timestamp": "2025-07-11T18:35:36Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "0xe6bcc2f1dd025ce5e1833190f7c60a71171c94f805df55b9ab0ded695ec93565",
"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.",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Will Alexandria Ocasio-Cortez win the 2028 Democratic presidential nomination?",
"question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814701"
}
],
"limit": 1000,
"next_cursor": "aWQ6MTMzNTEzOQ=="
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Polymarket — Get sampling markets
Retrieve sampling markets with the Polymarket API. The sample response includes descriptions. Request fields include next-page cursor (next_cursor). Use it for on-chain or crypto market research. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — Get sampling markets: https://openany.si/markets/apis/capabilities/polymarket-get-sampling-markets?offering=51a650cb-0fb9-493f-a2ca-70be3586af20 · $0 / call
## Selected API contract
Documentation: https://openany.si/apis/51a650cb-0fb9-493f-a2ca-70be3586af20
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/sampling-markets
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/sampling-markets' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Polymarket — Get sampling markets",
"endpoint": "https://api.openany.si/v1/agent-apis/polymarket/sampling-markets",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "next_cursor",
"location": "query",
"name": "next_cursor",
"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": {}
},
"response_body": {
"count": 1000,
"data": [
{
"accepting_order_timestamp": "2025-07-03T20:36:33Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "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",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Xi Jinping out before 2027?",
"question_id": "0x1d925c6933062c2e38031293612d8680ffa097c5d3ba2f87a8ecc565bd47183e"
},
{
"accepting_order_timestamp": "2025-07-11T18:35:34Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "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.",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Will Gavin Newsom win the 2028 Democratic presidential nomination?",
"question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814700"
},
{
"accepting_order_timestamp": "2025-07-11T18:35:36Z",
"accepting_orders": true,
"active": true,
"archived": false,
"closed": false,
"condition_id": "0xe6bcc2f1dd025ce5e1833190f7c60a71171c94f805df55b9ab0ded695ec93565",
"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.",
"enable_order_book": true,
"minimum_order_size": 5,
"minimum_tick_size": 0.001,
"question": "Will Alexandria Ocasio-Cortez win the 2028 Democratic presidential nomination?",
"question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814701"
}
],
"limit": 1000,
"next_cursor": "aWQ6MTMzNTEzOQ=="
}
}
]
}
```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 1
Review these request fields before running. Keep the published provider and request method unchanged.
next_cursor- next_cursor
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/polymarket/sampling-markets' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "count": 1000, "data": [ { "accepting_order_timestamp": "2025-07-03T20:36:33Z", "accepting_orders": true, "active": true, "archived": false, "closed": false, "condition_id": "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", "enable_order_book": true, "minimum_order_size": 5, "minimum_tick_size": 0.001, "question": "Xi Jinping out before 2027?", "question_id": "0x1d925c6933062c2e38031293612d8680ffa097c5d3ba2f87a8ecc565bd47183e" }, { "accepting_order_timestamp": "2025-07-11T18:35:34Z", "accepting_orders": true, "active": true, "archived": false, "closed": false, "condition_id": "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.", "enable_order_book": true, "minimum_order_size": 5, "minimum_tick_size": 0.001, "question": "Will Gavin Newsom win the 2028 Democratic presidential nomination?", "question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814700" }, { "accepting_order_timestamp": "2025-07-11T18:35:36Z", "accepting_orders": true, "active": true, "archived": false, "closed": false, "condition_id": "0xe6bcc2f1dd025ce5e1833190f7c60a71171c94f805df55b9ab0ded695ec93565", "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.", "enable_order_book": true, "minimum_order_size": 5, "minimum_tick_size": 0.001, "question": "Will Alexandria Ocasio-Cortez win the 2028 Democratic presidential nomination?", "question_id": "0x2c3d7e0eee6f058be3006baabf0d54a07da254ba47fe6e3e095e7990c7814701" } ], "limit": 1000, "next_cursor": "aWQ6MTMzNTEzOQ==" }