Prediction markets API

Which prediction market is on this venue page?

Resolve a prediction market page slug (or a ticker) to the market: its venue id, title, event, outcome labels and close date. Identity only, no prices or volume.

GET/api/external/prediction/prediction-market-by-slug

What it returns

The market a venue page slug names — the last path segment of the market's page, e.g. mlb-wsh-det-2026-09-23, or a kalshi ticker in any case — with its id in the venue's own id space, its title, event, outcome labels and dates. Identity only, not prices, volume or trading status: read closesAt to tell a live market from a finished one. The ids are the ones prediction-search returns. An unknown slug answers market: null. No chain and no subject.

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-market-by-slug?slug=<slug>"
Parameters
ParameterDescription
slug

query · string · required

The market's page slug: letters, digits, ., _ and -, at most 200 characters.

Response fields

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

Response fields of Which prediction market is on this venue page?
FieldTypeDescription
slugstringThe slug asked for, trimmed.
marketobject | nullThe market whose page has this slug; null when no market has it.
market.exchangestringThe venue, lowercase, e.g. kalshi or polymarket. Open set: new venues can appear.
market.idstringThe market's id in its venue's own id space: the ticker on kalshi, the condition id on polymarket.
market.titlestringThe market's question.
market.labelstring | nullThe market's label inside its event, e.g. Green Bay. Null when it has none.
market.slugstring | nullThe market's URL slug on its venue, as the venue writes it.
market.kindstring | nullThe product shape, e.g. binary. Open set.
market.eventIdstring | nullThe event this market belongs to, in the venue's own id space (the id of an event row of prediction-search). Null for a standalone market.
market.outcomesstring[]The outcome labels, e.g. Yes, No. No prices.
market.createdAtstring | nullISO-8601 UTC, when the market was listed.
market.closesAtstring | nullISO-8601 UTC, when trading closes or closed. A date in the past means the market is no longer trading.

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