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/futuresThe endpoint takes no query parameters and returns every future market your key can see. Each FutureListingResponse item has:
| Field | Meaning |
|---|---|
id | Future ID, prefixed with the sport key (for example wsl:2127ea10-…). |
referenceId | Numeric ID for the sport and future combination. |
type | The future type, for example top5. One of the futureType values below. |
tourId, numericTournamentId, tourName | The tour the future covers. You need tourId to fetch the odds. |
tourYearId | The tour year (season) the future belongs to. |
year | The year the season started. |
gender | For example male. |
startDate, endDate | The window the future covers. |
isMarketOpen | true while the market is open for betting. |
isTeamFuture | true when the options are teams instead of athletes. |
createdAt, updatedAt | Timestamps. |
Filter on isMarketOpen before you show a future to bettors.
Futures odds
GET /api/v1/public/futures/{sportType}/tour/{tourId}/odds/{futureType}| Path parameter | Values |
|---|---|
sportType | The competition key, for example wsl or f1. Same list as the competition filter on /events. |
tourId | tourId from the futures listing or from event detail. |
futureType | winner, 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:
| Field | Meaning |
|---|---|
outcomeId, id, referenceId | Identifiers for the option. |
odds | Decimal odds. |
probability | Probability used for the price. The spec example (30.2) suggests a percentage scale; check the range before you use it. |
trueProbability | The unadjusted probability. The spec gives no description beyond the name. |
hasModifiedProbability | Flag that the probability differs from trueProbability. The spec gives no description beyond the name. |
marketStatus | OPEN, SUSPENDED, CLOSED, COMPLETED or VOID. |
athlete | The athlete for this option, or null when the option is a team. |
team | The 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}/sgpSend the selections you want to combine. The API returns the combined price.
Request body (SgpRequestDto)
| Field | Required | Meaning |
|---|---|---|
selections | Yes | Array of ALT Sports Data selection UUIDs (mapping IDs) to combine. |
fixtureId | No | Fixture ID for the parlay. |
Response (201, SgpResponseDto)
| Field | Meaning |
|---|---|
probability | True combined probability of every selection winning. |
viggedProbability | Combined probability including margin. |
decimalOdds | Decimal odds with margin. Equal to 1 / viggedProbability, rounded. |
sportKey, sportName, competitionKey, competitionName, numericSportId, numericCompetitionId | The 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
| Code | Meaning |
|---|---|
400 | Invalid sport type for SGP, or the request could not be processed. |
404 | Event not found. |
422 | One 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.