ESPN Box Score Scraper - NBA, NFL, MLB, NHL Player Game Stats avatar

ESPN Box Score Scraper - NBA, NFL, MLB, NHL Player Game Stats

Pricing

from $1.90 / 1,000 stat line returneds

Go to Apify Store
ESPN Box Score Scraper - NBA, NFL, MLB, NHL Player Game Stats

ESPN Box Score Scraper - NBA, NFL, MLB, NHL Player Game Stats

Player and team box scores for every NBA, WNBA, NFL, MLB, NHL and college football and basketball game: points, rebounds, assists, yards, touchdowns, hits, strikeouts, innings, goals, saves, time on ice. One row per player per game, by date, team, player or game. Finished and live games.

Pricing

from $1.90 / 1,000 stat line returneds

Rating

0.0

(0)

Developer

NeverEmpty

NeverEmpty

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Get the full box score of every game as flat rows, one row per player per game: points, rebounds, assists and minutes in the NBA, passing, rushing and receiving yards in the NFL, hits, runs, strikeouts and innings pitched in MLB, goals, shots, saves and time on ice in the NHL, plus team totals. Pick a date or a date range, a team, a player or a single game, for the NBA, WNBA, NFL, MLB, NHL and college football and basketball.

Box scores feed fantasy lineups, player prop models, daily recap posts, scouting sheets and season stat databases. This Actor puts last night's games into a spreadsheet, database or bot in one run, with every number already split into its own field, so you do not have to copy box scores by hand or pull "8-21" apart into makes and attempts.

What you get

  • Every player who played - one row per player per stat group: points, rebounds, assists, minutes, plusMinus in basketball; passing, rushing, receiving, defensive, kicking and more in football; batting and pitching in baseball; forwards, defenses and goalies in hockey.
  • Numbers ready to add up - shooting lines such as "8-21" come as fieldGoalsMade and fieldGoalsAttempted, innings pitched "5.2" also comes as outsPitched (17), and times such as "59:35" also come in seconds (timeOnIceSeconds, possessionTimeSeconds).
  • The game around each line - gameDate, team, opponent, teamScore, opponentScore, result (W, L or T), homeAway, season, seasonType (preseason, regular season or playoffs) and gameStatus.
  • Player details - player, playerId, position, jersey, starter and ejected.
  • Team totals (on by default) - one row per team with totals such as rebounds, turnovers and points in the paint, total yards, third-down conversions and attempts, penalties and possession time, power plays and faceoffs, or team batting, pitching and fielding.
  • Players who did not play, if you want them - with the reason (for example coach's decision or injury).
  • Live games - a game in progress returns its current numbers with result empty, so you can follow a night as it happens.

Leagues

SportShort names
Basketballnba, wnba, ncaab (men's college basketball, Division I)
Footballnfl, ncaaf (college football, FBS)
Baseballmlb
Hockeynhl

Common names work as well: "college football", "college basketball", "cfb", "cbb".

Why this Actor

  • The whole night in one run. Give a date (or nothing for yesterday) and every finished game of that day comes back, not one game at a time.
  • Only the teams or players you follow. teams reads only the games those teams played; players keeps only those players' lines. You pay only for the rows returned.
  • Up to 62 days per run for season backfills: one run per two months builds a full season of player game logs.
  • Paste a game page address from espn.com to get just that game.
  • Every empty result explains itself in a free row: a day without games, games that have not started or were postponed, an unknown league, a name that matched nothing, a refused or unreadable page.

Input

FieldWhat it does
leaguesOne or more short names from the table above.
startDateFirst game day, YYYY-MM-DD (US Eastern date, as on the schedule). Empty = yesterday.
endDateLast game day. Empty = the same day as startDate. At most 62 days per run.
gameIdsOptional game page addresses (https://www.espn.com/nba/game/_/gameId/401909994) or bare game IDs. With games and no dates, only these games are read.
teamsOnly games of these teams, and only their rows. Names, nicknames, cities or abbreviations.
playersOnly these players (name, part of a name, or player ID). Team total rows are left out.
includeTeamStatsOn (default) = add one team total row per team per game.
includeDidNotPlayOff (default). On = also add players who did not play, with the reason.
maxRowsStop after this many rows.

Example - every NBA and NHL box score from last night:

{
"leagues": ["nba", "nhl"]
}

Example - one player's game log for a month:

{
"leagues": ["nba"],
"startDate": "2026-11-01",
"endDate": "2026-11-30",
"teams": ["Magic"],
"players": ["Franz Wagner"]
}

Output

One row per player per stat group per game:

{
"league": "nba",
"gameId": "401909994",
"gameDate": "2026-11-17T00:00Z",
"season": 2027,
"seasonType": 2,
"gameStatus": "Final",
"team": "Orlando Magic",
"teamAbbreviation": "ORL",
"homeAway": "away",
"teamScore": 115,
"opponent": "Boston Celtics",
"opponentScore": 105,
"result": "W",
"kind": "player",
"statGroup": "player",
"player": "Franz Wagner",
"playerId": "4566434",
"position": "F",
"starter": true,
"stats": {
"minutes": 38,
"points": 21,
"rebounds": 8,
"assists": 9,
"fieldGoalsMade": 8,
"fieldGoalsAttempted": 21,
"threePointFieldGoalsMade": 0,
"threePointFieldGoalsAttempted": 2,
"freeThrowsMade": 5,
"freeThrowsAttempted": 5,
"plusMinus": 14
},
"gameUrl": "https://www.espn.com/nba/game/_/gameId/401909994",
"status": "ok"
}

gameDate is the start time in UTC, so an evening game in the US carries the next day's date. seasonType is 1 for the preseason, 2 for the regular season and 3 for the playoffs. A team total row has kind: "team", player: null and statGroup team (or team-batting, team-pitching, team-fielding in MLB).

Free rows

Rows with a status other than ok explain an empty or shorter result and are never charged:

statusMeaning
no-gamesThere were no games of that league on that day.
not-played-yetThe games had not started when the run read them, so there is no box score yet.
no-box-scoreA game was postponed or canceled, or has no player box score.
no-such-leagueA league name was not recognised, or the input had no league.
invalid-inputA date was not a real YYYY-MM-DD date, the range was backwards or longer than 62 days, or a game could not be recognised.
no-filter-matchNone of the teams or players you asked for were found.
blockedThe page refused the request after three attempts, or robots.txt did not allow it.
unreadableThe page did not answer with a readable box score or schedule.
row-limit-reachedmaxRows was reached; the rest were not returned and not charged.
budget-reachedThe run hit the maximum total charge you set; the rest were not returned and not charged.

Pricing

You pay per row returned (stat-line-returned). An NBA game is about 25 rows with team totals, an NHL game about 40, an NFL game about 85 (one row per player per stat group). Free rows are not charged, and there is no start fee. Use players or turn off includeTeamStats to pay for fewer rows.

Tips

  • Schedule a run every morning with no dates: it reads yesterday, so a fantasy or stats sheet stays current on its own.
  • Run in the evening with today's date to get live numbers from games in progress.
  • Combine teams and players for a cheap player game log: only that team's games are read.

More sports and odds data from the same developer

Thanks for using this Actor

If this Actor saved you time, a short review helps other people find it. If something does not work as expected, open an issue on the Actor page and it will be looked at.