Skip to contents

Retrieve draft pick information by year

Usage

mlb_draft(year)

Arguments

year

The year for which to return data

Value

Returns a tibble with information for every draft pick in every round for the year requested

col_nametypesdescription
bis_player_idintegerBIS (Baseball Info Solutions) player ID.
pick_roundcharacterDraft round.
pick_numberintegerOverall pick number.
display_pick_numberintegerPick number as displayed.
round_pick_numberintegerPick number within the round.
rankintegerProspect rank.
pick_valuecharacterAssigned slot/pick value (dollars).
signing_bonuscharacterSigning bonus (dollars).
scouting_reportcharacterLink to the scouting report.
blurbcharacterProspect scouting blurb.
headshot_linkcharacterURL to the player's headshot image.
is_draftedlogicalWhether the prospect was drafted.
is_passlogicalWhether the pick was a pass.
yearcharacterDraft year (YYYY).
home_citycharacterProspect home city.
home_statecharacterProspect home state.
home_countrycharacterProspect home country.
school_namecharacterSchool name.
school_school_classcharacterSchool class (e.g. 4YR JR, HS SR).
school_countrycharacterSchool country.
school_statecharacterSchool state.
person_idintegerMLB player ID.
person_full_namecharacterPlayer full name.
person_linkcharacterMLB Stats API relative player link.
person_first_namecharacterPlayer first name.
person_last_namecharacterPlayer last name.
person_primary_numbercharacterPlayer uniform number.
person_birth_datecharacterBirth date (YYYY-MM-DD).
person_current_ageintegerCurrent age in years.
person_birth_citycharacterCity of birth.
person_birth_state_provincecharacterState or province of birth.
person_birth_countrycharacterCountry of birth.
person_heightcharacterHeight (feet and inches).
person_weightintegerWeight in pounds.
person_activelogicalWhether the player is currently active.
person_use_namecharacterPreferred first name.
person_use_last_namecharacterPreferred last name.
person_middle_namecharacterPlayer middle name.
person_boxscore_namecharacterName as shown in box scores.
person_gendercharacterPlayer gender.
person_is_playerlogicalWhether the person is a player.
person_is_verifiedlogicalWhether the player profile is verified.
person_draft_yearintegerYear the player was drafted.
person_mlb_debut_datecharacterMLB debut date (YYYY-MM-DD).
person_name_first_lastcharacterName in first-last order.
person_name_slugcharacterURL-friendly name slug.
person_first_last_namecharacterFirst and last name.
person_last_first_namecharacterName in last, first order.
person_last_init_namecharacterLast name with first initial.
person_init_last_namecharacterFirst initial with last name.
person_full_fml_namecharacterFull name (first-middle-last).
person_full_lfm_namecharacterFull name (last-first-middle).
person_strike_zone_topnumericTop of the player's strike zone (feet).
person_strike_zone_bottomnumericBottom of the player's strike zone (feet).
person_pronunciationcharacterPhonetic name pronunciation.
person_name_titlecharacterName title.
person_name_suffixcharacterName suffix (e.g. Jr., III).
person_nick_namecharacterPlayer nickname.
person_name_matrilinealcharacterMaternal family name.
person_primary_position_codecharacterPrimary fielding position code.
person_primary_position_namecharacterPrimary fielding position name.
person_primary_position_typecharacterPrimary position type (e.g. Infielder).
person_primary_position_abbreviationcharacterPrimary position abbreviation.
person_bat_side_codecharacterBatting side code (L/R/S).
person_bat_side_descriptioncharacterBatting side description.
person_pitch_hand_codecharacterThrowing hand code (L/R).
person_pitch_hand_descriptioncharacterThrowing hand description.
team_all_star_statuscharacterTeam all-star status flag.
team_idintegerMLB team ID of the drafting team.
team_namecharacterDrafting team name.
team_linkcharacterMLB Stats API relative team link.
team_spring_league_idintegerSpring training league ID.
team_spring_league_namecharacterSpring training league name.
team_spring_league_linkcharacterMLB Stats API relative spring league link.
team_spring_league_abbreviationcharacterSpring training league abbreviation.
draft_type_codecharacterDraft type code.
draft_type_descriptioncharacterDraft type description.

Examples

# \donttest{
  try(mlb_draft(year = 2020))
#> ── MLB Draft data from MLB.com ────────────────────── baseballr 2.0.0 ──
#>  Data updated: 2026-06-12 14:09:25 UTC
#> # A tibble: 160 × 77
#>    bis_player_id pick_round pick_number display_pick_number
#>            <int> <chr>            <int>               <int>
#>  1        807255 1                    1                   1
#>  2        788201 1                    2                   2
#>  3        792606 1                    3                   3
#>  4        771881 1                    4                   4
#>  5        415542 1                    5                   5
#>  6        784616 1                    6                   6
#>  7       5009176 1                    7                   7
#>  8        807429 1                    8                   8
#>  9       5005747 1                    9                   9
#> 10        780070 1                   10                  10
#> # ℹ 150 more rows
#> # ℹ 73 more variables: round_pick_number <int>, rank <int>,
#> #   pick_value <chr>, signing_bonus <chr>, scouting_report <chr>,
#> #   blurb <chr>, headshot_link <chr>, is_drafted <lgl>, is_pass <lgl>,
#> #   year <chr>, home_city <chr>, home_state <chr>, home_country <chr>,
#> #   school_name <chr>, school_school_class <chr>, school_country <chr>,
#> #   school_state <chr>, person_id <int>, person_full_name <chr>, …
# }