Prediction markets API

Prediction-market events, ranked by volume, liquidity or trending score

A ranked page of prediction EVENTS -- the question being bet on, one level above the markets that price it. Use it to find an event id; it prices nothing.

GET/api/external/prediction/prediction-events

What it returns

A market-wide ranking across every prediction-market event this endpoint covers — no chain and no token/wallet subject in the request at all. This is a DIFFERENT universe from the rest of this API: an event id here is never a token mint or contract address, and nothing this endpoint returns can be looked up against this API's six chains. Use id on any row with GET /prediction/prediction-event for more detail on one event.

Chains

This endpoint is not tied to a chain: it takes no chain in its request.

Request

Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.

curl -H "x-dex-data-key: $DEXDATA_API_KEY" \
  "https://api.dexdata.io/api/external/prediction/prediction-events"
Parameters
ParameterDescription
phrase

query · string · optional

Free-text search over the event question, e.g. "Champions League".
status

query · string · optional

Filter to one event status.OPENSUSPENDEDRESOLVEDCANCELLEDPENDING
sort_by

query · string · optional

Which figure to sort by. Defaults to 24h volume.volumeUsd24hliquidityUsdtrendingScore24hcreatedAtmarketCount
sort_type

query · string · optional

Sort direction. Defaults to descending.ASCDESC
offset

query · integer · optional

0-based row offset, for paging through the ranking.
limit

query · integer · optional

How many rows to return. Defaults to 10; this endpoint caps it at 25.

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of Prediction-market events, ranked by volume, liquidity or trending score
FieldTypeDescription
eventsobject[]
events[].idstring | nullThe event id. Not a token mint or contract address.
events[].questionstring | nullThe event's headline question.
events[].protocolstring | nullThe venue this event trades on, e.g. "POLYMARKET" or "KALSHI".
events[].statusstring | nullOne of OPEN, SUSPENDED, RESOLVED, CANCELLED, PENDING.
events[].eventShapestring | nullA structural classification of the event, e.g. "SPORTS_MATCH" or "ELECTION".
events[].marketCountnumber | nullHow many markets make up this event.
events[].categoriesstring[] | nullCategory slugs this event is tagged under.
events[].tagsstring[] | nullFree-form venue tags.
events[].urlstring | nullThe venue's own page for this event.
events[].opensAtnumber | nullUnix seconds the event opened for trading.
events[].closesAtnumber | nullUnix seconds trading closes.
events[].resolvesAtnumber | nullExpected resolution time, Unix seconds.
events[].resolvedAtnumber | nullActual resolution time, Unix seconds — null while unresolved.
events[].liquidityUsdnumber | nullCurrent total liquidity across the event's markets, USD.
events[].volumeUsd24hnumber | nullTrading volume over the last 24h, USD.
events[].trades24hnumber | nullNumber of trades over the last 24h.
events[].uniqueTraders24hnumber | nullDistinct trading accounts over the last 24h — null on venues that do not report it (measured: Kalshi).
events[].trendingScore24hnumber | nullA trending score over the last 24h.

Start building with DexData today

Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.

Get a free API key