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

Fantasy Engine Data API 1.0 / Endpoints

Sports, teams and players

Developer

The endpoints that describe your account and the sports: your sports and expiry, the plans on sale, the stat categories, teams, positions and players.

Your sports and expiry - /settings#

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

GET/api/feeds/settings

Lists every sport your key opens, grouped, with your expiry. Needs only a valid key (also answers when the key has expired). No parameters.

Example answer, trimmed ("..." marks removed parts)
{
  "data": {
    "sport_groups": [
      {
        "key": "soccer",
        "name": "Soccer",
        "sports": [
          {
            "key": "epl",
            "name": "English Premier League",
            "abbr": "EPL",
            "team_sport": true,
            "expire_at": "2027-12-31 23:59:59",
            "is_expired": false,
            "buy_url": "https://fantasyengine.net/data-api-pricing",
            "quality": "stable"
          },
          ...
        ]
      },
      ...,
      {
        "key": "golf",
        "name": "Golf",
        "sports": [
          {
            "key": "pga",
            "name": "PGA",
            "abbr": "PGA",
            "team_sport": false,
            "expire_at": "2027-12-31 23:59:59",
            "is_expired": false,
            "buy_url": "https://fantasyengine.net/data-api-pricing",
            "quality": "beta"
          }
        ]
      },
      ...
    ]
  }
}
FieldTypeMeaning
sport_groups[].key, .namestringthe group (soccer, basketball, football, baseball, hockey, golf, racing, horse_racing, fighting)
sports[].keystringthe sport key used in every other path
sports[].name, .abbrstringdisplay name and short name
sports[].team_sportbooleanfixtures have home_team / away_team (except F1, see Formula 1) and players have a position
sports[].expire_atstringyour access ends at this UTC time; "" if you never bought
sports[].is_expiredbooleantrue once expire_at has passed (or never bought)
sports[].buy_urlstringwhere to buy or renew (the shop page; it can change - read it here)
sports[].qualitystringstable or beta (Quality)

Plans for sale - /pricing#

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

GET/api/feeds/pricing

The plans the shop currently offers (maintained by us; the list can be empty: {"data":[]}). Needs only a valid key. Fields of each entry:

FieldTypeMeaning
id, name, descriptioninteger, string, stringthe pricing entry
plans[]listits plans: id, name, price (as entered in the shop), duration (number) + duration_type (day, week, month, year) + duration_format (text, e.g. "1 Month"), reminder + reminder_type + reminder_format (when the reminder is sent before the end)

Stat categories - /{sport}/stats_categories#

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

GET/api/feeds/{sport}/stats_categories

The names of the statistics this sport's box scores carry: each key is a key of the stats (and values) objects of /stats/{fixture_id}; type says whether it is a player line key or a team line key (the same key can be listed twice, once per type). Use it to build a scoring table or column headers. Horse racing: the runner line keys (pos, number, wgt ...) once a race has results. No parameters.

curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/epl/stats_categories
Example answer, trimmed ("..." marks removed parts)
{
  "data": [
    {"id": 254, "name": "Acc crosses", "abbr": "Acc crosses", "key": "acc_crosses", "type": "player"},
    {"id": 263, "name": "Aerials won", "abbr": "Aerials won", "key": "aerials_won", "type": "player"},
    {
      "id": 310,
      "name": "Corners total",
      "abbr": "Corners total",
      "key": "corners_total",
      "type": "team"
    },
    ...
  ]
}

Fields: id (integer), name, abbr (display texts), key (the stat key), type (player | team). The full lists per sport are in Stat keys per sport.

Teams - /{sport}/teams#

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

GET/api/feeds/{sport}/teams

Every active team of the sport (soccer: the clubs of that competition; NBA 30, NFL 32, MLB 30, NHL 32; F1: the constructors; MMA: the fighters, see MMA; PGA and horse racing: an empty list). No parameters, no paging.

curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/nfl/teams
Example answer, trimmed ("..." marks removed parts)
{
  "data": [
    {
      "id": 52,
      "name": "Cincinnati Bengals",
      "abbr": "CIN",
      "coach": "",
      "image": "https://data.fantasyengine.net/storage/df_teams/nfl/cincinnati-bengals.png"
    },
    {
      "id": 53,
      "name": "Dallas Cowboys",
      "abbr": "DAL",
      "coach": "",
      "image": "https://data.fantasyengine.net/storage/df_teams/nfl/dallas-cowboys.png"
    },
    ...
  ]
}
FieldTypeMeaning
idintegerthe team id used by fixtures (home_team.id), players (team_id) and /players/{team_id}
name, abbrstringfull name and abbreviation (MLB uses the current franchise codes: TB, WSH, CWS, CHC, CLE, STL, ATH)
coachstringalways "" here; the coach of a match is in the fixture's home_team.coach / away_team.coach
imagestringURL of the team logo on the Data API host (a default image when there is none)

A team id belongs to one sport: the same club in the Premier League and in the Champions League has two ids (one per competition).

Positions - /{sport}/players/positions#

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

GET/api/feeds/{sport}/players/positions

The positions a player's position can hold in this sport (id, name, abbr). Empty for MMA, F1, PGA and horse racing. Full lists: Positions.

curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/epl/players/positions
Example answer
{
  "data": [
    {"id": 4, "name": "A", "abbr": "A"},
    {"id": 2, "name": "D", "abbr": "D"},
    {"id": 1, "name": "G", "abbr": "G"},
    {"id": 3, "name": "M", "abbr": "M"}
  ]
}

Players - /{sport}/players and /{sport}/players/{team_id}#

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

GET/api/feeds/{sport}/players

GET/api/feeds/{sport}/players/{team_id}

The players of the sport (soccer, US sports: every player on a current roster, including injured and NFL practice squad / injured reserve; F1: the drivers; MMA: the fighters; PGA: the golfers; horse racing: the horses). Sorted by name without regard to letter case ("Adou Thiero" before "AK Okereke"), then by id (a stable order). No paging.

Path parameterTypeMeaning
team_id (optional)integeronly the players of that team (an id of the same sport's /teams; another sport's team answers 404 Team not found). 0 or nothing = every player. Ignored for sports without teams (PGA, horse racing: always every player).
curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/nba/players/21
Example answer, trimmed ("..." marks removed parts)
{
  "data": [
    {
      "id": 643,
      "name": "Adou Thiero",
      "salary": 2150,
      "country": "",
      "position": {"id": 6, "name": "F", "abbr": "F"},
      "gs_id": 5060631,
      "team_id": 21,
      "jersey": 1,
      "position_raw": "F",
      "roster_status": "active",
      "injury": {
        "status": "out",
        "note": "Knee - Expected to be out until at least Oct 27",
        "updated_at": "2026-10-26 01:50:06"
      }
    },
    {
      "id": 640,
      "name": "AK Okereke",
      "salary": 3000,
      "country": "",
      "position": {"id": 6, "name": "F", "abbr": "F"},
      "gs_id": 5114350,
      "team_id": 21,
      "jersey": 31,
      "position_raw": "F",
      "roster_status": "active",
      "injury": null
    },
    ...
  ]
}

An NFL player on injured reserve (/nfl/players/52, one entry):

Example answer
{
  "id": 1202,
  "name": "Andrei Iosivas",
  "salary": 3674,
  "country": "",
  "position": {"id": 10, "name": "WR", "abbr": "WR"},
  "gs_id": 4368003,
  "team_id": 52,
  "jersey": 80,
  "position_raw": "WR",
  "roster_status": "injured_reserve",
  "injury": {"status": "injured_reserve", "note": "I.L. - Thumb", "updated_at": "2026-10-26 01:51:33"}
}
FieldTypeMeaning
idintegerthe player id; stays when the player changes team (trade, transfer)
namestringfull name (NBA: full names also where the source abbreviates, e.g. "Rafael Castro"; NHL: a name the box score gives with an initial, "A. Matthews", takes the full name the same game's scoring and penalty rows give that player id; soccer: the squad's name in the word order of the player's latest match sheet when it has the same words, "Lamine Yamal" not "Yamal Lamine")
salaryintegernever null. US sports: thousands of US dollars (41500 = $41.5 M); 3000 when the source has no salary (today every soccer, MLB, MMA, F1, PGA player and every horse)
countrystringnationality as the source writes it (often ""; F1: a 3-letter code, PGA: a country name)
positionobject or listteam sports only: {id, name, abbr} from /players/positions; an empty list [] when the player has none (MMA fighters, F1 drivers). The key is absent for PGA and horse racing.
gs_idintegerthe source id of the player (Ids)
team_idinteger or nullthe player's current team (/teams id); null without a team (MMA, PGA, horses)
jerseyinteger or nullshirt number
position_rawstring or nullthe position as the source gives it (NHL: null, the position comes from the roster group)
roster_statusstring or nullactive, injured_reserve, practice_squad, suspended, inactive, unknown; null for horse racing
injuryobject or nullwhile reported injured / unavailable: status (out, doubtful, questionable, probable, day_to_day, injured_reserve, suspended, unknown), note (text or null; soccer reports have no note), updated_at (UTC); null when fit

A player who leaves every roster is removed from the list after two daily updates; a player who appears in a box score before any roster lists him (call-up, short contract) gets his stat lines at once and joins /players when his team's roster lists him.

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 /settings, stat categories, teams, positions and players taken again (expiry shown with its time 23:59:59, golf beta); ids of the player examples changed with the new answers.