ASD Platform
Odds & Markets API

Odds & Markets API

Futures and parlays

Season and tour futures by futureType, and same-game parlay (SGP) pricing from a set of selections.

Futures price outcomes over a whole tour or season, such as the championship winner. Same-game parlays (SGP) price several selections from one event as a single bet, with the correlation between them taken into account.

List futures

GET /api/v1/public/futures

The endpoint takes no query parameters and returns every future market your key can see. Each FutureListingResponse item has:

FieldMeaning
idFuture ID, prefixed with the sport key (for example wsl:2127ea10-…).
referenceIdNumeric ID for the sport and future combination.
typeThe future type, for example top5. One of the futureType values below.
tourId, numericTournamentId, tourNameThe tour the future covers. You need tourId to fetch the odds.
tourYearIdThe tour year (season) the future belongs to.
yearThe year the season started.
genderFor example male.
startDate, endDateThe window the future covers.
isMarketOpentrue while the market is open for betting.
isTeamFuturetrue when the options are teams instead of athletes.
createdAt, updatedAtTimestamps.

Filter on isMarketOpen before you show a future to bettors.

Futures odds

GET /api/v1/public/futures/{sportType}/tour/{tourId}/odds/{futureType}
Path parameterValues
sportTypeThe competition key, for example wsl or f1. Same list as the competition filter on /events.
tourIdtourId from the futures listing or from event detail.
futureTypewinner, top2, top3, top5, top10, makeCut, makePlayOdds

Check a competition's supportedFutureMarkets on GET /sports before you request a futureType. An unknown combination returns 404.

curl -s "https://api.altsportsdata.com/api/v1/public/futures/wsl/tour/$TOUR_ID/odds/winner" \
  -H "X-API-Key: $ALTSPORTSDATA_API_KEY"
import os
import httpx

BASE = "https://api.altsportsdata.com/api/v1/public"
HEADERS = {"X-API-Key": os.environ["ALTSPORTSDATA_API_KEY"]}

def unwrap(resp: httpx.Response) -> list[dict]:
    resp.raise_for_status()
    body = resp.json()
    return body["data"] if isinstance(body, dict) and "data" in body else body

futures = unwrap(httpx.get(f"{BASE}/futures", headers=HEADERS))
open_winners = [f for f in futures if f["isMarketOpen"] and f["type"] == "winner"]

for future in open_winners:
    sport = future["competitionKey"]
    markets = unwrap(httpx.get(
        f"{BASE}/futures/{sport}/tour/{future['tourId']}/odds/winner", headers=HEADERS
    ))
    for market in markets:
        for odd in market["odds"]:
            who = odd["athlete"] or odd["team"]
            print(market["name"], who, odd["odds"], odd["marketStatus"])
const BASE = "https://api.altsportsdata.com/api/v1/public";
const headers = { "X-API-Key": process.env.ALTSPORTSDATA_API_KEY! };

async function get<T>(path: string): Promise<T> {
  const resp = await fetch(`${BASE}${path}`, { headers });
  if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
  const body = await resp.json();
  return (body.data ?? body) as T;
}

const futures = await get<any[]>("/futures");
const open = futures.filter((f) => f.isMarketOpen && f.type === "winner");
for (const f of open) {
  const markets = await get<any[]>(`/futures/${f.competitionKey}/tour/${f.tourId}/odds/winner`);
  for (const m of markets) for (const o of m.odds) console.log(m.name, o.athlete ?? o.team, o.odds);
}

The response is an array of FutureOddsResponse, each with publicId, id (the tour), referenceId, name (the tour name), sportType, futureType, updatedAt and an odds array. Each item in odds (Odd) has:

FieldMeaning
outcomeId, id, referenceIdIdentifiers for the option.
oddsDecimal odds.
probabilityProbability used for the price. The spec example (30.2) suggests a percentage scale; check the range before you use it.
trueProbabilityThe unadjusted probability. The spec gives no description beyond the name.
hasModifiedProbabilityFlag that the probability differs from trueProbability. The spec gives no description beyond the name.
marketStatusOPEN, SUSPENDED, CLOSED, COMPLETED or VOID.
athleteThe athlete for this option, or null when the option is a team.
teamThe team for this option, or null when the option is an athlete.

Exactly one of athlete and team is set on each option. Branch on which one is non-null, or on isTeamFuture from the listing.

Futures on team-sport routes

The GSOC and jai alai odds routes also return a futures group alongside match markets. Those use the team money line shape, with a type such as futures:winner or futures:top3. See Markets and money lines.

Same-game parlays

POST /api/v1/public/events/{eventId}/sgp

Send the selections you want to combine. The API returns the combined price.

Request body (SgpRequestDto)

FieldRequiredMeaning
selectionsYesArray of ALT Sports Data selection UUIDs (mapping IDs) to combine.
fixtureIdNoFixture ID for the parlay.

Response (201, SgpResponseDto)

FieldMeaning
probabilityTrue combined probability of every selection winning.
viggedProbabilityCombined probability including margin.
decimalOddsDecimal odds with margin. Equal to 1 / viggedProbability, rounded.
sportKey, sportName, competitionKey, competitionName, numericSportId, numericCompetitionIdThe sport and competition of the event.
curl -s -X POST "https://api.altsportsdata.com/api/v1/public/events/$EVENT_ID/sgp" \
  -H "X-API-Key: $ALTSPORTSDATA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"selections": ["selection-uuid-1", "selection-uuid-2"]}'
import os
import httpx

resp = httpx.post(
    f"https://api.altsportsdata.com/api/v1/public/events/{os.environ['EVENT_ID']}/sgp",
    headers={"X-API-Key": os.environ["ALTSPORTSDATA_API_KEY"]},
    json={"selections": ["selection-uuid-1", "selection-uuid-2"]},
)
if resp.status_code == 422:
    print("These selections cannot be combined:", resp.json()["message"])
else:
    resp.raise_for_status()
    body = resp.json()
    sgp = body["data"] if isinstance(body, dict) and "data" in body else body
    print(sgp["decimalOdds"], sgp["viggedProbability"], sgp["probability"])
const resp = await fetch(
  `https://api.altsportsdata.com/api/v1/public/events/${process.env.EVENT_ID}/sgp`,
  {
    method: "POST",
    headers: {
      "X-API-Key": process.env.ALTSPORTSDATA_API_KEY!,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ selections: ["selection-uuid-1", "selection-uuid-2"] }),
  },
);
if (resp.status === 422) throw new Error("Selections cannot be combined");
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const body = await resp.json();
const { decimalOdds, viggedProbability, probability } = body.data ?? body;

The spec example response is probability: 0.0334, viggedProbability: 0.0393 and decimalOdds: 25.44. The gap between the two probabilities is the margin on the parlay.

SGP errors

CodeMeaning
400Invalid sport type for SGP, or the request could not be processed.
404Event not found.
422One or more selections do not exist, or they are not valid together in a parlay.

Which ID goes in selections

The spec describes selections as selection UUIDs (mapping IDs) and the request body as "odd IDs". Market rows expose both an outcomeId and an id. Confirm with the ALT Sports Data account team which one your account should send before you go live.

On this page