Sport Data API
Status, finality and corrections
What the status field on spine rows means, how to tell when a result is final, how corrections reach you, and what is planned but not built.
The Sport Data API serves historical results. A row you read today can be overwritten tomorrow when a source corrects it, and the API does not yet mark which rows are final or which ones changed. This page tells you how to read status, how to notice a change, and what to do when it happens.
The status field
events, competitions, results and event-results rows each carry a status string. The API does not constrain it to a closed list: it passes through whatever the warehouse holds for that row. In a check on 2026-10-08, every smx row returned completed, which fits a warehouse of historical data.
Treat the field like this:
| Value | Treat it as |
|---|---|
completed | The source has reported the result and the warehouse has loaded it. This is the only value you should treat as final. |
| Anything else | Not final. Do not settle, rank or publish from the row until it reads completed. Log the value you saw so you can tell us about it. |
An events row's status says something about the event; an event-results row's status says something about that competitor's result at that event. Read the one on the row you are using.
There is no provisional or final flag
status is the only finality signal today. There is no is_final, no provisional flag and no revision number on any spine row.
How corrections reach you
When a source corrects a result, the next warehouse load overwrites the row in place. The API does not publish a corrections feed, a changelog or a revision stamp, so the only trace of a correction is that the row now reads differently from the one you saved.
IDs are stable within a load; a consolidation or correction of a sport's source data can mint them again. See IDs and grades.
Detecting that data changed
Keep your own copy
Nothing in the API tells you a row changed. Change detection means comparing the live rows with a copy you saved. Save what you pull.
- Watch
last_run_utcper sport.GET /v1/status/freshnessreportslast_run_utc,latest_event_loaded_utcandis_currentfor every sport the warehouse loads. Storelast_run_utcfor the sports you use. When it moves, a load ran and rows may have changed. - Re-pull the affected scope. For a season you have already loaded, re-walk
/v1/{sport}/events?season_id=and theevent-resultsof each event. For a single event, re-pull/v1/{sport}/event-results?event_id=. - Compare per
(event_id, competitor_id). That pair is the key ofevent-results. Comparefinish_position,pointsandstatusfor each pair. A pair that is present in one copy and absent in the other is also a change. - Act on the diff. Re-run whatever you computed from the old rows: standings, winners, payouts.
latest_event_loaded_utc moving tells you a newer event arrived. last_run_utc moving with latest_event_loaded_utc unchanged is consistent with a load that corrected or re-checked existing rows, or found nothing new. Either way, the only way to know is to re-pull and compare.
points and score are null on every row for a sport that has no such data; the response lists those fields in meta.absent_columns. Do not treat that null as a change. Competitors can also have a null competitor_name, so compare on competitor_id, not on names.
Handling re-minted IDs
When a consolidation re-mints IDs, the live rows carry new event_id or competitor_id values and your saved copy carries old ones. Your per-ID diff will then show every row as removed and every row as added.
- Detect it: if a re-pull of a season returns almost no
event_idvalues that match your saved copy, suspect re-minted IDs rather than a mass correction. - Recover: match events on
(season_id, start_date, event_name)and competitors oncompetitor_namewhere it is not null, then rebuild your ID map and re-run the field diff with the new IDs. - Do not store the API's IDs as the only key for anything you cannot rebuild. Keep the natural keys next to them.
Planned, not available
These are on the roadmap. No dates are promised.
| Capability | Today |
|---|---|
| A finality flag on spine rows | Not available. Use status == "completed". |
| Revision stamps per row | Not available. Diff against your saved copy. |
| A corrections feed | Not available. Watch last_run_utc and re-pull. |
See Status and what's coming for the full list.
Example: re-pull one event and diff it
The script pulls event-results for one event, compares the rows with a JSON copy saved on a previous run, prints each change keyed on (event_id, competitor_id), and saves the new copy.
import json
import os
import sys
import time
from pathlib import Path
import requests
BASE_URL = "https://platform-api.altsportsleagues.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['ASD_API_KEY']}"}
SPORT, EVENT_ID = sys.argv[1], sys.argv[2] # e.g. smx <event_id>
WATCHED = ("finish_position", "points", "score", "status")
def all_rows(path: str, **params):
token = None
while True:
res = requests.get(
f"{BASE_URL}{path}",
headers=HEADERS,
params={**params, "limit": 100, **({"page_token": token} if token else {})},
timeout=65,
)
if res.status_code == 429: # keys allow 10 requests a minute: wait and retry
time.sleep(int(res.headers.get("Retry-After", "15")))
continue
res.raise_for_status()
body = res.json()
yield from body["data"]
token = body.get("next_page_token")
if not token:
return
snapshot = Path(f"snapshots/{SPORT}/{EVENT_ID}.json")
old = {}
if snapshot.exists():
old = {tuple(k.split("|", 1)): v for k, v in json.loads(snapshot.read_text()).items()}
new = {
(r["event_id"], r["competitor_id"]): {f: r.get(f) for f in WATCHED}
for r in all_rows(f"/v1/{SPORT}/event-results", event_id=EVENT_ID)
}
for key in sorted(set(old) | set(new)):
if key not in old:
print(f"added {key[1]} {new[key]}")
elif key not in new:
print(f"removed {key[1]} {old[key]}")
else:
diffs = {f: (old[key][f], new[key][f]) for f in WATCHED if old[key][f] != new[key][f]}
if diffs:
print(f"changed {key[1]} {diffs}")
if old and not (set(old) & set(new)):
print("no competitor_id in common with the saved copy: IDs may have been re-minted")
snapshot.parent.mkdir(parents=True, exist_ok=True)
snapshot.write_text(json.dumps({"|".join(k): v for k, v in new.items()}, indent=2))Run it once to save the first copy, then again after last_run_utc moves: python diff_event.py smx <event_id>.