Fantasy Engine Data API 1.0 / Endpoints
Box scores and odds
One fixture in detail: its box score with team lines, player lines and lineups, and its pre-match odds.
Box score - /{sport}/stats/{fixture_id}#
Last updated: 2026-11-25 · v1.0
GET/api/feeds/{sport}/stats/{fixture_id}
One fixture with its team lines, player lines and (soccer) lineups. Works for every fixture, also before the start (then only the fixture and empty lines). While a game is played the lines are updated about every minute.
| Path parameter | Type | Meaning |
|---|---|---|
fixture_id | integer | a fixture id of the same sport (another sport's id or a non-number answers 404 Fixture not found) |
curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/epl/stats/72
Example answer, trimmed ("..." marks removed parts){
"data": {
"fixture": {
"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,
"periods": {}
}
},
"round": {"number": 8, "name": "Week 8"},
"stage_kind": null,
"season_type": "regular",
"start_time_tbd": false,
"confirmed": true,
"stats_complete": true,
"final_pending": false,
"confirmed_at": "2026-10-26 04:30:04",
"stats_updated_at": "2026-10-26 04:30:15",
"kind": "match",
"kind_detail": null,
"participants": null
},
"team_stats": {
"home_team": {
"totalscore": "2",
"team": {
"id": 2,
"name": "Aston Villa",
"abbr": "AST",
"coach": "",
"image": "https://data.fantasyengine.net/storage/df_teams/epl/aston-villa.png"
},
"stats": {
"goals": "2",
"ht_score": "1",
"ft_score": "2",
"et_score": "",
"pen_score": "",
"shots_total": "8",
...
},
"values": {
"goals": 2,
"ht_score": 1,
"ft_score": 2,
"et_score": null,
"pen_score": null,
"shots_total": 8,
...
}
},
"away_team": ...
},
"player_stats": [
{
"player": {
"id": 57,
"name": "John McGinn",
"salary": 3000,
"country": "",
"position": {"id": 3, "name": "M", "abbr": "M"},
"gs_id": 256156,
"team_id": 2,
"jersey": 7,
"position_raw": "M",
"roster_status": "active",
"injury": null
},
"stats": {
"isCaptain": 1,
"isSubst": 0,
"shots_total": "",
"goals": "0",
"assists": "1",
"minutes_played": "66",
"rating": 7.5,
...
},
"values": {
"shots_total": null,
"goals": 0,
"assists": 1,
"minutes_played": 66,
"rating": 7.5,
"own_goals": 0,
"penalty_goals": 0,
"clean_sheet": 0,
"came_on_minute": null,
"went_off_minute": 66,
...
},
"minutes": 66
},
...
],
"lineups": {
"home_team": {
"team_id": 2,
"coach": "Unai Emery",
"starters": [
{
"player_id": 35,
"gs_id": 502022,
"name": "Zion Suzuki",
"position": "G",
"formation_pos": 1,
"jersey": 1,
"minute_in": null,
"minute_out": null
},
...
],
"substitutes": [
{
"player_id": 50,
"gs_id": 154068,
"name": "Ross Barkley",
"position": "M",
"formation_pos": null,
"jersey": 6,
"minute_in": 66,
"minute_out": null
},
...
],
"bench": [
{
"player_id": 34,
"gs_id": 134058,
"name": "Marco Bizot",
"position": "G",
"formation_pos": null,
"jersey": 40,
"minute_in": null,
"minute_out": null
},
...
]
},
"away_team": ...
}
}
}
Field of data | Type | Meaning |
|---|---|---|
fixture | object | the fixture object with the three per-fixture keys (final_pending, confirmed_at, stats_updated_at) and score.detail.periods |
team_stats | object, only when team lines exist | home_team and away_team, each {totalscore, team, stats, values}. totalscore is the team's score as the box score writes it (a string such as "2"; use fixture.score for numbers). Absent for F1, PGA, racing. |
player_stats[] | list (can be empty) | one line per player who appears in the box score (soccer also the unused substitutes, with minutes 0): {player, stats, values, minutes} |
player_stats[].player | object | the player as in /players (a line can name a player /players does not list yet) |
stats | object | the statistics as the source sends them: mostly strings ("2", "" = not given), a few numbers; keys per sport in Stat keys per sport. Some keys hold composite text ("19/33", "1-2", "34-22") |
values | object or null | the same statistics as numbers ("2" -> 2, "7.3" -> 7.3, "" -> null, time texts such as "20:10" kept as text), composites split (passing_comp_att "19/33" -> passing_comp 19, passing_att 33) and derived values added (Stat keys per sport). Use values for calculations. Null only for lines of old seasons written before typed values existed. |
minutes | number or null | minutes played (soccer; NBA; NHL from time on ice, e.g. 20.2); null where the sport has none |
lineups | object or null | soccer: home_team / away_team, each {team_id, coach, starters[], substitutes[], bench[]}; null while no lineup is known and for other sports |
Lineup entries#
starters = the starting eleven, substitutes = players who came on, bench = named
but not used. Each entry: player_id (the /players id, null if not listed yet),
gs_id (the source id), name, position (G, D, M,
A), formation_pos (place in the formation grid as the source numbers it, null when not
given), jersey, minute_in (substitutes), minute_out (replaced players).
Corrections#
- Lines keep changing while the source corrects its box score: before the confirmation a line the final box score no longer lists (credited to the wrong player) is removed; after the confirmation lines are only updated.
- Late corrections (assists, ratings, stat corrections) are written for about 24 hours after the confirmation;
stats_updated_atthen moves (Freshness and caching).
More examples per sport (NBA in play, NFL kicker, MLB pitcher, MMA, F1, PGA) are on the page Per sport.
Odds - /{sport}/odds/{fixture_id}#
Last updated: 2026-11-25 · v1.0
GET/api/feeds/{sport}/odds/{fixture_id}
The pre-match odds of one fixture, every market and every bookmaker, inside the fixture object. Published for the seven soccer competitions and NBA, NFL, MLB, NHL; refreshed every 6 hours for fixtures starting in the next 72 hours. Once a fixture has started its odds no longer change (they are the last prices before the start). MMA, F1, PGA and horse racing have no odds.
| Path parameter | Type | Meaning |
|---|---|---|
fixture_id | integer | a fixture id of the same sport (else 404 Fixture not found) |
curl --compressed -H "X-API-KEY: YOUR_API_KEY" https://data.fantasyengine.net/api/feeds/epl/odds/81
Example answer, trimmed ("..." marks removed parts){
"data": {
"id": 81,
"name": "CHE vs MUN",
"start_date": "2026-10-31 12:30:00",
"status": "Scheduled",
"home_team": ...,
"odds": [
{
"id": 1,
"name": "Match Winner",
"bookmakers": [
{
"id": 1,
"name": "WilliamHill",
"odd": [
[
{
"name": "Home",
"value": "1.85",
"stop": "False",
"line_type": null,
"line": null,
"line_main": null
},
{
"name": "Draw",
"value": "3.80",
"stop": "False",
"line_type": null,
"line": null,
"line_main": null
},
{
"name": "Away",
"value": "3.80",
"stop": "False",
"line_type": null,
"line": null,
"line_main": null
}
]
],
"updated_at": "2026-10-25 13:24:15"
},
...
]
},
{
"id": 4,
"name": "Asian Handicap",
"bookmakers": [
{
"id": 2,
"name": "bet365",
"odd": [
[
{
"name": "Home",
"value": "2.42",
"stop": "False",
"line_type": "handicap",
"line": "-1.25",
"line_main": true
},
{
"name": "Away",
"value": "1.52",
"stop": "False",
"line_type": "handicap",
"line": "-1.25",
"line_main": true
},
{
"name": "Home",
"value": "2.20",
"stop": "False",
"line_type": "handicap",
"line": "-1",
"line_main": true
},
{
"name": "Away",
"value": "1.65",
"stop": "False",
"line_type": "handicap",
"line": "-1",
"line_main": true
},
...
]
],
"updated_at": "2026-10-25 14:18:33"
},
...
]
},
...
],
"gs_id": 4376339,
"status_code": "scheduled",
...,
"kind": "match",
"kind_detail": null,
"participants": null
}
}
A US market (NFL spread, /nfl/odds/1803, one market):
{
"id": 283,
"name": "Handicap",
"bookmakers": [
{
"id": 46,
"name": "William Hill",
"odd": [
[
{
"name": "1",
"handicap": "-3",
"value": "1.91",
"dp3": "1.91",
"us": "-110",
"id": "575:31:4:1550",
"line_type": "handicap",
"line": "-3",
"line_main": true
},
{
"name": "2",
"handicap": "+3",
"value": "1.91",
"dp3": "1.91",
"us": "-110",
"id": "575:31:4:1679",
"line_type": "handicap",
"line": "-3",
"line_main": true
}
]
],
"updated_at": "2026-10-24 23:59:27"
},
...
]
}
A player prop (an NBA game; the player and line are in the price name):
{
"id": 17,
"name": "Player Points",
"bookmakers": [
{
"id": 2,
"name": "William Hill",
"odd": [
[
{
"name": "Moussa Diabate Over:8.5",
"value": "1.83",
"dp3": "1.83",
"us": "-121",
"id": "36:31:23726:631331",
"line_type": null,
"line": null,
"line_main": null
},
{
"name": "Moussa Diabate Under:8.5",
"value": "1.91",
"dp3": "1.91",
"us": "-110",
"id": "36:31:23726:631332",
"line_type": null,
"line": null,
"line_main": null
},
...
]
],
"updated_at": "2026-10-26 14:36:03"
},
...
]
}
| Field | Type | Meaning |
|---|---|---|
odds | list, absent when the fixture has no odds | the markets |
odds[].id, .name | integer, string | the market ("Match Winner", "Asian Handicap", "Goals Over/Under", "Both Teams To Score", "Home/Away", "Handicap", "Total", "Player Points" ...); the id is stable for the same market of the sport (soccer has about 100 markets per match, an NBA game with player props about 190) |
odds[].bookmakers[] | list | {id, name, odd, updated_at}: id stable per bookmaker |
odd | list of lists | this bookmaker's prices for the market: one list of prices (a price is an object) |
price name | string | the outcome: Home / Draw / Away, Over / Under, 1 / 2 (US: home / away), a player prop "Moussa Diabate Over:8.5" ... |
price value | string | decimal odds ("1.85") |
price stop | string, soccer | "True" when the bookmaker suspended the price |
price dp3, us, id | string, US sports | decimal odds to 3 places, American odds ("-154", "125"), the bookmaker's price id |
price handicap | string, US spreads | the line of THIS side ("-2.5" for the favourite, "+2.5" for the other side) |
price line_type | string or null | handicap or total for a price of a line market (spread, puck line, Asian handicap, totals, team totals, goals over/under), else null |
price line | string or null | the line the price belongs to ("-1.25", "226.5"); a market with several lines lists each line's prices; group by line |
price line_main | boolean or null | the source's main-line flag (several lines can be flagged); null when not given |
updated_at | string or null | when this bookmaker last changed these prices (UTC; US feeds give one time per game) |
Price attributes are kept as the source writes them (strings); the three line_* keys are
always the last keys of a price. An NFL game with every player prop has about 280 markets (about 2 MB plain): always
ask for gzip.
Change log#
Last updated: 2026-11-25 · v1.0
| Date (GMT+7) | Section | What changed |
|---|---|---|
| 2026-10-27 | all | First 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-30 | all | Re-checked with every API change of those days (see the API history). |
| 2026-11-25 | all | Moved 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; the US odds example is an NFL spread (it was an NBA spread); the player prop stays an earlier example. |