after_cursorstring
Opaque cursor token from a previous response's next_cursor
https://api.sandbase.ai/v1/api/polymarket/markets-keysetList markets (keyset pagination) from Polymarket. Returns the official Polymarket API response unchanged.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of Polymarket prediction markets, each with its prices, liquidity, order book settings, fee schedule and linked events. All inputs are optional. You can filter by ids, slugs, token ids, dates, volume, liquidity or tags, and page through results with a cursor.
volume_num or liquidity_num using the order parameter.bestBid, bestAsk and lastTradePrice for a set of markets to track implied odds.condition_ids, clob_token_ids or slug to get their metadata and id values.next_cursor page after page.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/markets-keyset" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": 2}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
after_cursor | string | No | Opaque cursor token from a previous response's next_cursor |
ascending | boolean | No | Sort direction. Only used when order is set. |
clob_token_ids | array | No | clob_token_ids |
closed | 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, po |
condition_ids | array | No | condition_ids |
cyom | boolean | No | cyom |
decimalized | boolean | No | decimalized |
end_date_max | string | No | end_date_max |
end_date_min | string | No | end_date_min |
game_id | string | No | game_id |
id | array | No | id |
include_tag | boolean | No | When true, includes Tags relation on each market |
limit | integer | No | Maximum number of results to return (max 100) |
liquidity_num_max | number | No | liquidity_num_max |
liquidity_num_min | number | No | liquidity_num_min |
locale | string | No | locale |
offset | integer | No | Not allowed. Returns 422 if provided. |
order | string | No | Comma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num |
question_ids | array | No | question_ids |
related_tags | boolean | No | related_tags |
rfq_enabled | boolean | No | rfq_enabled |
slug | array | No | slug |
sports_market_types | array | No | sports_market_types |
start_date_max | string | No | start_date_max |
start_date_min | string | No | start_date_min |
tag_id | array | No | tag_id |
tag_match | string | No | tag_match |
uma_resolution_status | string | No | uma_resolution_status |
volume_num_max | number | No | volume_num_max |
volume_num_min | number | No | volume_num_min |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"$schema": "https://gamma-api.polymarket.com/schemas/MarketsKeysetListResponse.json",
"markets": [
{
"acceptingOrders": true,
"acceptingOrdersTimestamp": "2025-07-03T20:36:33Z",
"active": true,
"approved": true,
"archived": false,
"automaticallyActive": true,
"bestAsk": 0.021,
"bestBid": 0.02,
"clearBookOnStart": true,
"clobRewards": [
{
"assetAddress": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
"endDate": "2500-12-31",
"id": "303430",
"rewardsAmount": 0,
"rewardsDailyRate": 5,
"startDate": "2026-09-16"
}
],
"clobTokenIds": "[\"323382…",
"closed": false
}
],
"next_cursor": "bjZlbp--Id8uILt2O_myoOvX-CNl-MzVGdWQ_udL8nt7InYiOjEsImsiOiJtYXJrZXRzIiwib2giOiI0…"
}
| Field | Meaning |
|---|---|
markets[] | List of market objects for this page. The limit parameter sets how many come back. |
markets[].id | Market id as a string. Use it with the market lookup APIs. |
markets[].conditionId | Hex condition id of the market. It also appears inside clobRewards[]. |
markets[].clobTokenIds | JSON-encoded string that holds the token ids for the market outcomes. Parse it to get the list. |
markets[].bestBid / markets[].bestAsk / markets[].lastTradePrice | Current top bid, top ask and last trade price. Values such as 0.15 look like prices between 0 and 1. |
markets[].liquidity | Liquidity of the market, returned as a string number. |
markets[].active / markets[].closed / markets[].archived / markets[].acceptingOrders | Flags for the market state. closed is false for open markets. |
markets[].endDate / markets[].endDateIso | Scheduled end of the market as a full UTC timestamp and as a plain date. |
markets[].feeSchedule | Fee settings with rate, rebateRate, exponent and takerOnly. |
markets[].clobRewards[] | Reward programs on the market, with rewardsDailyRate, startDate and endDate. |
markets[].events[] | Events the market belongs to, with commentCount and competitive. |
next_cursor | Opaque token for the next page. Send it as after_cursor. |
next_cursor into after_cursor and keep the other filters the same.offset. It returns a 422 error. Use the cursor instead.closed to true or any together with an identifier such as id, slug or condition_ids.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/markets-keyset" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 2,
"ascending": true
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
after_cursorstringOpaque cursor token from a previous response's next_cursor
ascendingbooleanSort direction. Only used when order is set.
डिफ़ॉल्ट: true
clob_token_idsarrayclob_token_ids
closedbooleanFilter 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
condition_idsarraycondition_ids
cyombooleancyom
decimalizedbooleandecimalized
end_date_maxstringend_date_max
end_date_minstringend_date_min
game_idstringgame_id
idarrayid
include_tagbooleanWhen true, includes Tags relation on each market
limitintegerMaximum number of results to return (max 100)
डिफ़ॉल्ट: 20
liquidity_num_maxnumberliquidity_num_max
liquidity_num_minnumberliquidity_num_min
localestringlocale
offsetintegerNot allowed. Returns 422 if provided.
orderstringComma-separated list of JSON field names to order by, e.g. volume_num,liquidity_num
question_idsarrayquestion_ids
related_tagsbooleanrelated_tags
rfq_enabledbooleanrfq_enabled
slugarrayslug
sports_market_typesarraysports_market_types
start_date_maxstringstart_date_max
start_date_minstringstart_date_min
tag_idarraytag_id
tag_matchstringtag_match
uma_resolution_statusstringuma_resolution_status
volume_num_maxnumbervolume_num_max
volume_num_minnumbervolume_num_min
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Polymarket | $0.00044 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
Polymarket | $0.012 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/polymarket/markets-keyset पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.00044 प्रति call। हर organization को प्रति UTC day 100 निःशुल्क calls मिलती हैं, जो इस सहित योग्य SandBase APIs के बीच साझा होती हैं; उसके बाद हर call का बिल आपकी SandBase balance से इस कीमत पर लिया जाता है। कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: after_cursor (string), ascending (boolean), clob_token_ids (array), closed (any में से एक), condition_ids (array) और cyom (boolean) और 24 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Polymarket List markets (keyset pagination) SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Polymarket API access के लिए आवेदन करने की आवश्यकता नहीं है।