STAT-API

DFS team_stats API

team_statsdfs.team_stats
One row per team per slate game: the team's summed fantasy production for the scoring rule of the slate's setting — total points, per-category point columns, player count, and the team's raw box-score line. NFL and NBA. An NFL team total includes its DST. The fields marked "NBA only" are null on NFL rows; every NFL-only field is null on NBA rows.
GET/api/v1/dfs/team_stats
Requires one of: slate_id or game_id or team_id or slate_date or operator_slate_id — requests satisfying none of these return 400.
Parameters
slate_idquerybigintoptional
Filter to one slate — both teams of every game in it.
operator_slate_idquerybigintoptional
Operator-side slate identifier (DraftKings contest group ID, FanDuel fixtureListId). Resolves to slate_id.
game_idquerybigintoptional
Filter to one game's two team rows across slates.
slate_datequerydateoptional
Slate calendar day (YYYY-MM-DD, US Eastern). Range operators support backtesting windows. Range syntax: slate_date__gte=, slate_date__lte=, slate_date__between=.
team_idquerybigintoptional
Filter to one team across slates.
scoring_formatquerystringoptional
Scoring format code (classic, showdown, single_game).
operator_idquerybigintoptional
Filter by operator: by numeric id (1 = DraftKings, 2 = FanDuel) or name (draftkings, fanduel).
operatorquerystringoptional
Filter by operator: draftkings, fanduel, yahoo (or numeric operator id).
league_idquerybigintoptional
Filter by league (1 = NFL).
limitqueryintegeroptionaldefault 50
Page size. Defaults to 50; max 5000.
from_idquerybigintoptional
Return rows with id strictly greater than this value; page using the previous response's `next_from_id`. Omit on the first page.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/dfs/team_stats?slate_id=676551'
Responses
200team_stats rows matching the declared filter set, wrapped in { team_stats, limit, next_from_id }. next_from_id is the last row's id on a full page — pass it back via ?from_id= to walk the full result; null marks the terminal page.application/jsonshow example ▸
400No declared filter set was satisfied — response body matches MissingRequiredFiltersError; pick one combo from the accepted-sets hint and resend.application/json
Response Schema(61 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint——
e.g. 42549
league_id
bigint——
e.g. 1
operator_id
bigint——
e.g. 2
opponent_team_id
bigint——
e.g. 19
slate_id
bigint—
e.g. 124482
team_id
bigint——
e.g. 19
blocked_kick_fpts
decimalnullable——
e.g. 0.0000
blocked_kicks
integernullable——
e.g. 0
defense_interception_fpts
decimalnullable——
e.g. 0.0000
defensive_interceptions
integernullable——
e.g. 0
defensive_sacks
integernullable——
e.g. 2
defensive_td_fpts
decimalnullable——
e.g. 0.0000
defensive_tds
integernullable——
e.g. 0
extra_point_fpts
decimalnullable——
e.g. 2.0000
extra_pts_made
integernullable——
e.g. 2
fantasy_pts
decimalnullable——
e.g. 89.3000
field_goal_fpts
decimalnullable——
e.g. 3.0000
field_goal_missed_fpts
decimalnullable——
e.g. 0.0000
field_goals_attempted
integernullable——
e.g. 2
field_goals_made
integernullable——
e.g. 1
first_downs
integernullable——
e.g. 21
fumble_lost_fpts
decimalnullable——
e.g. 0.0000
fumble_recovery_fpts
decimalnullable——
e.g. 0.0000
fumbles_lost
integernullable——
e.g. 0
fumbles_recovered
integernullable——
e.g. 0
interception_fpts
decimalnullable——
e.g. 0.0000
interceptions_thrown
integernullable——
e.g. 0
is_home
boolean——
Values:truefalse
kick_return_tds
integernullable——
e.g. 0
passing_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
passing_bonus_fpts
decimalnullable——
e.g. 0.0000
passing_td_fpts
decimalnullable——
e.g. 4.0000
passing_yds
integernullable——
e.g. 215
passing_yds_fpts
decimalnullable——
e.g. 8.6000
player_count
integernullable——
e.g. 39
pts
integernullable——
e.g. 17
pts_allowed_def
integernullable——
e.g. 17
pts_allowed_dst
integernullable——
e.g. 17
pts_allowed_fpts
decimalnullable——
e.g. 1.0000
punt_return_tds
integernullable——
e.g. 0
receiving_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
receiving_bonus_fpts
decimalnullable——
e.g. 0.0000
receiving_td_fpts
decimalnullable——
e.g. 6.0000
receiving_yds
integernullable——
e.g. 215
receiving_yds_fpts
decimalnullable——
e.g. 21.5000
reception_fpts
decimalnullable——
e.g. 11.5000
return_td_fpts
decimalnullable——
e.g. 0.0000
return_yds_fpts
decimalnullable——
e.g. 0.0000
rushing_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
rushing_bonus_fpts
decimalnullable——
e.g. 0.0000
rushing_td_fpts
decimalnullable——
e.g. 0.0000
rushing_yds
integernullable——
e.g. 103
rushing_yds_fpts
decimalnullable——
e.g. 10.3000
sack_fpts
decimalnullable——
e.g. 2.0000
safeties
integernullable——
e.g. 0
safety_fpts
decimalnullable——
e.g. 0.0000
scoring_format
stringnullable—Operator scoring format code (classic, showdown, single_game); null when the format has no fantasy scoring.
Values:classicsingle_gameshowdown
slate_date
date——
e.g. 2021-11-21
total_yds
integernullable——
e.g. 396
turnovers
integernullable——
e.g. 1
GET/api/v1/dfs/team_stats/{id}
Parameters
idpathbigintrequired
Primary key (id) of the team_stat row.
Restores the documented defaults (trial keys only accept the unchanged defaults).
Request
curl -sS --compressed \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  'https://api.stat-api.com/api/v1/dfs/team_stats/4245706'
Responses
200Single team_stat row.application/jsonshow example ▸
404Row not found.
Response Schema(61 fields)show schema ▸
FieldTypeReferencesDescription
idkey
bigint—Primary Key
game_id
bigint——
e.g. 42549
league_id
bigint——
e.g. 1
operator_id
bigint——
e.g. 2
opponent_team_id
bigint——
e.g. 19
slate_id
bigint—
e.g. 124482
team_id
bigint——
e.g. 19
blocked_kick_fpts
decimalnullable——
e.g. 0.0000
blocked_kicks
integernullable——
e.g. 0
defense_interception_fpts
decimalnullable——
e.g. 0.0000
defensive_interceptions
integernullable——
e.g. 0
defensive_sacks
integernullable——
e.g. 2
defensive_td_fpts
decimalnullable——
e.g. 0.0000
defensive_tds
integernullable——
e.g. 0
extra_point_fpts
decimalnullable——
e.g. 2.0000
extra_pts_made
integernullable——
e.g. 2
fantasy_pts
decimalnullable——
e.g. 89.3000
field_goal_fpts
decimalnullable——
e.g. 3.0000
field_goal_missed_fpts
decimalnullable——
e.g. 0.0000
field_goals_attempted
integernullable——
e.g. 2
field_goals_made
integernullable——
e.g. 1
first_downs
integernullable——
e.g. 21
fumble_lost_fpts
decimalnullable——
e.g. 0.0000
fumble_recovery_fpts
decimalnullable——
e.g. 0.0000
fumbles_lost
integernullable——
e.g. 0
fumbles_recovered
integernullable——
e.g. 0
interception_fpts
decimalnullable——
e.g. 0.0000
interceptions_thrown
integernullable——
e.g. 0
is_home
boolean——
Values:truefalse
kick_return_tds
integernullable——
e.g. 0
passing_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
passing_bonus_fpts
decimalnullable——
e.g. 0.0000
passing_td_fpts
decimalnullable——
e.g. 4.0000
passing_yds
integernullable——
e.g. 215
passing_yds_fpts
decimalnullable——
e.g. 8.6000
player_count
integernullable——
e.g. 39
pts
integernullable——
e.g. 17
pts_allowed_def
integernullable——
e.g. 17
pts_allowed_dst
integernullable——
e.g. 17
pts_allowed_fpts
decimalnullable——
e.g. 1.0000
punt_return_tds
integernullable——
e.g. 0
receiving_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
receiving_bonus_fpts
decimalnullable——
e.g. 0.0000
receiving_td_fpts
decimalnullable——
e.g. 6.0000
receiving_yds
integernullable——
e.g. 215
receiving_yds_fpts
decimalnullable——
e.g. 21.5000
reception_fpts
decimalnullable——
e.g. 11.5000
return_td_fpts
decimalnullable——
e.g. 0.0000
return_yds_fpts
decimalnullable——
e.g. 0.0000
rushing_2pt_conversion_fpts
decimalnullable——
e.g. 0.0000
rushing_bonus_fpts
decimalnullable——
e.g. 0.0000
rushing_td_fpts
decimalnullable——
e.g. 0.0000
rushing_yds
integernullable——
e.g. 103
rushing_yds_fpts
decimalnullable——
e.g. 10.3000
sack_fpts
decimalnullable——
e.g. 2.0000
safeties
integernullable——
e.g. 0
safety_fpts
decimalnullable——
e.g. 0.0000
scoring_format
stringnullable—Operator scoring format code (classic, showdown, single_game); null when the format has no fantasy scoring.
Values:classicsingle_gameshowdown
slate_date
date——
e.g. 2021-11-21
total_yds
integernullable——
e.g. 396
turnovers
integernullable——
e.g. 1