Prediction markets API

Prediction markets, ranked by volume, liquidity or open interest

A ranked page of prediction MARKETS -- the tradeable instrument on an event. Use it to find a market id; per-outcome prices come from the single-market read.

GET/api/external/prediction/prediction-markets

What it returns

A market-wide ranking across every prediction market 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: a market 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-market, GET /prediction/prediction-market-bars or GET /prediction/prediction-token-holders for more detail on one market.

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-markets"
Parameters
ParameterDescription
phrase

query · string · optional

Free-text search over the market question, e.g. "Fed rate".
status

query · string · optional

Filter to one market status.OPENSUSPENDEDRESOLVEDCANCELLEDPENDING
sort_by

query · string · optional

Which figure to sort by. Defaults to 24h volume.volumeUsd24hliquidityUsdtrendingScore24hopenInterestUsdcreatedAt
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 markets, ranked by volume, liquidity or open interest
FieldTypeDescription
marketsobject[]
markets[].idstring | nullThe market id. Not a token mint or contract address.
markets[].eventIdstring | nullThe event this market belongs to, or null for a standalone market.
markets[].eventLabelstring | nullThe parent event's own headline label.
markets[].protocolstring | nullThe venue this market trades on, e.g. "POLYMARKET" or "KALSHI".
markets[].statusstring | nullOne of OPEN, SUSPENDED, RESOLVED, CANCELLED, PENDING.
markets[].questionstring | nullThe market's own question.
markets[].labelstring | nullA short label for this market within its event, when it has a parent event.
markets[].networkIdnumber | nullThe on-chain settlement network id (e.g. 137 for Polygon/Polymarket) — null for a Kalshi market, which has none.
markets[].opensAtnumber | nullUnix seconds the market opened for trading.
markets[].closesAtnumber | nullUnix seconds trading closes.
markets[].categoriesstring[] | nullCategory slugs this market is tagged under.
markets[].outcome0object
markets[].outcome0.idstring | nullThe outcome id — pass to GET /prediction/prediction-outcome-order-book.
markets[].outcome0.labelstring | nullThe outcome's label, e.g. "Yes".
markets[].outcome0.lastPriceUsdnumber | nullThe outcome's last traded price, USD (0-1 for a binary market).
markets[].outcome0.liquidityUsdnumber | nullLiquidity currently backing this outcome, USD.
markets[].outcome1object
markets[].outcome1.idstring | nullThe outcome id — pass to GET /prediction/prediction-outcome-order-book.
markets[].outcome1.labelstring | nullThe outcome's label, e.g. "Yes".
markets[].outcome1.lastPriceUsdnumber | nullThe outcome's last traded price, USD (0-1 for a binary market).
markets[].outcome1.liquidityUsdnumber | nullLiquidity currently backing this outcome, USD.
markets[].liquidityUsdnumber | nullCurrent total liquidity across both outcomes, USD.
markets[].volumeUsd24hnumber | nullTrading volume over the last 24h, USD.
markets[].trades24hnumber | nullNumber of trades over the last 24h.
markets[].uniqueTraders24hnumber | nullDistinct trading accounts over the last 24h — null on venues that do not report it (measured: Kalshi).
markets[].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