Major League Baseball team seasons since 1871
Every major-league team season since 1871 — wins, losses, runs scored and allowed, finish, home attendance and postseason result. One row per team per season, including the Negro Leagues that SABR classifies as major leagues.
Columns
Stable keys — use them in the API, SQL and code
| Key | Name | Type | Description |
|---|---|---|---|
| year | Season | year | — |
| league | League | string | League code, e.g. AL, NL, NA (National Association), AA (American Association), NN2 (Negro National League II). |
| league_name | League name | string | Full league name from the Lahman documentation. |
| division | Division | string | East, Central or West (since 1969); empty before divisions existed. |
| team | Team | string | Team name as used that season. |
| team_id | Team ID | string | Lahman team code for that season. |
| franchise | Franchise | string | Franchise the team season belongs to (its current or final name). |
| franchise_id | Franchise ID | string | — |
| games | G | integer | Games played. |
| wins | W | integer | — |
| losses | L | integer | — |
| ties | T | integer | Tied games (games played minus wins minus losses). |
| win_pct | Win % | number | Wins ÷ (wins + losses). |
| rank | Finish | integer | Final position in the division (league before 1969). |
| runs_scored | Runs scored | integer | — |
| runs_allowed | Runs allowed | integer | — |
| run_differential | Run diff. | integer | Runs scored minus runs allowed. |
| home_runs | HR | integer | Home runs hit by the team's batters. |
| batting_avg | AVG | number | Team batting average (hits ÷ at-bats). |
| era | ERA | number | Team earned run average (earned runs × 27 ÷ outs recorded). |
| attendance | Home attendance | integer | Total paid attendance at home games. |
| park | Home park | string | — |
| division_winner | Won division | boolean | — |
| wild_card | Wild card | boolean | Reached the postseason as a wild card (from 1995). |
| league_champion | Pennant | boolean | Won the league pennant (league championship). |
| world_series_champion | Won World Series | boolean | — |
| postseason | Postseason result | string | Furthest postseason series reached and its outcome. |
More in Sports
ATP singles match results, 2016–present
Every men's singles match at ATP tour level in the seasons from 2016 to the present — Grand Slams, Masters, other ATP tour events, the season-ending finals, the Olympics, team events and Davis Cup ties — with round, both players' countries and rankings, score and match length. One row per match.
Tennis singles titles and win–loss records by player (ATP and WTA, Open Era)
Every player with at least one tour-level singles match on the ATP or WTA tour since 1968: tour-level titles, Grand Slam titles, finals, match wins and losses and win percentage, computed from the match results. One row per player per tour.
NHL career statistics of every skater
Career regular-season NHL totals for every skater who has played in the league since 1917, as aggregated by the NHL. One row per player.
NBA players (all-time)
People recorded on Wikidata as having played for an NBA or BAA team since 1946, with birth date and place, citizenship, position, height, weight, years and number of franchises, draft details and Hall of Fame status. One row per player.
NFL regular-season standings, every season since 1920
Final regular-season standings of every NFL season (APFA in 1920–21) whose standings pass consistency checks: one row per team per season with wins, losses, ties, winning percentage, points for and against, division, conference and playoff seed.
NBA regular-season standings, every season since 1946–47
Final regular-season standings of every NBA (and BAA, 1946–49) season: one row per team per season with wins, losses, winning percentage, games behind, division, conference, conference rank and the clinch code printed in the standings.