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

Fantasy Engine Data API 1.0 / Endpoints

Schedules and fixtures

Developer

The schedule lists of the current season and the fixture object every list, box score and odds answer is built on.

Schedules - /{sport}/schedule, /schedule/upcoming, /schedule/past#

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

GET/api/feeds/{sport}/schedule

GET/api/feeds/{sport}/schedule/upcoming

GET/api/feeds/{sport}/schedule/past

The fixtures of the sport's current season (only the current one: there is no history of earlier seasons), grouped by event. The three lists differ in which fixtures they hold:

ListHoldsNote
/scheduleevery fixture of the seasonthe only list that also shows fixtures in play, being confirmed, postponed in the past or canceled in the past
/schedule/upcomingfixtures whose start_date is now or later and whose status is not Finala fixture leaves this list at its start time: games in play are not in it
/schedule/pastfixtures whose status is Final (result confirmed)a game that is over but still being confirmed (status_code: final, status: In Progress) is not in it yet

Query parameters (all optional; they work on all three lists and combine)#

ParameterType / allowedDefaultEffect
fromdate YYYY-MM-DD (UTC)nonefixtures starting on or after that day 00:00 UTC
todate YYYY-MM-DD (UTC), not before fromnonefixtures starting on or before that day 23:59:59 UTC
roundwhole number 1-999nonefixtures of that round (round.number: soccer gameweek, NFL week); sports without rounds return none
pagewhole number >= 1 (below 1 or not a number = 1; at most 10000)1 when per_page is giventhat page of the fixtures
per_page1-500 (above 500 = 500; 0 or not a number = 100)100 when page is givenpage size, counted in fixtures
  • Without any parameter the answer is the whole list in fixture id order (the historical behaviour; large, see Compression).
  • With any parameter fixtures come in kick-off order (then by id), still grouped under their events; an event lists only its fixtures that match.
  • With page or per_page, data ends with paging: {page, per_page, total, last_page} (total = fixtures matching the filters). A page after the last one has "matches": [].
  • A value that cannot be read answers 400 (Errors); a filter is never ignored.
  • A window with no fixture answers {"data": {"id": 1, "season": "2026/2027", "league": "Premier League", "is_current": true, "matches": []}} (EPL from 1 to 2 July 2026).
  • A sport with no current season yet (just added, before its first daily update) answers {"data": []} on all three endpoints: nothing to read yet, try again after the next daily update.

Examples:

GET /epl/schedule?round=8                                    every match of gameweek 8
GET /nba/schedule?from=2026-10-26&to=2026-10-28              a live scoreboard window (recipes)
GET /nba/schedule/upcoming?from=2026-10-26&to=2026-11-01     next week's games not started yet
GET /mlb/schedule/past?page=1&per_page=200                   confirmed results, 200 at a time
GET /pga/schedule?from=2026-10-22&to=2026-10-25              one tournament week (a whole PGA season is ~5 MB)

GET /epl/schedule?from=2026-10-24&to=2026-10-25 (trimmed: one event, one fixture):

Example answer, trimmed ("..." marks removed parts)
{
  "data": {
    "id": 1,
    "season": "2026/2027",
    "league": "Premier League",
    "is_current": true,
    "matches": [
      {
        "id": 25,
        "name": "Oct 24 2026",
        "start_date": "2026-10-24 11:30:00",
        "status": "Final",
        "fixtures": [
          {
            "id": 72,
            "name": "AST vs MAC",
            "start_date": "2026-10-24 11:30:00",
            "status": "Final",
            "location": "Villa Park",
            "city": "Birmingham",
            "home_team": {
              "id": 2,
              "name": "Aston Villa",
              "abbr": "AST",
              "coach": "Unai Emery",
              "image": "https://data.fantasyengine.net/storage/df_teams/epl/aston-villa.png"
            },
            "away_team": {
              "id": 15,
              "name": "Manchester City",
              "abbr": "MAC",
              "coach": "Enzo Maresca",
              "image": "https://data.fantasyengine.net/storage/df_teams/epl/manchester-city.png"
            },
            "gs_id": 4376327,
            "gs_static_id": 3868873,
            "status_code": "final",
            "status_detail": "Full-time",
            "period": null,
            "clock": null,
            "score": {
              "home": 2,
              "away": 1,
              "detail": {
                "ht": [1, 0],
                "ft": [2, 1],
                "et": null,
                "pen": null,
                "winner": "home",
                "aggregate_winner": null
              }
            },
            "round": {"number": 8, "name": "Week 8"},
            "stage_kind": null,
            "season_type": "regular",
            "start_time_tbd": false,
            "confirmed": true,
            "stats_complete": true,
            "kind": "match",
            "kind_detail": null,
            "participants": null
          },
          ...
        ]
      },
      ...
    ]
  }
}

GET /nfl/schedule?round=8&per_page=2 (trimmed):

Example answer, trimmed ("..." marks removed parts)
{
  "data": {
    "id": 3,
    "season": "2026",
    "league": "NFL",
    "is_current": true,
    "matches": [
      {
        "id": 280,
        "name": "Oct 29 2026",
        "start_date": "2026-10-30 00:15:00",
        "status": "Scheduled",
        "fixtures": [
          {
            "id": 1803,
            "name": "GB vs CAR",
            "start_date": "2026-10-30 00:15:00",
            "status": "Scheduled",
            ...,
            "round": {"number": 8, "name": "Week 8"},
            "season_type": "regular"
          }
        ]
      },
      ...
    ],
    "paging": {"page": 1, "per_page": 2, "total": 14, "last_page": 7}
  }
}
FieldTypeMeaning
idintegerthe season's schedule id; a new season gets a new id (US sports: one per season, e.g. NHL "2026/2027")
seasonstring"2026/2027" (soccer, NBA, NHL) or "2026" (NFL, MLB, MMA, F1, PGA, racing)
leaguestringcompetition name (can be "", e.g. MMA)
is_currentbooleanalways true (only the current season is served)
matches[]listthe events: soccer and US sports one per day (US: the US Eastern calendar day, so "Oct 26 2026" holds games starting at 00:00 UTC on 27 October), MMA one per card, F1 one per Grand Prix, PGA one per tournament, horse racing one per meeting (course and day)
matches[].id, .nameinteger, stringevent id and name ("Oct 24 2026", "UFC 333: Volkanovski vs. Evloev", "USA Grand Prix", "Butterfield Bermuda Championship", "Doncaster")
matches[].start_datestringstart of the event's first fixture (UTC)
matches[].statusstringthe status of its fixtures together: Final when all are over, In Progress when some are running or being confirmed, Scheduled before
matches[].fixtures[]listthe fixtures: the fixture object
pagingobjectonly with page / per_page: page, per_page, total, last_page

Do not use matches[] to identify a fixture: always key your data by the fixture id. A moved fixture keeps its id (Postponed and moved fixtures).

The fixture object#

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

A fixture is one thing that is played and scored: a match (soccer, US sports), a bout (MMA), a session (F1), a round (PGA) or a race (horse racing). The same object appears in every schedule list (matches[].fixtures[]), in /stats/{id} (data.fixture) and in /odds/{id} (data). Keys appear in this order; a key may be null but is never missing unless the table says so.

FieldTypeMeaning
idintegerthe fixture id: use it for /stats/{id}, /odds/{id} and as your own key
namestringteam sports: "HOME_ABBR vs AWAY_ABBR"; F1: the session ("Race", "Qualification", "First practice"); PGA: "Day 1" .. "Day 4", "Playoff"; horse racing: the race ("Race 1 Richard James Hone Memorial Handicap")
start_datestringkick-off / start (UTC); with start_time_tbd: true only the day is known
statusstringthe classic status: Scheduled, In Progress, Final, Postponed, Canceled (Fixture statuses). Final means the result is confirmed.
location, citystringvenue (US sports put the whole venue text in location and leave city ""); "" when unknown
stageobject, only for a fixture of a cup competition{id, name} of the competition stage (UCL / UEL: "League Phase", "Qualifying"), in the schedule lists, /stats/{id} and /odds/{id} alike . Absent for a fixture without a stage.
home_team, away_teamobject, team sports except F1{id, name, abbr, coach, image}; coach is that match's coach (soccer) or "". A team the source has not named yet reads {"id": 0, "name": "", "abbr": "", ...}. Absent for F1, PGA and horse racing.
oddslist, only in /odds/{id}Odds
gs_idintegerthe source id of the fixture (Ids)
gs_static_idinteger or nullsoccer: the permanent source id of the match (stays when gs_id is re-issued); null for other sports
status_codestringthe precise status, a closed list: scheduled, in_progress, interrupted, final, postponed, canceled, abandoned, unknown (Fixture statuses)
status_detailstring or nullthe status word as the source sent it: Full-time, 4th Quarter, Top 8th, Final/OT, Finished ...
periodstring or nullwhile in play the period (1H, HT, 2H, ET, PEN, Q1..Q4, P1..P3, OT, 2OT, SO, INT, TOP_8, BOTTOM_8, MIDDLE_8, END_8); for a final, how it ended when not in regulation (AET, PEN, AWD, OT, 2OT, SO, EXTRA_10 = 10 innings); else null
clockstring or nullthe game clock while in play: soccer minute ("67", "45+2"), US clock ("8:28")
scoreobject or nullnull before a score is known (and always for MMA, F1, PGA, racing). home, away: integers, including overtime / extra time, without a penalty shoot-out. detail: ht (half-time), ft (end of regulation), et (goals scored in extra time), pen (shoot-out) as [home, away] or null; winner home / away / draw / null (shoot-out and aggregate included); aggregate_winner (two-legged cup tie) or null. In /stats and /odds also periods: {"q1": [32, 35], ...} (NBA / NFL q1..q4, NHL p1..p3, MLB in1..in9; {} for soccer; a half-inning not played is null)
roundobject or null{number, name}: soccer gameweek {"number": 8, "name": "Week 8"}, NFL week (a named week without number: {"number": null, "name": "Wild Card"}); null for NBA, MLB, NHL, MMA, F1, PGA, racing (PGA's round number is in kind_detail.number)
stage_kindstring or nullthe kind of the stage (UCL / UEL, every answer): league, qualifying, group, knockout, final, unknown; null without a stage
season_typestring or nullregular, preseason, postseason, exhibition, allstar, unknown (horse racing: regular)
start_time_tbdboolean or nulltrue: the day is known, the time is not (US sports: start_date is then 00:00 US Eastern of that day = 04:00 / 05:00 UTC; PGA: 00:00 UTC until tee times are published; horse racing: false unless the source gives no time)
confirmedbooleantrue exactly when the result is final and confirmed (status_code final and status Final)
stats_completeboolean or nullafter the end: true the box score was checked complete, false checked incomplete (the result is still final), null not checked yet / not applicable (not finished, canceled, horse racing)
final_pendingboolean, only /stats and /oddstrue while the source says the game is over and the result is being confirmed
confirmed_atstring or null, only /stats and /oddswhen the result was confirmed (UTC). null with confirmed: true on a result stored before the current crawl (older finals, mostly horse racing and MMA); some of those also have participants: [] because the source no longer serves their details - treat them as final, they are not updated any more
stats_updated_atstring or null, only /stats and /oddslast time a player or team line of the fixture was written; compare it to know whether to re-read the stats
kindstringmatch (soccer, US sports), bout (MMA), session (F1), round (PGA), race (horse racing)
kind_detailobject or nullnull for a match; bout / session / round / race details on the page Per sport
participantslist or nullnull for a match; the fighters / drivers / golfers / runners of the fixture, each {side, number, type, player_id, team_id, gs_id, name, status, result} (Per sport)

A soccer fixture in a schedule list (from the answer above):

{
  "id": 72,
  "name": "AST vs MAC",
  "start_date": "2026-10-24 11:30:00",
  "status": "Final",
  "location": "Villa Park",
  "city": "Birmingham",
  "home_team": {
    "id": 2,
    "name": "Aston Villa",
    "abbr": "AST",
    "coach": "Unai Emery",
    "image": "https://data.fantasyengine.net/storage/df_teams/epl/aston-villa.png"
  },
  "away_team": {
    "id": 15,
    "name": "Manchester City",
    "abbr": "MAC",
    "coach": "Enzo Maresca",
    "image": "https://data.fantasyengine.net/storage/df_teams/epl/manchester-city.png"
  },
  "gs_id": 4376327,
  "gs_static_id": 3868873,
  "status_code": "final",
  "status_detail": "Full-time",
  "period": null,
  "clock": null,
  "score": {
    "home": 2,
    "away": 1,
    "detail": {"ht": [1, 0], "ft": [2, 1], "et": null, "pen": null, "winner": "home", "aggregate_winner": null}
  },
  "round": {"number": 8, "name": "Week 8"},
  "stage_kind": null,
  "season_type": "regular",
  "start_time_tbd": false,
  "confirmed": true,
  "stats_complete": true,
  "kind": "match",
  "kind_detail": null,
  "participants": 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 taken again (team ids of the soccer example changed); the empty-window example names its window.