API reference · Polymarket

polymarket/events-keyset

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

APISynchronousOpen model
Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/api/polymarket/events-keyset
Model IDpolymarket/events-keyset
01

Input Schema

41 parameters · 0 required · 41 optional

ParameterTypeRequiredDescription
idinteger[]Optionalid
cyombooleanOptionalcyom
livebooleanOptionallive
slugstring[]Optionalslug
limitintegerOptionalMaximum number of results to return (max 100) · Min: 1 · Max: 100 · Default: 20
orderstringOptionalComma-separated list of JSON field names to order by
closedbooleanOptionalFilter by closed state. Omitted includes open and closed events. Use true for closed events, false for open events, or any (case-insensitive) for both states. Unlike markets, any does not require an identifier filter. Invalid closed values return 422. · Options: any
any
localestringOptionallocale
offsetintegerOptionalNot allowed. Returns 422 if provided.
tag_idinteger[]Optionaltag_id
game_idinteger[]Optionalgame_id
featuredbooleanOptionalfeatured
tag_slugstringOptionaltag_slug
ascendingbooleanOptionalSort direction. Only used when order is set. · Default: true
series_idinteger[]Optionalseries_id
tag_matchstringOptionaltag_match
created_bystring[]Optionalcreated_by
event_datestringOptionalevent_date
event_weekintegerOptionalevent_week
recurrencestringOptionalrecurrence
volume_maxnumberOptionalvolume_max
volume_minnumberOptionalvolume_min
after_cursorstringOptionalOpaque cursor token from a previous response's next_cursor
end_date_maxstringOptionalend_date_max
end_date_minstringOptionalend_date_min
include_chatbooleanOptionalWhen true, includes Chats and Series.Chats relations
partner_slugstringOptionalWhen set, external_partners are attached to matching events
related_tagsbooleanOptionalrelated_tags
title_searchstringOptionaltitle_search
liquidity_maxnumberOptionalliquidity_max
liquidity_minnumberOptionalliquidity_min
exclude_tag_idinteger[]OptionalTag IDs to exclude. Cannot overlap with tag_id.
featured_orderbooleanOptionalfeatured_order
start_date_maxstringOptionalstart_date_max
start_date_minstringOptionalstart_date_min
start_time_maxstringOptionalstart_time_max
start_time_minstringOptionalstart_time_min
parent_event_idintegerOptionalparent_event_id
include_childrenbooleanOptionalinclude_children
include_templatebooleanOptionalWhen true, includes Templates relation
include_best_linesbooleanOptionalWhen true, includes BestLines relation
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description
03

Code Examples

Ready-to-run snippets

const apiKey = process.env.SANDBASE_API_KEY;
const response = await fetch("https://api.sandbase.ai/v1/api/polymarket/events-keyset", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "limit": 20,
    "ascending": true
  }),
});

if (!response.ok) throw new Error(await response.text());
console.log(await response.json());