DEV Community

Ken-Mutisya
Ken-Mutisya

Posted on

Set a prop line at a player's average and the over hits 41-49%. Grading every NBA game log of the season from ESPN's API

Prop bettors check one number before anything else: the player's average. Line 26.5, he averages 26.3, so it's a coin flip.

It isn't. I pulled the full 2026-27 game log of every rostered NBA player, set a line at each player's own season average, and graded every game. The over loses on every stat.

Getting game logs from ESPN

ESPN's player pages run on a public JSON API with no key. Two calls per player:

GET https://site.web.api.espn.com/apis/search/v2?query=Nikola%20Jokic&limit=5
GET https://site.web.api.espn.com/apis/common/v3/sports/basketball/nba/athletes/3112335/gamelog
Enter fullscreen mode Exit fullscreen mode

The search result's uid (s:40~l:46~a:3112335) carries the athlete id, and its web link carries the league (espn.com/nba/player/...). The game log has three parts you need to join:

  • names: the stat columns, e.g. ["minutes", "fieldGoalsMade-fieldGoalsAttempted", ..., "totalRebounds", "assists", ..., "points"]
  • events: one entry per game id with gameDate, opponent, atVs (@ = away) and gameResult
  • seasonTypes[].categories[].events[]: each game's stats array, in the same order as names
const H = { 'User-Agent': 'Mozilla/5.0' };
const log = await (await fetch(
  'https://site.web.api.espn.com/apis/common/v3/sports/basketball/nba/athletes/3112335/gamelog', { headers: H },
)).json();

const games = log.seasonTypes.flatMap((st) => st.categories.flatMap((c) => c.events))
  .map((e) => ({ ...log.events[e.eventId], stats: Object.fromEntries(log.names.map((n, i) => [n, e.stats[i]])) }))
  .sort((a, b) => b.gameDate.localeCompare(a.gameDate));

for (const g of games.slice(0, 5)) console.log(g.gameDate.slice(0, 10), g.atVs, g.opponent.abbreviation, g.stats.points);
Enter fullscreen mode Exit fullscreen mode

Gotchas:

  • Merge every seasonTypes block. In October the first block can be the postseason, not the regular season.
  • Combined columns like threePointFieldGoalsMade-threePointFieldGoalsAttempted hold "4-9". Split on the dash for threes made.
  • Same endpoint for football/nfl, baseball/mlb and hockey/nhl, but the columns change by position (a QB's log has passingYards, a pitcher's has innings and strikeouts).

The test

For every player with 10+ games and a meaningful average (10+ points, 4+ rebounds, 3+ assists, 1+ three, 20+ PRA), I set the line at the nearest half-point to his own season average and counted overs and unders across all his games.

Stat Players Games Over hits
Points 166 3,748 47.0%
Rebounds 156 3,552 46.1%
Assists 106 2,294 45.7%
Threes made 219 4,760 40.9%
Points + rebounds + assists 122 2,808 49.0%

No stat gets to 50%, and threes are nowhere close.

Why: the median sits below the mean

A player's scoring is skewed. Most nights cluster a bit below his average, and a few big nights pull the average up. For 111 of 166 scorers the median is below the mean, and for threes it's 164 of 219. Threes are the most skewed stat in the set: picture a shooter who averages 2.8 by making 2 on most nights and 6 now and then.

Some examples from this season:

Player Avg pts Line Over-under Median
Jayson Tatum 26.3 26.5 7-12 24
Jamal Murray 23.9 23.5 8-13 21
Jalen Brunson 24.4 24.5 10-13 23
Tyrese Maxey 23.6 23.5 14-9 26
Giannis Antetokounmpo 26.2 26.5 12-8 28

Maxey and Giannis go the other way: their medians sit above their averages. For players like them, "over the average" really has been better than a coin flip.

PRA comes closest to 50% because adding three stats together smooths the skew out.

What to do with it

  • Compare the line to the median, not the average. A 26.5 line on a player whose median is 24 is not a coin flip.
  • Threes are the most mispriced-looking stat on paper. Books know this and shade the prices; check what the under costs.
  • Look at the last 10, not just the season. Role changes and injuries move a player's median fast.

Small print: this is one season's first six weeks (10 to 23 games per player), and books do not set lines exactly at the average. They set them where they expect balanced action, at a price.

Data and a ready-made grader

All 2,590 player-stat game logs (points, rebounds, assists, threes and PRA for every NBA player, one row per player-game) are free on Kaggle: NBA 2026-27 Player Game Logs for Props.

To grade a card before tipoff, I put the grader on Apify as Player Prop Hit Rates. Give it "Jayson Tatum, points, 26.5" and it returns the hit rate over the last 10, last-5 rate, average, median, home/away splits, streak and every game. It works the same way for the NFL, MLB and NHL.

Do you check medians, or just the average?

Top comments (0)