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.
/api/external/prediction/prediction-market-by-slugWhat 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>"
| Parameter | Description |
|---|---|
slugquery · 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.
| Field | Type | Description |
|---|---|---|
slug | string | The slug asked for, trimmed. |
market | object | null | The market whose page has this slug; null when no market has it. |
market.exchange | string | The venue, lowercase, e.g. kalshi or polymarket. Open set: new venues can appear. |
market.id | string | The market's id in its venue's own id space: the ticker on kalshi, the condition id on polymarket. |
market.title | string | The market's question. |
market.label | string | null | The market's label inside its event, e.g. Green Bay. Null when it has none. |
market.slug | string | null | The market's URL slug on its venue, as the venue writes it. |
market.kind | string | null | The product shape, e.g. binary. Open set. |
market.eventId | string | null | The 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.outcomes | string[] | The outcome labels, e.g. Yes, No. No prices. |
market.createdAt | string | null | ISO-8601 UTC, when the market was listed. |
market.closesAt | string | null | ISO-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