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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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 anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
after_cursorstringOpaque cursor token from a previous response's next_cursor
ascendingbooleanSort direction. Only used when order is set.
Varsayılan: 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
Olası değerler: 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)
Varsayılan: 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
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Polymarket | $0.00044 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/polymarket/markets-keyset adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.00044. Her kuruluş, UTC günü başına 100 ücretsiz çağrı alır; bu hak, bu API dahil uygun SandBase API'leri arasında ortaktır. Sonrasında her çağrı, SandBase bakiyenizden bu fiyat üzerinden ücretlendirilir. Abonelik yoktur.
Gerekli parametre yoktur. İsteğe bağlı: after_cursor (string), ascending (boolean), clob_token_ids (array), closed (any arasından biri), condition_ids (array) ve cyom (boolean) ve 24 tane daha. Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Polymarket List markets (keyset pagination), SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Polymarket API erişimi için ayrıca başvuru yapmanız gerekmez.