Prediction markets API
Which sports leagues can I find prediction markets for?
The sports leagues a prediction venue lists markets under: league code, the venue's own league, series and tag ids, settlement source and logo.
/api/external/prediction/prediction-sports-leaguesWhat it returns
One row per sports league a prediction venue lists markets under: its short league code (ufl, nascar, cricipl), the venue, the venue's own league, series and tag ids for it, the source that settles its markets and its logo. Every row measured was on polymarket. The ids are the venue's own and no other endpoint of this API takes them as input; use league as search text on GET /prediction/prediction-search to find a league's markets. Rows come in the venue's own order, which is neither alphabetical nor by popularity. At most 200 leagues are listed. 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-sports-leagues"
| Parameter | Description |
|---|---|
limitquery · integer · optional | How many leagues to return, from the top of the list. Defaults to 200, the whole list, which is also the most. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
leagues | object[] | In the venue's own order. Never empty. |
leagues[].league | string | The league's short code on its venue, lowercase, e.g. ufl, lmp, nascar-xfinity, cricpakt20cup. |
leagues[].venue | string | The venue, lowercase, e.g. polymarket. Open set: new venues can appear. |
leagues[].leagueId | string | The venue's own numeric id for the league, as a string. |
leagues[].seriesIds | string[] | The venue's own numeric ids of the market series the league's games are listed in. Usually one; empty when the venue gives none. |
leagues[].tagIds | string[] | The venue's own numeric tag ids for the league, general ones (sports, games) included. |
leagues[].resolutionSource | string | null | Where the league's markets are settled from, usually the league's official site URL; null when the venue gives none. |
leagues[].image | string | null | The league's logo URL, or null when it has none. |
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