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.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
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 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
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의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
저장된 응답이 게시되지 않았습니다. 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 |
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/polymarket/markets-keyset에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.00044. 모든 조직은 UTC 기준 하루에 100회의 무료 호출을 받으며, 이 API를 포함한 사용 가능 SandBase API 전반에서 공유됩니다. 이후에는 각 호출이 SandBase 잔액에서 이 요금으로 청구됩니다. 구독은 없습니다.
필수 매개변수는 없습니다. 선택: after_cursor (string), ascending (boolean), clob_token_ids (array), closed(any 중 하나), condition_ids (array) 및 cyom (boolean) 외 24개. 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Polymarket List markets (keyset pagination)은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Polymarket API 액세스를 별도로 신청할 필요는 없습니다.