Data as a Service

Sport Data API

Data model

Six tables, every sport. Why one model spans racing, surfing and arena soccer, and where sports are allowed to differ.

Racing, surfing and arena soccer look nothing alike on TV. At the level this API exposes them, they are the same six entities.

Season
/seasons
one season per sport
has many
Event
/events
a meet, round or stop
has many
Competition
/competitions
a race, heat or match
has many
Result
/results
competitor × competition
EventResult
/event-results
competitor × event. finish_position = 1 is always the winner, in every sport
Competitor
/competitors
an athlete or a team. Check competitor_type before assuming a person
Every product sport publishes these same six tables with the same columns. Learn the model once and it carries to the next sport.

Three rules that make one model work

1. A competitor is an athlete or a team. Every competitors row carries competitor_type (athlete | team). Supercross, surfing and High Limit Racing list athletes. MASL lists its 47 clubs, and the players live in a separate masl_players table. Read competitor_type before you label a row as a person. Serving a team name as a player is the easiest mistake to make against this data.

2. Participation comes from results. A competition has no entry list at the spine layer. "Who raced in this heat" is answered by its results rows. An upcoming competition with zero participants is correct, not broken.

3. event_results is the cross-sport guarantee. finish_position = 1 on event_results is the event winner in every sport, with no per-sport aggregation on your side. "Who won Anaheim 1" and "who won at Nazaré" are the same request.

Two result grains

ResourceGrainAnswersPaged by
/v1/{sport}/resultscompetitor × competition (heat, period, feature)How did they do in this heat or period?result_id
/v1/{sport}/event-resultscompetitor × eventHow did they do at the event overall? Who won?(event_id, competitor_id)

Use event-results for winners, podiums and standings. Use results when you need heat-by-heat or period-by-period detail.

The spine, field by field

ResourceKey fields
Seasonseason_id, season_name, season_year, start_date, end_date
Eventevent_id, event_name, season_id, start_date, end_date, status, format, round, venue_name, city, state, country
Competitioncompetition_id, event_id, label (main, heat-1, qf-h2, p1…), division (450, ct-men, open), scheduled_start, status
Resultresult_id, event_id, competition_id, competitor_id, division, finish_position, points, score, status
EventResultevent_id, competitor_id, division, finish_position, points, score, status
Competitorcompetitor_id, competitor_name, competitor_type, sport

The sport field on a row is the vendor's sport name (for example motocross or arena-soccer), not the URL key. The URL key comes back in meta.sport.

A MASL competitor, captured from GET /v1/masl/competitors?limit=2 on 2026-10-08:

{
  "competitor_id": "00406466b0e8942f…bc279c3817ad154a9",
  "competitor_name": "Atletico",
  "competitor_type": "team",
  "sport": "arena-soccer"
}

Absent is different from null

High Limit Racing carries no points or score data anywhere. Because every sport shares one response type, points and score still appear on hlr rows as null. The response tells you they are absent, not missing: they are left out of meta.columns and listed in meta.absent_columns. Check meta.columns (and has_points from /v1/{sport}/capabilities) before treating a null as "no value recorded".

Captured from GET /v1/hlr/event-results?limit=2 on 2026-10-08 (one row shown):

{
  "object": "list",
  "data": [
    {
      "event_id": "005a97f786cbd12b…5eab8792e01be8940f2d16275",
      "competitor_id": "0fb8d8d6a02dff9d…b032fc641b9d4ff",
      "division": "410-sprint",
      "finish_position": 16,
      "status": "completed",
      "points": null,
      "score": null
    }
  ],
  "next_page_token": "eyJjIjp7ImNvbXBl…",
  "meta": {
    "sport": "hlr",
    "schema": "asd_hlr",
    "table": "event_results",
    "count": 2,
    "limit": 2,
    "columns": ["event_id", "competitor_id", "division", "finish_position", "status"],
    "order_by": ["event_id", "competitor_id"],
    "elapsed_ms": 2006,
    "warehouse_pages": 1,
    "absent_columns": ["points", "score"],
    "absent_columns_note": "These fields do not exist in asd_hlr.event_results. They appear as null in `data` because the response type is shared across all sports …"
  }
}

Where sports may differ: archetypes

The spine never varies. Below it, each sport belongs to one archetype with its own depth tables. Depth tables are not served by the API yet; /v1/{sport}/capabilities tells you what each sport declares.

ArchetypeSportsDepth vocabulary
racesmx, hlrsessions, entry lists, lineups, tracks
judgedwslheats, attempts, wave scores
matchmaslstandings, schedule, period scores, player and team stats

Derived: rankings

GET /v1/{sport}/rankings sums event_results points into season standings. It is a top-N surface bounded by limit and is not cursor-paged, because its order key is a computed total. Order is still fully deterministic (competitor_id breaks ties). Sports without points data (hlr) do not offer rankings, and capabilities says so: /v1/hlr/rankings answers 404 not_found with details.has_points: false.

Captured from GET /v1/masl/rankings?limit=2 on 2026-10-08 (one row shown):

{
  "object": "list",
  "data": [
    {
      "season_id": "f2757efe8f55503b…e30459711e2f7c78a0aa198be3a",
      "division": "open",
      "competitor_id": "063edcece821850b…baa2830e45516df",
      "competitor_name": "Savage",
      "points": null,
      "events_scored": 32,
      "best_finish": 1
    }
  ],
  "meta": {
    "sport": "masl",
    "schema": "asd_masl",
    "resource": "rankings",
    "basis": "derived",
    "derived_from": "asd_masl.event_results",
    "grouped_by": ["season_id", "division", "competitor_id"],
    "count": 2,
    "limit": 2,
    "columns": ["season_id", "division", "competitor_id", "competitor_name", "points", "events_scored", "best_finish"],
    "elapsed_ms": 2833,
    "warehouse_pages": 1
  }
}

There is no next_page_token on rankings. Note that points can be null even for a sport that declares points: when the summed event_results rows carry no points for that season and division, the standing still lists events_scored and best_finish, but the total is null. Do not read a null total as zero.

On this page