Odds & Markets API
Events and status
List and filter events, read event status, and load event detail, participants, heats and the league-specific event routes.
Every market hangs off an event, so most integrations start by listing events for a window, then loading detail and odds for the ones they carry.
List events
GET /api/v1/public/events| Parameter | Type | Meaning |
|---|---|---|
startDate | date | Earliest start. The spec example is 2024-04-18T15:25:24Z. |
endDate | date | Latest end. The spec example is 2024-04-20T15:25:24Z. |
competition | enum | Competition key, for example f1, wsl or nhra. Use the competitionKey values from GET /sports. |
eventStatus | array of enum | One or more statuses to include. See below for how to send it. |
sortOrder | ASC or DESC | Sort order of the results. |
sportType | enum | Deprecated. Takes the same values as competition. Use competition instead. |
The competition filter accepts: wsl, sls, spr, masl, pbr, bkfc, f1, motocrs, fdrift, jaialai, gsoc, motoamerica, byb, powerslap, usac, nhra, sprmtcrs, hlrs, xgame, worldoutlaws, dgpt, athletesunlimited, lux, raf, nll, mltt, spectation, ifl, 3ice, swimming. Your key only returns the competitions booked for your account.
Sending eventStatus
eventStatus is an array parameter. Send it in the array form eventStatus[]=VALUE, once per status, even when you want only one status. A plain scalar eventStatus=UPCOMING has been observed to return 400.
curl -s -G "https://api.altsportsdata.com/api/v1/public/events" \
--data-urlencode "competition=wsl" \
--data-urlencode "eventStatus[]=LIVE" \
--data-urlencode "eventStatus[]=UPCOMING" \
--data-urlencode "sortOrder=ASC" \
-H "X-API-Key: $ALTSPORTSDATA_API_KEY"import os
import httpx
resp = httpx.get(
"https://api.altsportsdata.com/api/v1/public/events",
headers={"X-API-Key": os.environ["ALTSPORTSDATA_API_KEY"]},
# Sent as eventStatus[]=LIVE&eventStatus[]=UPCOMING
params={"competition": "wsl", "eventStatus[]": ["LIVE", "UPCOMING"], "sortOrder": "ASC"},
)
resp.raise_for_status()
body = resp.json()
events = body["data"] if isinstance(body, dict) and "data" in body else body
for event in events:
print(event["id"], event["name"], event["eventStatus"], event["startDate"])const url = new URL("https://api.altsportsdata.com/api/v1/public/events");
url.searchParams.set("competition", "wsl");
for (const s of ["LIVE", "UPCOMING"]) url.searchParams.append("eventStatus[]", s);
url.searchParams.set("sortOrder", "ASC");
const resp = await fetch(url, { headers: { "X-API-Key": process.env.ALTSPORTSDATA_API_KEY! } });
if (!resp.ok) throw new Error(`HTTP ${resp.status}`);
const body = await resp.json();
const events = body.data ?? body;Use the array form
The OpenAPI spec declares eventStatus as an array but does not say how to serialize it. Use the bracket form shown above, built with a list value in Python or searchParams.append in TypeScript. In a check through the Sport Data API's odds pass-through on 2026-10-08, a single plain eventStatus=UPCOMING returned 400, and repeating the plain key (eventStatus=UPCOMING&eventStatus=LIVE) was accepted but did not filter: completed events came back too. A client that joins several values into one comma-separated string will not filter correctly either. Check eventStatus on the returned events as well.
Each listed event
An EventListingResponse item has id, numericEventId, name, tourName, startDate, endDate, year, eventNumber, eventStatus, eventLocation, eventLocationNumericId, eventLocationGroup, sportLogo, providerId and updatedAt, plus the sport and competition keys (sportKey, sportName, competitionKey, competitionName and their numeric IDs).
idis usually a UUID prefixed with the sport key, such asnrx:2127ea10-6110-4ffd-9403-3e33fc0929de.- For jai alai,
ididentifies a match day, not a single match. Pass it to the jai alai detail route to get every match that day. yearis the year the season started, so a season that runs into the next calendar year keeps its first year.eventLocationGroupapplies to World Surf League only.isTeamEventandeventTypeappear on PBR only. Branch onisTeamEvent;eventTypeis display text.
Event status
eventStatus on an event takes one of these values.
| Value | Meaning |
|---|---|
UPCOMING | Scheduled and not yet started. |
LIVE | In progress. |
COMPLETED | Finished. |
CANCELLED | Called off. |
POSTPONED | Moved to a later date. |
NEXT | Accepted by the filter. The spec does not describe it further. |
IN_WINDOW | Accepted by the filter. The spec does not describe it further. |
Event status and market status are separate. A LIVE event can have markets that are OPEN, SUSPENDED or CLOSED. Read the status on each market row before you accept a bet; see Markets and money lines.
Rounds and heats have their own roundStatus and heatStatus strings (for example LIVE or UPCOMING).
Event detail
GET /api/v1/public/events/{eventId}EventResponse adds the structure of the contest to the listing fields:
| Field | Meaning |
|---|---|
tourId, numericTournamentId | The tour the event belongs to. You need tourId for futures. |
rounds | Contest segments at the top level. Each round has id, roundName, roundNo, roundStatus, startDate, endDate, heats, scores and athleteLapTotals. |
teams | Teams in the event, where the sport has them. |
seasonType | For example Regular Season or Post Season. |
circuitName, trackLength, scheduledLaps | F1 only. trackLength is in metres. scheduledLaps of 0 means the lap count is not published yet. |
winnerTeamId, winnerTeamName | PBR team games only, once the game completes. |
Each heat in a round has id, heatName, heatNo, heatStatus, startDate and endDate.
Participants
GET /api/v1/public/events/{eventId}/participantsReturns an array, one entry per athlete, each with an athlete object (id, firstName, lastName, nationality, gender, stance, hometown, height, weight, weightClass, dob, team and others). For PBR, isTeamEvent tells you whether athlete.team is the team the rider rode for. Returns 400 when participants are not available for the event.
Heat scores
GET /api/v1/public/events/{eventId}/heats/{heatId}Returns an array of RoundScoreResponse, one per athlete in the heat, with heatStatus, athleteRoundSeed and athleteRoundRank. Take heatId from the event detail. For combat sports, athleteRoundRank stays null until the fight completes; then 1 is the winner and 2 the other fighter.
League-specific event routes
Some team sports have their own detail routes with home and away teams, scores and periods. Use the event ID from GET /events.
| Route | League | Returns |
|---|---|---|
GET /events/gsoc/{eventId} | Grand Slam of Curling | homeTeam, awayTeam, total scores, winner, teams, ends, matchNumber, matchRoundName |
GET /events/mltt/{eventId} | Major League Table Tennis | homeTeam, awayTeam, total scores, winner, teams, games |
GET /events/nll/{eventId} | National Lacrosse League | homeTeam, awayTeam, total scores, winner, teams, periods |
GET /events/3ice/{eventId} | 3ICE | homeTeam, awayTeam, total scores, winner, teams, periods, tourYearId |
GET /events/3ice/bracket/{tourYearId} | 3ICE | The season bracket. Take tourYearId from the 3ICE event detail. |
GET /events/jaialai/{id} | Jai alai | An array of matches for the match day, with sets, scores, currentSet and streamUrl |
Odds for GSOC, MLTT, NLL and jai alai live at /events/{league}/{id}/odds. Those routes accept the prefixed public ID or the bare UUID, and return 400 if the ID belongs to a different sport than the route. For jai alai odds, pass a match id from GET /events/jaialai/{id}, not the match-day ID from the listing.
Jai alai IDs
Pass the jai alai ID exactly as GET /events returns it. The spec gives two different date layouts for it (jaialai:01-21-2025_… in the listing description and jaialai:2026-03-31_… in the route example), so do not build these IDs yourself.