Learn R Programming

baseballr

baseballr is a package written for R focused on baseball analysis. It includes functions for acquiring data from a range of sources — the MLB Stats API, ESPN (MLB and NCAA college baseball), Fox Sports, FanGraphs.com, Baseball-Reference.com, baseballsavant.mlb.com, the NCAA stats site, Spotrac, the Chadwick Bureau register, and Retrosheet. It also includes functions for calculating metrics, such as wOBA, FIP, and team-level consistency over custom time frames.

You can read more about some of the functions and how to use them at its official site as well as this Hardball Times article.

Installation

You can install the CRAN version of baseballr with:

install.packages("baseballr")

You can install the released version of baseballr from GitHub with:

# You can install using the pak package using the following code:
if (!requireNamespace('pak', quietly = TRUE)){
  install.packages('pak')
}
pak::pak("BillPetti/baseballr")
# Alternatively, using the devtools package:
if (!requireNamespace('devtools', quietly = TRUE)){
  install.packages('devtools')
}
devtools::install_github(repo = "BillPetti/baseballr")

For experimental functions in development, you can install the development branch:

# install.packages("devtools")
devtools::install_github("BillPetti/baseballr", ref = "development_branch")

Functionality

The package consists of two main sets of functions: data acquisition and metric calculation.

Data acquisition spans the MLB Stats API (mlb_*(), including situational splits via sit_codes), Baseball Savant / Statcast (statcast_search() for MLB plus statcast_search_minors() and statcast_search_wbc() for the minor-league and World Baseball Classic routes), FanGraphs (fg_*()), Baseball Reference (bref_*()), ESPN (espn_mlb_*(), espn_college_baseball_*()), Fox Sports (fox_mlb_*()), NCAA (ncaa_*()), Spotrac (sptrc_*()), the Chadwick Bureau register (chadwick_*()), and Retrosheet (retrosheet_data()). Pre-computed season datasets — NCAA schedules/pbp, umpire ids, and eleven MLB model datasets (expected stats, Stuff+, OAA, catcher framing, run/win expectancy, and more) — load from the SportsDataverse data releases via the load_*() family.

For example, if you want to see the standings for a specific MLB division on a given date, you can use the bref_standings_on_date() function. Just pass the year, month, day, and division you want:

library(baseballr)
library(dplyr)
bref_standings_on_date("2015-08-01", "NL East", from = FALSE)
## ── MLB Standings on Date data from baseball-reference.com ─── baseballr 2.0.0 ──

## ℹ Data updated: 2026-08-26 15:15:59 EDT

## # A tibble: 5 × 8
##   Tm        W     L `W-L%` GB       RS    RA `pythW-L%`
##   <chr> <int> <int>  <dbl> <chr> <int> <int>      <dbl>
## 1 WSN      54    48  0.529 --      422   391      0.535
## 2 NYM      54    50  0.519 1.0     368   373      0.494
## 3 ATL      46    58  0.442 9.0     379   449      0.423
## 4 MIA      42    62  0.404 13.0    370   408      0.455
## 5 PHI      41    64  0.39  14.5    386   511      0.374

Right now the function works as far as back as 1994, which is when both leagues split into three divisions.

You can also pull data for all hitters over a specific date range. Here are the results for all hitters from August 1st through October 3rd during the 2015 season:

data <- bref_daily_batter("2015-08-01", "2015-10-03") 
data %>%
  dplyr::glimpse()
## Rows: 764
## Columns: 30
## $ bbref_id <chr> "machama01", "duffyma01", "altuvjo01", "eatonad02", "choosh01…
## $ season   <int> 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2…
## $ Name     <chr> "Manny Machado", "Matt Duffy", "Jose Altuve", "Adam Eaton", "…
## $ Age      <dbl> 22, 24, 25, 26, 32, 21, 27, 28, 36, 28, 29, 29, 27, 29, 27, 2…
## $ Level    <chr> "Maj-AL", "Maj-NL", "Maj-AL", "Maj-AL", "Maj-AL", "Maj-AL", "…
## $ Team     <chr> "Baltimore", "San Francisco", "Houston", "Chicago", "Texas", …
## $ G        <dbl> 59, 59, 57, 58, 58, 58, 59, 58, 59, 57, 55, 57, 57, 58, 56, 5…
## $ PA       <dbl> 266, 264, 262, 262, 260, 259, 259, 258, 257, 257, 255, 255, 2…
## $ AB       <dbl> 237, 248, 244, 230, 211, 224, 239, 235, 231, 233, 213, 218, 2…
## $ R        <dbl> 36, 33, 30, 37, 48, 35, 32, 29, 37, 27, 50, 37, 36, 25, 38, 4…
## $ H        <dbl> 66, 71, 81, 74, 71, 79, 54, 66, 75, 48, 65, 56, 61, 51, 78, 5…
## $ X1B      <dbl> 43, 54, 53, 56, 47, 51, 34, 37, 48, 30, 34, 32, 35, 33, 66, 2…
## $ X2B      <dbl> 10, 12, 19, 12, 14, 17, 6, 17, 16, 11, 13, 13, 15, 10, 7, 13,…
## $ X3B      <dbl> 0, 2, 3, 1, 1, 4, 1, 0, 2, 1, 2, 4, 0, 1, 3, 0, 4, 0, 1, 1, 0…
## $ HR       <dbl> 13, 3, 6, 5, 9, 7, 13, 12, 9, 6, 16, 7, 11, 7, 2, 20, 9, 8, 8…
## $ RBI      <dbl> 32, 30, 18, 31, 34, 32, 27, 40, 53, 21, 50, 19, 31, 39, 23, 4…
## $ BB       <dbl> 26, 15, 10, 23, 39, 18, 16, 17, 21, 21, 34, 33, 21, 39, 12, 3…
## $ IBB      <dbl> 1, 0, 1, 1, 1, 0, 0, 6, 1, 1, 0, 1, 1, 5, 0, 4, 3, 3, 7, 2, 2…
## $ uBB      <dbl> 25, 15, 9, 22, 38, 18, 16, 11, 20, 20, 34, 32, 20, 34, 12, 35…
## $ SO       <dbl> 42, 35, 28, 55, 51, 38, 68, 56, 29, 53, 46, 62, 41, 48, 27, 7…
## $ HBP      <dbl> 2, 0, 4, 5, 8, 1, 3, 5, 1, 1, 2, 3, 3, 1, 1, 6, 1, 3, 4, 1, 0…
## $ SH       <dbl> 0, 0, 1, 2, 1, 11, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, …
## $ SF       <dbl> 1, 1, 3, 2, 1, 5, 1, 1, 4, 2, 5, 1, 2, 2, 3, 0, 3, 2, 3, 4, 3…
## $ GDP      <dbl> 5, 9, 6, 1, 1, 4, 2, 2, 9, 7, 5, 1, 4, 8, 1, 2, 3, 10, 5, 4, …
## $ SB       <dbl> 6, 8, 11, 9, 2, 10, 0, 0, 0, 3, 3, 4, 5, 4, 24, 2, 1, 0, 6, 0…
## $ CS       <dbl> 4, 0, 4, 4, 0, 2, 0, 0, 0, 1, 0, 1, 3, 2, 7, 2, 3, 0, 2, 0, 0…
## $ BA       <dbl> 0.279, 0.286, 0.332, 0.322, 0.337, 0.353, 0.226, 0.281, 0.325…
## $ OBP      <dbl> 0.353, 0.326, 0.364, 0.392, 0.456, 0.395, 0.282, 0.341, 0.377…
## $ SLG      <dbl> 0.485, 0.387, 0.508, 0.448, 0.540, 0.558, 0.423, 0.506, 0.528…
## $ OPS      <dbl> 0.839, 0.713, 0.872, 0.840, 0.996, 0.953, 0.705, 0.848, 0.906…

In terms of metric calculation, the package allows the user to calculate the consistency of team scoring and run prevention for any year using team_consistency():

team_consistency(2015)
## # A tibble: 30 × 5
##    Team  Con_R Con_RA Con_R_Ptile Con_RA_Ptile
##    <chr> <dbl>  <dbl>       <dbl>        <dbl>
##  1 ARI    0.37   0.36          17           15
##  2 ATL    0.41   0.4           88           63
##  3 BAL    0.4    0.38          70           42
##  4 BOS    0.39   0.4           52           63
##  5 CHC    0.38   0.41          30           85
##  6 CHW    0.39   0.4           52           63
##  7 CIN    0.41   0.36          88           15
##  8 CLE    0.41   0.4           88           63
##  9 COL    0.35   0.34           7            3
## 10 DET    0.39   0.38          52           42
## # ℹ 20 more rows

You can also calculate wOBA per plate appearance and wOBA on contact for any set of data over any date range, provided you have the data available.

Simply pass the proper data frame to woba_plus:

data %>%
  dplyr::filter(PA > 200) %>%
  woba_plus %>%
  dplyr::arrange(desc(wOBA)) %>%
  dplyr::select(Name, Team, season, PA, wOBA, wOBA_CON) %>%
  dplyr::glimpse()
## Rows: 117
## Columns: 6
## $ Name     <chr> "Edwin Encarnación", "Bryce Harper", "David Ortiz", "Joey Vot…
## $ Team     <chr> "Toronto", "Washington", "Boston", "Cincinnati", "Baltimore",…
## $ season   <int> 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2015, 2…
## $ PA       <dbl> 216, 248, 213, 251, 253, 260, 245, 255, 223, 241, 223, 259, 2…
## $ wOBA     <dbl> 0.490, 0.450, 0.449, 0.445, 0.434, 0.430, 0.430, 0.422, 0.410…
## $ wOBA_CON <dbl> 0.555, 0.529, 0.541, 0.543, 0.617, 0.495, 0.481, 0.494, 0.459…

You can also generate these wOBA-based stats, as well as FIP, for pitchers using the fip_plus() function:

bref_daily_pitcher("2015-04-05", "2015-04-30") %>% 
  fip_plus() %>% 
  dplyr::select(season, Name, IP, ERA, SO, uBB, HBP, HR, FIP, wOBA_against, wOBA_CON_against) %>%
  dplyr::arrange(dplyr::desc(IP)) %>% 
  head(10)
## ── MLB Daily Pitcher data from baseball-reference.com ─────── baseballr 2.0.0 ──

## ℹ Data updated: 2026-08-26 15:18:54 EDT

## # A tibble: 10 × 11
##    season Name               IP   ERA    SO   uBB   HBP    HR   FIP wOBA_against
##     <int> <chr>           <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>        <dbl>
##  1   2015 Johnny Cueto     37    1.95    38     4     2     3  2.62        0.21 
##  2   2015 Dallas Keuchel   37    0.73    22    11     0     0  2.84        0.169
##  3   2015 Sonny Gray       36.1  1.98    25     6     1     1  2.69        0.218
##  4   2015 Mike Leake       35.2  3.03    25     7     0     5  4.16        0.24 
##  5   2015 Félix Hernández  34.2  1.82    36     6     3     1  2.2         0.225
##  6   2015 Corey Kluber     34    4.24    36     5     2     2  2.4         0.295
##  7   2015 Jake Odorizzi    33.2  2.41    26     8     1     0  2.38        0.213
##  8   2015 Josh Collmenter  32.2  2.76    16     3     0     1  2.82        0.29 
##  9   2015 Bartolo Colón    32.2  3.31    25     1     0     4  3.29        0.28 
## 10   2015 Zack Greinke     32.2  1.93    27     7     1     2  3.01        0.24 
## # ℹ 1 more variable: wOBA_CON_against <dbl>

Issues

Please leave any suggestions or bugs in the Issues section.

Pull Requests

Pull request are welcome, but I cannot guarantee that they will be accepted or accepted quickly. Please make all pull requests to the development branch for review.

Breaking Changes

Full News on Releases

Follow the SportsDataverse (@SportsDataverse) on Twitter and star this repo

Our Authors

  • Bill Petti (@BillPetti)

  • Saiem Gilani (@saiemgilani)

Our Contributors (they’re awesome)

  • Ben Baumer (@BaumerBen)

  • Ben Dilday (@BenDilday)

  • Robert Frey (@RobertFrey40)

  • Camden Kay (@k_camden)

Citations

To cite the baseballr R package in publications, use:

BibTex Citation

@misc{petti_gilani_2021,
  author = {Bill Petti and Saiem Gilani},
  title = {baseballr: The SportsDataverse's R Package for Baseball Data.},
  url = {https://billpetti.github.io/baseballr/},
  year = {2021}
}

Copy Link

Version

Install

install.packages('baseballr')

Monthly Downloads

2,009

Version

2.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Saiem Gilani

Last Published

August 26th, 2026

Functions in baseballr (2.0.0)

playername_lookup

Look up Baseball Player Name by ID
bref_read_html

Read HTML from Baseball Reference with retry on rate-limit (429)
chadwick_player_lu

Download the Chadwick Bureau's public register of baseball players
code_barrel

Helper for determining whether a batted ball is a "barrel"
playerid_lookup

Look up Baseball Player IDs by Player Name
bref_daily_batter

Scrape Batter Performance Data Over a Custom Time Frame
bref_daily_pitcher

Scrape Pitcher Performance Data Over a Custom Time Frame
.capture_args

Capture the calling function's formal arguments
daily_pitcher_bref

(legacy) Scrape Pitcher Performance Data Over a Custom Time Frame
column_structure_draft_mlb

Column structure of the MLB Draft data
daily_batter_bref

(legacy) Scrape Batter Performance Data Over a Custom Time Frame
csv_from_url

Load .csv / .csv.gz file from a remote connection
.interp_braces

Minimal brace-template interpolator
edge_frequency

Edge Percentage Frequency
edge_code

Edge Code
.report_api_warning

Report an API-call warning with full context
.retry_request

Perform an HTTP GET request with retry logic (ESPN)
.ncaa_resolve_season_team_id

Resolve a stats.ncaa.org season-team id
.resp_text

Extract an httr2 response body as UTF-8 text
.report_api_error

Report an API-call error with full context
espn_college_baseball_calendar

Get ESPN College Baseball Calendar
espn_college_baseball_athletes_index

Get ESPN College Baseball Athletes Index
.ncaa_is_interstitial

Detect a stats.ncaa.org Akamai interstitial challenge
espn_college_baseball_coach_season

Get ESPN College Baseball Coach-in-Season Detail
espn_college_baseball_game_officials

Get ESPN College Baseball Event Officials
espn_college_baseball_game_play

Get ESPN College Baseball Event Play Detail (Single Play)
espn_college_baseball_conferences

Get ESPN College Baseball Conferences
espn_college_baseball_game_broadcasts

Get ESPN College Baseball Event Broadcasts
espn_college_baseball_game_all

Get ESPN College Baseball Game All
espn_college_baseball_coach_record

Get ESPN College Baseball Coach Career Record (Long Format)
espn_college_baseball_coaches

Get ESPN College Baseball Coaches
espn_college_baseball_game_official_detail

Get ESPN College Baseball Event Official Detail (Single Official)
espn_college_baseball_coach

Get ESPN College Baseball Single-Coach Detail
espn_college_baseball_game_team_score

Get ESPN College Baseball Event Competitor Score (Single Row)
espn_college_baseball_game_situation

Get ESPN College Baseball Event Situation (Live)
espn_college_baseball_game_team_records

Get ESPN College Baseball Event Competitor Records (At-Game Breakdown)
espn_college_baseball_game_team_linescores

Get ESPN College Baseball Event Competitor Linescores (Per-Inning)
espn_college_baseball_game_rosters

Get ESPN College Baseball Game Rosters
espn_college_baseball_game_team_roster_entry

Get ESPN College Baseball Event Competitor Roster Entry (Per-Athlete Game-Day Row)
espn_college_baseball_game_team_roster

Get ESPN College Baseball Event Competitor Roster (Game-Day)
espn_college_baseball_game_team_leaders

Get ESPN College Baseball Event Competitor Leaders (Top Performers)
espn_college_baseball_game_player_box

Get ESPN College Baseball Event Player Box Score (Long Format)
espn_college_baseball_game_play_personnel

Get ESPN College Baseball Event Play Personnel (On-Court Lineup at Play)
espn_college_baseball_game_team_statistics

Get ESPN College Baseball Event Competitor Team Statistics (Long Format)
espn_college_baseball_leaders

Get ESPN College Baseball League Leaders
espn_college_baseball_player_awards

Get ESPN College Baseball Athlete Awards
espn_college_baseball_player_eventlog

Get ESPN College Baseball Athlete Eventlog
espn_college_baseball_player_info

Get ESPN College Baseball Athlete Info
espn_college_baseball_player_career_stats

Get ESPN College Baseball Athlete Career Stats (Long Format)
espn_college_baseball_pbp

Get ESPN College Baseball Play-by-Play
espn_college_baseball_player_box

Get ESPN College Baseball Player Box
espn_college_baseball_news

Get ESPN College Baseball News
espn_college_baseball_player_gamelog

Get ESPN College Baseball Athlete Gamelog
espn_college_baseball_season_groups

Get ESPN College Baseball Season Groups Index
espn_college_baseball_season_group

Get ESPN College Baseball Season Group Detail
espn_college_baseball_season_group_children

Get ESPN College Baseball Season Group Children Index
espn_college_baseball_player_statisticslog

Get ESPN College Baseball Athlete Statisticslog
espn_college_baseball_player_splits

Get ESPN College Baseball Athlete Splits
espn_college_baseball_player_overview

Get ESPN College Baseball Athlete Overview
espn_college_baseball_season_group_teams

Get ESPN College Baseball Season Group Teams Index
espn_college_baseball_season_info

Get ESPN College Baseball Season Info
espn_college_baseball_player_seasons

Get ESPN College Baseball Athlete Career Seasons
espn_college_baseball_scoreboard

Get ESPN College Baseball Scoreboard
espn_college_baseball_season_leaders

Get ESPN College Baseball Season Leaders (Long Format)
espn_college_baseball_season_type

Get ESPN College Baseball Season-Type Detail
espn_college_baseball_team

Get ESPN College Baseball Team Detail
espn_college_baseball_season_ranking

Get ESPN College Baseball Season Ranking Detail
espn_college_baseball_season_rankings

Get ESPN College Baseball Season Rankings Index
espn_college_baseball_season_weeks

Get ESPN College Baseball Season Weeks Index
espn_college_baseball_season_week

Get ESPN College Baseball Season-Week Detail
espn_college_baseball_seasons

Get ESPN College Baseball Seasons
espn_college_baseball_season_types

Get ESPN College Baseball Season Types Index
espn_college_baseball_standings

Get ESPN College Baseball Standings
espn_college_baseball_team_leaders

Get ESPN College Baseball Team Leaders
espn_college_baseball_team_roster

Get ESPN College Baseball Team Roster
espn_college_baseball_team_season_statistics

Get ESPN College Baseball Team Season Statistics (Long Format with Rank)
espn_college_baseball_team_season_profile

Get ESPN College Baseball Team-in-Season Profile
espn_college_baseball_team_news

Get ESPN College Baseball Team News
espn_college_baseball_team_season_roster

Get ESPN College Baseball Team Roster (Per-Season, core-v2)
espn_college_baseball_team_box

Get ESPN College Baseball Team Box
espn_college_baseball_team_record

Get ESPN College Baseball Team Record (Per Season Type)
espn_college_baseball_team_schedule

Get ESPN College Baseball Team Schedule
espn_college_baseball_team_record_detail

Get ESPN College Baseball Team Record Detail (Long Format)
espn_college_baseball_tournament

Get ESPN College Baseball Tournament Detail
espn_college_baseball_tournaments

Get ESPN College Baseball Tournaments Index
espn_college_baseball_teams

Get ESPN College Baseball Teams
espn_college_baseball_venues

Get ESPN College Baseball Venues
espn_mlb

ESPN MLB Endpoint Overview
espn_college_baseball_week_ranking

Get ESPN College Baseball Per-Week Ranking Detail
espn_college_baseball_tournament_season

Get ESPN College Baseball Tournament Season Detail
espn_college_baseball_week_rankings

Get ESPN College Baseball Per-Week Rankings Index
espn_mlb_athletes_index

Get ESPN MLB Athletes Index
espn_college_baseball_tournament_seasons

Get ESPN College Baseball Tournament Seasons List
espn_mlb_coach_season

Get ESPN MLB Coach-in-Season Detail
espn_mlb_draft

Get ESPN MLB Draft Picks
espn_mlb_calendar

Get ESPN MLB Calendar
espn_mlb_coach

Get ESPN MLB Single-Coach Detail
espn_mlb_coaches

Get ESPN MLB Coaches
espn_mlb_draft_athlete_detail

Get ESPN MLB Draft Athlete Detail (Single Drafted Player)
espn_mlb_award

Get ESPN MLB Season Award Detail
espn_mlb_coach_record

Get ESPN MLB Coach Career Record (Long Format)
espn_mlb_betting

Get ESPN MLB's Betting information
espn_mlb_conferences

Get ESPN MLB Conferences
espn_mlb_freeagents

Get ESPN MLB Free Agents
espn_mlb_draft_pick

Get ESPN MLB Draft Pick Detail
espn_mlb_futures

Get ESPN MLB Season Futures (Long Format)
espn_mlb_franchises

Get ESPN MLB Franchises Index
espn_mlb_draft_status

Get ESPN MLB Draft Status
espn_mlb_game_all

Get ESPN MLB game data (Pbp, Team and Player Box)
espn_mlb_franchise

Get ESPN MLB Franchise Detail
espn_mlb_draft_rounds

Get ESPN MLB Draft Rounds Summary
espn_mlb_draft_athletes

Get ESPN MLB Draft Athletes Index
espn_mlb_game_broadcasts

Get ESPN MLB Event Broadcasts
espn_mlb_game_officials

Get ESPN MLB Event Officials
espn_mlb_game_powerindex

Get ESPN MLB Event Power Index Index
espn_mlb_game_predictor

Get ESPN MLB Event Predictor (Pre-game)
espn_mlb_game_play

Get ESPN MLB Event Play Detail (Single Play)
espn_mlb_game_info

Get ESPN MLB Game Info (venue, attendance, duration, umpires)
espn_mlb_game_endpoints

ESPN MLB Game Endpoint Overview
espn_mlb_game_odds

Get ESPN MLB Event Odds
espn_mlb_game_player_box

Get ESPN MLB Event Player Box Score (Long Format)
espn_mlb_game_play_personnel

Get ESPN MLB Event Play Personnel (On-Court Lineup at Play)
espn_mlb_game_official_detail

Get ESPN MLB Event Official Detail (Single Official)
espn_mlb_game_team_roster

Get ESPN MLB Event Competitor Roster (Game-Day)
espn_mlb_game_rosters

Get ESPN MLB game rosters
espn_mlb_game_team_records

Get ESPN MLB Event Competitor Records (At-Game Breakdown)
espn_mlb_game_situation

Get ESPN MLB Event Situation (Live)
espn_mlb_game_probables

Get ESPN MLB Probable Starting Pitchers
espn_mlb_game_team_roster_entry

Get ESPN MLB Event Competitor Roster Entry (Per-Athlete Game-Day Row)
espn_mlb_game_team_leaders

Get ESPN MLB Event Competitor Leaders (Top Performers)
espn_mlb_game_propbets

Get ESPN MLB Event Prop Bets (Long Format)
espn_mlb_game_probabilities

Get ESPN MLB Event Win Probabilities
espn_mlb_game_team_linescores

Get ESPN MLB Event Competitor Linescores (Per-Inning)
espn_mlb_news

Get ESPN MLB News
espn_mlb_player_box

Get ESPN MLB player box scores
espn_mlb_pbp

Get ESPN MLB PBP data
espn_mlb_injuries

Get ESPN MLB Injuries
espn_mlb_player_awards

Get ESPN MLB Athlete Awards
espn_mlb_leaders

Get ESPN MLB League Leaders
espn_mlb_game_team_statistics

Get ESPN MLB Event Competitor Team Statistics (Long Format)
espn_mlb_game_team_score

Get ESPN MLB Event Competitor Score (Single Row)
espn_mlb_player_contract

Get ESPN MLB Athlete Contract (Single Season)
espn_mlb_player_career_stats

Get ESPN MLB Athlete Career Stats (Long Format)
espn_mlb_player_eventlog_v2

Get ESPN MLB Athlete Per-Season Event Log (core-v2)
espn_mlb_player_gamelog

Get ESPN MLB Athlete Gamelog
espn_mlb_player_splits

Get ESPN MLB Athlete Splits
espn_mlb_player_info

Get ESPN MLB Athlete Info
espn_mlb_player_eventlog

Get ESPN MLB Athlete Eventlog
espn_mlb_player_overview

Get ESPN MLB Athlete Overview
espn_mlb_player_endpoints

ESPN MLB Player / Athlete Endpoint Overview
espn_mlb_player_seasons

Get ESPN MLB Athlete Career Seasons
espn_mlb_player_statisticslog

Get ESPN MLB Athlete Statisticslog
espn_mlb_player_contracts

Get ESPN MLB Athlete Contracts Index
espn_mlb_scoreboard

Get ESPN MLB schedule for a specific year
espn_mlb_positions

Get ESPN MLB Positions Index
espn_mlb_season_awards

Get ESPN MLB Season Awards Index
espn_mlb_player_stats

Get ESPN MLB player stats data
espn_mlb_position

Get ESPN MLB Position Detail
espn_mlb_season_draft

Get ESPN MLB Season Draft (Top-Level Metadata)
espn_mlb_player_stats_v3

Get ESPN MLB Athlete Stats
espn_mlb_season_group_children

Get ESPN MLB Season Group Children Index
espn_mlb_powerindex

Get ESPN MLB Season Power Index (Long Format)
espn_mlb_season_group

Get ESPN MLB Season Group Detail
espn_mlb_season_info

Get ESPN MLB Season Info
espn_mlb_season_types

Get ESPN MLB Season Types Index
espn_mlb_season_ranking

Get ESPN MLB Season Ranking Detail
espn_mlb_season_week

Get ESPN MLB Season-Week Detail
espn_mlb_season_group_teams

Get ESPN MLB Season Group Teams Index
espn_mlb_season_leaders

Get ESPN MLB Season Leaders (Long Format)
espn_mlb_season_weeks

Get ESPN MLB Season Weeks Index
espn_mlb_season_groups

Get ESPN MLB Season Groups Index
espn_mlb_season_type

Get ESPN MLB Season-Type Detail
espn_mlb_season_rankings

Get ESPN MLB Season Rankings Index
espn_mlb_seasons

Get ESPN MLB Seasons
espn_mlb_team_injuries

Get ESPN MLB Team Injuries
espn_mlb_team_current_roster

Get ESPN MLB current team roster
espn_mlb_team_leaders

Get ESPN MLB Team Leaders
espn_mlb_standings

Get ESPN MLB's Standings
espn_mlb_team_news

Get ESPN MLB Team News
espn_mlb_team_depthchart

Get ESPN MLB Team Depth Chart (Long Format)
espn_mlb_team

Get ESPN MLB Team Detail
espn_mlb_team_endpoints

ESPN MLB Team Endpoint Overview
espn_mlb_team_box

Get ESPN MLB team box scores
espn_mlb_team_odds_records

Get ESPN MLB Team Odds-Records (Long Format)
espn_mlb_team_schedule

Get ESPN MLB Team Schedule
espn_mlb_team_roster

Get ESPN MLB Team Roster
espn_mlb_team_record_detail

Get ESPN MLB Team Record Detail (Long Format)
espn_mlb_team_record

Get ESPN MLB Team Record (Per Season Type)
espn_mlb_team_stats

Get ESPN MLB team stats data
espn_mlb_team_season_roster

Get ESPN MLB Team Roster (Per-Season, core-v2)
espn_mlb_team_season_profile

Get ESPN MLB Team-in-Season Profile
espn_mlb_team_season_statistics

Get ESPN MLB Team Season Statistics (Long Format with Rank)
espn_mlb_teams

Get ESPN MLB team names and IDs
espn_mlb_week_ranking

Get ESPN MLB Per-Week Ranking Detail
espn_mlb_tournaments

Get ESPN MLB Tournaments Index
espn_mlb_transactions

Get ESPN MLB Transactions
espn_mlb_week_rankings

Get ESPN MLB Per-Week Rankings Index
espn_mlb_venues

Get ESPN MLB Venues
espn_mlb_tournament

Get ESPN MLB Tournament Detail
espn_mlb_tournament_seasons

Get ESPN MLB Tournament Seasons List
espn_mlb_wp

Get MLB win probability chart data from ESPN
espn_mlb_tournament_season

Get ESPN MLB Tournament Season Detail
fangraphs

FanGraphs Functions Overview
fg_pitch_leaders

(legacy) Scrape Pitcher Leaderboards from FanGraphs
fg_guts

Scrape FanGraphs.com Guts!
fg_milb_batter_game_logs

Scrape MiLB game logs for batters from FanGraphs
fg_bat_leaders

(legacy) Scrape Batter Leaderboards from FanGraphs
fg_pitcher_game_logs

Scrape Pitcher Game Logs from FanGraphs
fg_batter_game_logs

Scrape Batter Game Logs from FanGraphs
fg_milb_pitcher_game_logs

Scrape MiLB game logs for pitchers from FanGraphs
fg_park

Scrape Park Factors from FanGraphs
fg_fielder_leaders

Scrape Fielder Leaderboards from FanGraphs
fg_batter_leaders

Scrape Batter Leaderboards from FanGraphs
bref

Baseball Reference Functions Overview
batter_game_logs_fg

(legacy) Scrape Batter Game Logs from FanGraphs
chadwick

Chadwick Bureau Register Player Lookup
bref_standings_on_date

Scrape MLB Standings on a Given Date
baseballr-package

baseballr: Acquiring and Analyzing Baseball Data
bref_team_results

Scrape Team Results
chadwick_path

Check Chadwick installation