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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
after_cursorstringOpaque cursor token from a previous response's next_cursor
ascendingbooleanSort direction. Only used when order is set.
Standard: 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
Mögliche Werte: 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)
Standard: 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
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Polymarket | $0.00044 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Polymarket | $0.012 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/polymarket/markets-keyset mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.00044 pro Aufruf. Jede Organisation erhält 100 kostenlose Aufrufe pro UTC-Tag, gemeinsam über alle berechtigten SandBase APIs einschließlich dieser hier; danach wird jeder Aufruf zu diesem Preis von Ihrem SandBase-Guthaben abgerechnet. Es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: after_cursor (string), ascending (boolean), clob_token_ids (array), closed (eines von any), condition_ids (array) und cyom (boolean) und 24 weitere. Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Polymarket List markets (keyset pagination) läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Polymarket API beantragen.