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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
after_cursorstringOpaque cursor token from a previous response's next_cursor
ascendingbooleanSort direction. Only used when order is set.
Default: 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
Nilai yang mungkin: 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)
Default: 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
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Polymarket | $0.00044 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/polymarket/markets-keyset dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.00044 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: after_cursor (string), ascending (boolean), clob_token_ids (array), closed (salah satu dari any), condition_ids (array) dan cyom (boolean) dan 24 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Polymarket List markets (keyset pagination) berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Polymarket secara terpisah.