FantasyEngine docs Fantasy Engine Data API
Version 1.0
  • 1.0 (this version)

Fantasy Engine Data API 1.0 / Endpoints

Per sport

Developer

What differs between the sports: fixture kinds, participants, results and the extra values of each sport, with example answers.

Soccer (EPL, Bundesliga, LaLiga, Serie A, Ligue 1, UCL, UEL)#

Last updated: 2026-11-25 · v1.0

  • Fixture = a match; events = match days; round = gameweek; UCL / UEL fixtures carry stage and stage_kind in every answer (schedule lists, /stats, /odds).
  • score.detail has ht / ft, and in cups et / pen / aggregate_winner; periods is {}. A cup match decided on penalties: "score": {"home": 2, "away": 2, "detail": {"ht": [1, 1], "ft": [1, 1], "et": [1, 1], "pen": [4, 1], "winner": "home", "aggregate_winner": "home"}} (ft = after 90 minutes, et = goals in extra time, home / away = both).
  • /stats: team lines + player lines (also unused substitutes with minutes 0) + lineups. Derived values: own_goals, penalty_goals, clean_sheet (1 when the player conceded no goal while on the pitch for at least 60 minutes), came_on_minute, went_off_minute.
  • salary is 3000 for every soccer player (there are no soccer salaries).

US sports (NBA, NFL, MLB, NHL)#

Last updated: 2026-11-25 · v1.0

  • Fixture = a game; events = US Eastern days; NFL has round (week), the others do not. season_type separates preseason, regular season and postseason (and exhibition / all-star games).
  • A game without a published time (NFL flex weeks and playoffs, NBA "12:00 AM" games) has start_time_tbd: true and start_date 00:00 US Eastern; it gets its real start (and start_time_tbd: false) when the scoreboard shows it in play.
  • score.detail.periods per quarter / period / inning; ht / ft are null. NHL shoot-outs: home / away without the shoot-out goal, detail.pen = the shoot-out. MLB innings are in periods (in1..), not in the team line keys in1..in9 (those stay empty).
  • A game in play (an NBA game, fixture only):
Example answer (a game in play)
{
  "id": 2326,
  "name": "HOU vs ATL",
  "start_date": "2026-10-27 00:30:00",
  "status": "In Progress",
  "status_code": "in_progress",
  "status_detail": "4th Quarter",
  "period": "Q4",
  "clock": "8:28",
  "score": {
    "home": 100,
    "away": 93,
    "detail": {
      "ht": null,
      "ft": null,
      "et": null,
      "pen": null,
      "winner": null,
      "aggregate_winner": null,
      "periods": {
        "q1": [32, 35],
        "q2": [31, 31],
        "q3": [28, 19],
        "q4": [9, 8]
      }
    }
  },
  "confirmed": false,
  "stats_complete": null,
  "final_pending": false,
  "confirmed_at": null,
  "stats_updated_at": "2026-10-27 02:34:08"
}
  • A player line (NBA, the final of /nba/stats/489):
Example answer
{
  "player": {
    "id": 1085,
    "name": "Zach LaVine",
    "salary": 48967,
    "country": "",
    "position": {"id": 5, "name": "G", "abbr": "G"},
    "gs_id": 3064440,
    "team_id": 47,
    "jersey": 8,
    "position_raw": "G",
    "roster_status": "active",
    "injury": null
  },
  "stats": {
    "odd_name": "Zach LaVine",
    "oncourt": 0,
    "minutes": "40",
    "field_goals_made": "13",
    "field_goals_attempts": "25",
    "threepoint_goals_made": "3",
    "threepoint_goals_attempts": "10",
    "freethrows_goals_made": "8",
    "freethrows_goals_attempts": "8",
    "offence_rebounds": "0",
    "defense_rebounds": "2",
    "total_rebounds": "2",
    "assists": "5",
    "steals": "2",
    "blocks": "0",
    "turnovers": "3",
    "personal_fouls": "0",
    "plus_minus": "-21",
    "points": "37"
  },
  "values": {
    "minutes": 40,
    "field_goals_made": 13,
    "field_goals_attempts": 25,
    "threepoint_goals_made": 3,
    "threepoint_goals_attempts": 10,
    "freethrows_goals_made": 8,
    "freethrows_goals_attempts": 8,
    "offence_rebounds": 0,
    "defense_rebounds": 2,
    "total_rebounds": 2,
    "assists": 5,
    "steals": 2,
    "blocks": 0,
    "turnovers": 3,
    "personal_fouls": 0,
    "plus_minus": -21,
    "points": 37
  },
  "minutes": 40
}
  • NFL kickers: use the values groups kicking_fg_made_0_19 .. _50_plus and kicking_fg_att_* for distance-based scoring (built from the game's scoring plays; they never add up to more than kicking_field_goals_made / _att; when a missed kick has no distance the att groups add up to less). The kicking_field_goals_from_*_yards keys are always 0.
Example answer, trimmed ("..." marks removed parts)
{
  "player": {
    "id": 1990,
    "name": "Harrison Butker",
    "team_id": 62,
    ...
  },
  "stats": {
    "kicking_field_goals": "1/3",
    "kicking_pct": "33.3",
    "kicking_long": "50",
    "kicking_extra_point": "0/0",
    "kicking_points": "3",
    "kicking_field_goals_from_1_19_yards": "0",
    "kicking_field_goals_from_20_29_yards": "0",
    "kicking_field_goals_from_30_39_yards": "0",
    "kicking_field_goals_from_40_49_yards": "0",
    "kicking_field_goals_from_50_yards": "0"
  },
  "values": {
    "kicking_field_goals_made": 1,
    "kicking_field_goals_att": 3,
    "kicking_pct": 33.3,
    "kicking_long": 50,
    "kicking_extra_point_made": 0,
    "kicking_extra_point_att": 0,
    "kicking_points": 3,
    "kicking_field_goals_from_1_19_yards": 0,
    "kicking_field_goals_from_20_29_yards": 0,
    "kicking_field_goals_from_30_39_yards": 0,
    "kicking_field_goals_from_40_49_yards": 0,
    "kicking_field_goals_from_50_yards": 0,
    "kicking_fg_made_0_19": 0,
    "kicking_fg_att_0_19": 0,
    "kicking_fg_made_20_29": 0,
    "kicking_fg_att_20_29": 0,
    "kicking_fg_made_30_39": 0,
    "kicking_fg_att_30_39": 0,
    "kicking_fg_made_40_49": 0,
    "kicking_fg_att_40_49": 1,
    "kicking_fg_made_50_plus": 1,
    "kicking_fg_att_50_plus": 2
  },
  "minutes": null
}
  • MLB: pitchers' pitchers_pc-st ("34-22") is split into pitchers_pitches and pitchers_strikes:
Example answer, trimmed ("..." marks removed parts)
{
  "player": {
    "id": 3832,
    "name": "Ian Seymour",
    "team_id": 87,
    "position": {"id": 26, "name": "SP", "abbr": "SP"},
    ...
  },
  "stats": {
    "pitchers_innings_pitched": "0.2",
    "pitchers_runs": "1",
    "pitchers_hits": "2",
    "pitchers_earned_runs": "1",
    "pitchers_walks": "1",
    "pitchers_strikeouts": "2",
    "pitchers_home_runs": "1",
    "pitchers_pc-st": "34-22",
    "pitchers_earned_runs_average": "4.50",
    "pitchers_win": "",
    "pitchers_loss": "",
    "pitchers_holds": "",
    "pitchers_saves": "",
    "pitchers_hbp": "0"
  },
  "values": {
    "pitchers_innings_pitched": 0.2,
    "pitchers_runs": 1,
    "pitchers_hits": 2,
    "pitchers_earned_runs": 1,
    "pitchers_walks": 1,
    "pitchers_strikeouts": 2,
    "pitchers_home_runs": 1,
    "pitchers_pitches": 34,
    "pitchers_strikes": 22,
    "pitchers_earned_runs_average": 4.5,
    "pitchers_win": null,
    "pitchers_loss": null,
    "pitchers_holds": null,
    "pitchers_saves": null,
    "pitchers_hbp": 0
  },
  "minutes": null
}

MMA#

Last updated: 2026-11-25 · v1.0

  • Fixture = one bout; event = the card. The source publishes a bout only once it is over: there is no round-by-round live state; a bout reads Final about 15 minutes after its result appears.
  • The fighters are players (/mma/players, team_id null) and the bout's participants (home corner first). /mma/stats/{id} gives each fighter's line in player_stats.
  • Deprecated, still served and updated: fighters as teams (/mma/teams, the bout's home_team / away_team and its name, team_stats). Each participant carries both ids (player_id and the fighter's team_id in /mma/teams) so you can move. The team view will be removed only after a separate notice.
  • "Road to UFC" cards have no detailed results at the source: their bouts become Final from the schedule's winner a few days after the card (result.source: "schedule", no method, stats_complete: false).
Example answer
{
  "id": 8387,
  "name": "MOVSAR EVLOEV vs ALEXANDER VOLKANOVSKI",
  "start_date": "2026-10-24 20:35:00",
  "status": "Final",
  "status_code": "final",
  "confirmed": true,
  "stats_complete": true,
  "kind": "bout",
  "kind_detail": {
    "weight_class": "Featherweight",
    "main_card": true,
    "result": {
      "winner": "away",
      "method": "ko_tko",
      "method_raw": "KO",
      "method_detail": "Punches",
      "decision": null,
      "round": 2,
      "time": "4:54",
      "scorecards": [],
      "source": "live"
    }
  },
  "participants": [
    {
      "side": "home",
      "number": null,
      "type": "player",
      "player_id": 10928,
      "team_id": 704,
      "gs_id": 84775,
      "name": "Movsar Evloev",
      "status": "active",
      "result": {"outcome": "loss"}
    },
    {
      "side": "away",
      "number": null,
      "type": "player",
      "player_id": 10963,
      "team_id": 739,
      "gs_id": 84829,
      "name": "Alexander Volkanovski",
      "status": "active",
      "result": {"outcome": "win"}
    }
  ]
}

kind_detail: weight_class (as the source names it, null when unknown), main_card (boolean), result (null until the bout is over): winner home / away / draw / null (no contest), method ko_tko, submission, decision, draw, no_contest, disqualification, unknown; method_raw (the source's word), method_detail ("Punches", "Rear Naked Choke"), decision unanimous / split / majority or null, round and time when it ended, scorecards (judges' cards as text, away corner first, e.g. "28-29"), source live or schedule. Participant result: {"outcome": "win" | "loss" | "draw" | "no_contest"}, null before the result.

A fighter's line (values adds control_time_seconds):

Example answer
{
  "player": {
    "id": 10928,
    "name": "Movsar Evloev",
    "salary": 3000,
    "country": "",
    "position": [],
    "gs_id": 84775,
    "team_id": null,
    "jersey": null,
    "position_raw": null,
    "roster_status": "active",
    "injury": null
  },
  "stats": {
    "winner": 0,
    "strikes_total_head": "50",
    "strikes_total_body": "9",
    "strikes_total_legs": "6",
    "strikes_power_head": "28",
    "strikes_power_body": "8",
    "strikes_power_legs": "4",
    "takedowns_att": "7",
    "takedowns_landed": "3",
    "submissions_total": "0",
    "control_time_total": "0:46",
    "knockdowns_total": "0"
  },
  "values": {
    "winner": 0,
    "strikes_total_head": 50,
    "strikes_total_body": 9,
    "strikes_total_legs": 6,
    "strikes_power_head": 28,
    "strikes_power_body": 8,
    "strikes_power_legs": 4,
    "takedowns_att": 7,
    "takedowns_landed": 3,
    "submissions_total": 0,
    "control_time_total": "0:46",
    "knockdowns_total": 0,
    "control_time_seconds": 46
  },
  "minutes": null
}

Formula 1#

Last updated: 2026-11-25 · v1.0

  • Fixture = one session of a Grand Prix (first / second / last practice, sprint qualification, sprint, qualification, race); event = the Grand Prix. No home_team / away_team; the drivers are the participants, their constructor in team_id (/f1/teams).
  • A session reads Final about 30 minutes after the source says "Finished"; stats_complete is true when every driver has a position (and in a race / sprint laps and a time or gap). Sessions announced but not run (sprint-format sessions of a normal weekend) become Canceled.
Example answer, trimmed ("..." marks removed parts)
{
  "id": 8540,
  "name": "Race",
  "start_date": "2026-10-25 20:00:00",
  "status": "Final",
  "status_code": "final",
  "status_detail": "Finished",
  "gs_id": 81979141,
  "confirmed": true,
  "stats_complete": true,
  "kind": "session",
  "kind_detail": {
    "type": "race",
    "number": 1,
    "track": "Circuit of the Americas",
    "city": "Austin",
    "laps": 56,
    "distance": 308.9,
    "fastest_lap": null
  },
  "participants": [
    {
      "side": null,
      "number": null,
      "type": "player",
      "player_id": 13463,
      "team_id": 3224,
      "gs_id": 4024,
      "name": "Kimi Antonelli",
      "status": "active",
      "result": {
        "position": 1,
        "grid": 1,
        "laps": 56,
        "time": "1:35:16.650",
        "gap": null,
        "points": 25,
        "pit_stops": 1
      }
    },
    {
      "side": null,
      "number": null,
      "type": "player",
      "player_id": 13467,
      "team_id": 3225,
      "gs_id": 3009,
      "name": "Charles Leclerc",
      "status": "active",
      "result": {
        "position": 2,
        "grid": 4,
        "laps": 56,
        "time": null,
        "gap": "+13.078",
        "points": 18,
        "pit_stops": 2
      }
    },
    ...
  ]
}

kind_detail: type (practice, sprint_qualifying, sprint, qualifying, race), number (practice 1-3, else 1), track, city, laps and distance (km; planned, race only), fastest_lap {gs_id, time} of a race / sprint once named, else null. Participant status: active, dnf (also not classified), dq, scratched (did not start). Participant result: race / sprint {position, grid, laps, time, gap, points, pit_stops} (time = the winner's race time, the others' gap "+13.078" / "+1 Lap"; points by the FIA scale: race 25-18-15-12-10-8-6-4-2-1, sprint 8-1); qualification {position, laps, time, gap, q1, q2, q3}; practice {position, laps, time, gap} (time = best lap). A value the source does not give or garbles is null.

Qualification participant (/f1/stats/8539):

Example answer
{
  "side": null,
  "number": null,
  "type": "player",
  "player_id": 13463,
  "team_id": 3224,
  "gs_id": 4024,
  "name": "Kimi Antonelli",
  "status": "active",
  "result": {
    "position": 1,
    "laps": 18,
    "time": "1:34.035",
    "gap": null,
    "q1": "1:35.390",
    "q2": "1:34.278",
    "q3": "1:34.035"
  }
}

A driver's line in the race (values adds time_seconds, gap_seconds, laps_behind, points, classified):

Example answer
{
  "player": {
    "id": 13463,
    "name": "Kimi Antonelli",
    "salary": 3000,
    "country": "ITA",
    "position": [],
    "gs_id": 4024,
    "team_id": 3224,
    "jersey": null,
    "position_raw": null,
    "roster_status": "active",
    "injury": null
  },
  "stats": {"pos": "1", "time": "1:35:16.650", "laps": "56", "grid": "1", "pit": "1"},
  "values": {
    "pos": 1,
    "time": "1:35:16.650",
    "laps": 56,
    "grid": 1,
    "pit": 1,
    "time_seconds": 5716.65,
    "gap_seconds": null,
    "laps_behind": null,
    "points": 25,
    "classified": 1
  },
  "minutes": null
}

Known gaps (why Formula 1 is beta): a Grand Prix moved at short notice can keep its old dates and come without results; reserve drivers of some practices are not listed; season results can lag days behind (the current Grand Prix is always live).

Golf (PGA)#

Last updated: 2026-11-25 · v1.0

  • Fixture = one round of a tournament ("Day 1" .. "Day 4", "Playoff"); event = the tournament. Every round carries the whole field as participants, so ask for a date window (a whole season is about 5 MB).
  • A round is In Progress while it is played (also while play is suspended) and Final about 30 minutes after the source calls it complete. A round never played (weather) is Canceled.
  • start_date = the first tee time once published (start_time_tbd: false), else 00:00 UTC of the day (start_time_tbd: true); past rounds have no tee times. Asian tee times fall on the UTC day before.
  • A golfer's round score is taken from the leaderboard only when it can be one 18-hole round (50 to 99 strokes, all 18 holes when the holes are listed, right after a round he played). Anything else the source puts in a round column (a tournament total, the strokes of a round left unfinished) is not published: the golfer is wd from a round he did not finish, and a round nobody played is Canceled (for example the last round of a tournament cut to 54 holes). When a final leaderboard gives no positions, a round's position is the ranking by total (ties share it).
Example answer, trimmed ("..." marks removed parts)
{
  "id": 8728,
  "name": "Day 3",
  "start_date": "2026-10-10 00:00:00",
  "status": "Final",
  "status_code": "final",
  "gs_id": 2026017473,
  "start_time_tbd": true,
  "confirmed": true,
  "stats_complete": true,
  "kind": "round",
  "kind_detail": {
    "number": 3,
    "playoff": false,
    "par": 71,
    "course": "Yokohama Country Club - Yokohama, Japan",
    "purse": "$8,000,000",
    "cut_line": null
  },
  "participants": [
    {
      "side": null,
      "number": null,
      "type": "player",
      "player_id": 15418,
      "team_id": null,
      "gs_id": 11277,
      "name": "Michael Brennan",
      "status": "active",
      "result": {
        "position": 1,
        "to_par": -13,
        "total": 200,
        "strokes": 65,
        "today": -6,
        "thru": 18,
        "tee_time": null
      }
    },
    {
      "side": null,
      "number": null,
      "type": "player",
      "player_id": 14832,
      "team_id": null,
      "gs_id": 7234,
      "name": "Keith Mitchell",
      "status": "active",
      "result": {
        "position": 4,
        "to_par": -12,
        "total": 201,
        "strokes": 70,
        "today": -1,
        "thru": 18,
        "tee_time": null
      }
    },
    ...
  ]
}

kind_detail: number (1-4, 9 = playoff), playoff, par of the course, course, purse (as written, null when empty), cut_line (score to par of the last golfer who made the cut, from the cut round on; else null). Participant status: active, cut (from round 2 on), wd (withdrew), dq. Participant result: {position, to_par, total, strokes, today, thru, tee_time} (position after that round, ties share it, null when not active; to_par / total through that round; strokes / today of that round; thru holes played, 18 when finished; tee_time UTC "YYYY-MM-DD HH:MM" for the next round to start). A playoff participant: {"position": 1, "strokes": null, "outcome": "win"}. A participant's name is spelled as the leaderboard spells it and can differ from /players ("Séamus" / "Seamus"): match by player_id.

A golfer's line in a round (stats as the source sends them, hole = that round's holes; values = the round's own numbers):

Example answer, trimmed ("..." marks removed parts)
{
  "player": {
    "id": 15418,
    "name": "Michael Brennan",
    "salary": 3000,
    "country": "",
    "gs_id": 11277,
    "team_id": null,
    "jersey": null,
    "position_raw": null,
    "roster_status": "active",
    "injury": null
  },
  "stats": {
    "pos": "1",
    "tee_time": "",
    "tee_time_utc": "",
    "par": "",
    "hole": [
      {
        "number": "1",
        "par": "4",
        "score": "4",
        "eagle": "False",
        "birdie": "False",
        "bogey": "False",
        "dbl_bogey_worse": "False"
      },
      ...
    ],
    "today": "",
    "po": "",
    "scoreToPar": "-16",
    "driveDistAvg": "317.4",
    "driveAccuracyPct": "91.7",
    "gir": "75",
    "puttsGirAvg": "1.704",
    "saves": "50",
    "eagles": "1",
    "birdies": "20",
    "pars": "46",
    "bogeys": "4",
    "doubles": "1",
    "total": "268",
    "earnings": "$1,440,000",
    "extra_stats": null
  },
  "values": {
    "round": 3,
    "position": 1,
    "strokes": 65,
    "today": -6,
    "to_par": -13,
    "total": 200,
    "thru": 18,
    "holes": 18,
    "eagles": 0,
    "birdies": 7,
    "pars": 10,
    "bogeys": 1,
    "doubles": 0
  },
  "minutes": null
}

Known gaps (why golf is beta): a leaderboard is sometimes served without names or ids (then nothing is updated until a readable one arrives); a final leaderboard does not say who missed the cut, withdrew or was disqualified (told from the round scores, a DQ reads as a withdrawal); no playoff score; past rounds have no tee times.

Horse racing (beta)#

Last updated: 2026-11-25 · v1.0

  • Fixture = one race (kind race, no teams, score null); event (matches[]) = one meeting: a course on one date (its gs_id = date yyyymmdd x 100000 + course id). horse_uk carries the UK and Irish meetings. Horses are the players (/horse_uk/players: the horses on a card in the last 30 days); there are no teams or positions.
  • start_date: UK / Irish races at the course's local time on the meeting date, in UTC; USA and Australia as the source gives them (UTC). A race reads Scheduled until its result is published (the source sends no in-running state), then Final about 15 minutes later, with stats_complete true when the winner is known and every runner that ran has a finish.
  • kind_detail of a race: {number, name, distance, going, class, surface, purse} (number = race N of the meeting, name without "Race N"; the others as the source writes them, null when empty).
  • participants: the runners by saddle cloth, each with number, status (active, scratched = a non-runner, dnf = pulled up / fell / unseated ..., dq) and result {position, finish, distance, time, sp, win, place, show, jockey, jockey_id, trainer, trainer_id, weight, draw, age}: position for a placed runner, finish the code of a non-finisher (PU, F, U, RO ...), sp the decimal starting price (UK), win / place / show the USA payoffs; jockey / trainer / weight / draw / age from the card.
  • /stats/{id} lists one line per runner with a result, with stats keys pos, number, wgt, time, distance, jockey, win, place, show, sp (as the source writes them; number = the saddle cloth) and typed values position, finish, number, weight, time_seconds, distance_behind, sp, win, place, show.
  • Beta (Quality): USA results come about a day after the race, so a USA race reads Scheduled until the next day; Australian cards can be missing for weeks, and horse_aus then has no current races. A race that never gets a result (an abandoned meeting) stays Scheduled.
Example answer (a UK race of 26 October 2026), trimmed ("..." marks removed parts)
{
  "id": 3812,
  "name": "Race 1 Betting.Bet Free Racing Tips 'Hands And Heels' Handicap Hurdle",
  "start_date": "2026-10-26 12:48:00",
  "status": "Final",
  "location": "",
  "city": "",
  "gs_id": 1169395,
  ...
  "season_type": "regular",
  "start_time_tbd": false,
  "confirmed": true,
  "stats_complete": true,
  "kind": "race",
  "kind_detail": {"number": 1, "name": "Betting.Bet Free Racing Tips 'Hands And Heels' Handicap Hurdle", "distance": "2m 3f 147y",
                  "going": "Good to Firm (Good in places)", "class": null, "surface": null, "purse": null},
  "participants": [
    ...
    {"side": null, "number": 11, "type": "player", "player_id": 20431, "team_id": null, "gs_id": 131626, "name": "Inca",
     "status": "active",
     "result": {"position": 1, "finish": null, "distance": null, "time": "4m 47.10s", "sp": 3, "win": null, "place": null,
                "show": null, "jockey": "Roisin Leech", "jockey_id": 1551048, "trainer": "Mrs S Leech", "trainer_id": 1219946,
                "weight": "5143", "draw": null, "age": null}},
    ...
  ]
}

Change log#

Last updated: 2026-11-25 · v1.0

Date (GMT+7)SectionWhat changed
2026-10-27allFirst version of the Data API reference (a single document), every example answer taken from a test copy of the API.
2026-10-28 to 2026-10-30allRe-checked with every API change of those days (see the API history).
2026-11-25allMoved to the documentation site as this page; every section re-checked against the code of version 1.0 of the Data API (endpoints, parameters, defaults, allowed values, paging, errors, limits, the X-API-KEY header, times in UTC). Example answers of the NBA player line, NFL kicker, MLB pitcher, MMA, Formula 1 and golf taken again; Formula 1 and golf marked beta with their known gaps; horse racing beta for all three countries.