Skip to content

Stat Entity

A statEntityID identifies who’s performance on a given statistic we’re tracking. In other words, if the statID tracks WHAT we’re tracking, the statEntityID tracks WHO we’re tracking.

In the context of odds data, the statEntityID determines who’s performance on a given statID dictates the outcome of the bet.

Possible Values

ValueDescription
allTracks the combined performance of all teams/participants. Example: an over/under bet on the total points scored in a game uses all because the bet tracks points scored by both teams combined.
homeTracks the performance of the home team.
awayTracks the performance of the away team.
playerIDWhen tracking player-specific stats or player prop bets, the statEntityID will be a specific playerID.
teamIDUsed only in Events where type = tournament. In a normal event (type = match), the statEntityID will be home or away. However, in tournament-type events (like a Golf tournament), there isn’t a home and away team, so the statEntityID will be a specific teamID.

Usage in Odds

In odds data, the statEntityID determines who’s performance on a given statID dictates the outcome of the bet.

Example: If you’re looking at odds for an over-under rebounds bet (sideID = over, betTypeID = ou, statID = rebounds):

  • If statEntityID = LEBRON_JAMES_LA_LAKERS → The bet is on LeBron James’ individual rebounds
  • If statEntityID = home → The bet is on the home team’s total rebounds
  • If statEntityID = all → The bet is on total rebounds from both teams combined

Fixed statEntityID Values

In some cases, the statEntityID has a fixed value determined by the betTypeID and sideID combination. In these cases, statEntityID is somewhat redundant with sideID but is included for consistency.

Why? For example, if you’re taking the home team on a spread bet, the outcome of your bet is always dictated by the performance of the home team.

betTypeIDsideIDstatEntityID
mlhomehome
mlawayaway
sphomehome
spawayaway
ml3wayhomehome
ml3wayawayaway
ml3waydrawall
ml3wayhome+drawhome
ml3wayaway+drawaway
ml3waynot_drawall
propside1side1
propside2side2

TIP

For more details on bet types and sides, see the Bet Types and Sides documentation.