Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Polymarket List events

Documentazione API
https://api.sandbase.ai/v1/api/polymarket/events

List events with offset based pagination and filter parameters.

Prezzo
$0.00044USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
0 obbligatori · 26 opzionali
100 chiamate gratuite / giornoPrime 100 chiamate al giorno gratuite (condivise per organizzazione) · Si azzera alle 00:00 UTC. Dopo, pagamento per chiamata.

Playground

Input
active
archived
ascending
Filter 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.
cyom
end_date_max
end_date_min
exclude_tag_id
id
include_chat
include_template
limit Minimo: 0.
liquidity_max
liquidity_min
offset Minimo: 0.
Comma-separated list of fields to order by
recurrence
slug
start_date_max
start_date_min
tag_id
tag_slug
volume_max
volume_min
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Polymarket List events API

Returns a list of Polymarket events, each with its nested markets, series and tags. All inputs are optional filters, such as active, closed, tag_slug, slug, volume_min and end_date_max, plus limit and offset for paging.

Use cases

  • Pull all open events under one tag, such as sports, and sort them by volume or liquidity.
  • Find events by slug or id and read the markets inside each one.
  • Track events that belong to a recurring series such as the NBA.
  • Build a list of closed events in a date range for backtesting.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/events" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit": 1, "active": true}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
activebooleanNoactive
archivedbooleanNoarchived
ascendingbooleanNoascending
closedbooleanNoFilter 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. In
cyombooleanNocyom
end_date_maxstringNoend_date_max
end_date_minstringNoend_date_min
exclude_tag_idarrayNoexclude_tag_id
featuredbooleanNofeatured
idarrayNoid
include_chatbooleanNoinclude_chat
include_templatebooleanNoinclude_template
limitintegerNolimit
liquidity_maxnumberNoliquidity_max
liquidity_minnumberNoliquidity_min
offsetintegerNooffset
orderstringNoComma-separated list of fields to order by
recurrencestringNorecurrence
related_tagsbooleanNorelated_tags
slugarrayNoslug
start_date_maxstringNostart_date_max
start_date_minstringNostart_date_min
tag_idintegerNotag_id
tag_slugstringNotag_slug
volume_maxnumberNovolume_max
volume_minnumberNovolume_min

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

[
  {
    "active": true,
    "archived": false,
    "category": "Sports",
    "closed": true,
    "closedTime": "2022-07-27T14:40:02.074Z",
    "commentCount": 8128,
    "competitive": 0,
    "createdAt": "2022-07-27T14:40:02.074Z",
    "creationDate": "2021-12-04T00:00:00Z",
    "cyom": false,
    "deploying": false,
    "description": "In the upcoming NBA game, scheduled for December 4:\n\nIf the Dallas Mavericks win…"
  }
]

Response fields

FieldMeaning
id / slug / tickerIdentifiers for the event. id is a string, and slug is the text used in the event URL.
title / description / categoryThe event name, its resolution rules in text, and a category label such as Sports.
active / closed / archivedState flags for the event. In the sample, active and closed are both true, so do not assume active means open.
startDate / endDate / closedTimeEvent start and end times, and the time the event closed, as ISO 8601 timestamps.
commentCountNumber of comments on the event.
liquidity / openInterestNumeric liquidity and open interest values for the event.
resolutionSourceURL of the source named for resolving the event.
markets[]The markets inside the event. Each one has its own id, conditionId, endDate, bestBid, bestAsk, lastTradePrice and closed state.
markets[].clobTokenIdsA JSON string holding the token IDs for the market outcomes.
series[].slug / series[].title / series[].recurrenceThe series the event belongs to, its name, and how often it recurs, such as daily.
tags[].id / tags[].label / tags[].slugTags on the event. Use id with tag_id and slug with tag_slug to filter.

Notes

Pricing

$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Polymarket$0.00044 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON

Domande

FAQ

Come uso l'API Polymarket List events?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/polymarket/events con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Polymarket List events?

$0.00044 per chiamata. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.

Quali parametri accetta l'API Polymarket List events?

Nessun parametro richiesto. Facoltativi: active (boolean), archived (boolean), ascending (boolean), closed (uno tra any), cyom (boolean) e end_date_max (string) e altri 20. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Polymarket List events?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Polymarket?

No. Polymarket List events funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Polymarket.