Skip to contents

Find game_pk values for professional baseball postseason series games (major and minor leagues)

Usage

mlb_schedule_postseason_series(
  season = 2021,
  game_type = NULL,
  series_number = NULL,
  sport_id = 1,
  team_id = NULL
)

Arguments

season

The season for which you want to find game_pk values for MLB games

game_type

game_type to return schedule information for all tied games in a particular game_type

series_number

The Series number to return schedule information for all tied games in a particular series number

sport_id

The sport_id to return schedule information for.

team_id

The team_id to return schedule information for.

game_type_idgame_type_description
SSpring Training
RRegular Season
FWild Card Game
DDivision Series
LLeague Championship Series
WWorld Series
CChampionship
NNineteenth Century Series
PPlayoffs
AAll-Star Game
IIntrasquad
EExhibition

Value

Returns a tibble that includes game_pk values and additional information for games scheduled or played

col_nametypes
total_itemsinteger
total_gamesinteger
total_games_in_progressinteger
game_pkinteger
linkcharacter
game_typecharacter
seasoncharacter
game_datecharacter
official_datecharacter
is_tielogical
is_featured_gamelogical
game_numberinteger
public_facinglogical
double_headercharacter
gameday_typecharacter
tiebreakercharacter
calendar_event_idcharacter
season_displaycharacter
day_nightcharacter
descriptioncharacter
scheduled_inningsinteger
reverse_home_away_statuslogical
inning_break_lengthinteger
games_in_seriesinteger
series_game_numberinteger
series_descriptioncharacter
record_sourcecharacter
if_necessarycharacter
if_necessary_descriptioncharacter
is_default_gamelogical
status_abstract_game_statecharacter
status_coded_game_statecharacter
status_detailed_statecharacter
status_status_codecharacter
status_start_time_tbdlogical
status_abstract_game_codecharacter
teams_away_scoreinteger
teams_away_is_winnerlogical
teams_away_split_squadlogical
teams_away_series_numberinteger
teams_away_league_record_winsinteger
teams_away_league_record_lossesinteger
teams_away_league_record_pctcharacter
teams_away_team_idinteger
teams_away_team_namecharacter
teams_away_team_linkcharacter
teams_home_scoreinteger
teams_home_is_winnerlogical
teams_home_split_squadlogical
teams_home_series_numberinteger
teams_home_league_record_winsinteger
teams_home_league_record_lossesinteger
teams_home_league_record_pctcharacter
teams_home_team_idinteger
teams_home_team_namecharacter
teams_home_team_linkcharacter
venue_idinteger
venue_namecharacter
venue_linkcharacter
content_linkcharacter
reschedule_datecharacter
reschedule_game_datecharacter
rescheduled_fromcharacter
rescheduled_from_datecharacter
status_reasoncharacter
sort_orderinteger
series_idcharacter
series_sort_numberinteger
series_is_defaultlogical
series_game_typecharacter

Examples

# \donttest{
  try(mlb_schedule_postseason_series(season = 2021, sport_id = 1))
#> ── MLB Schedule - Post-season Series data from MLB.com ─────────────────
#>  Data updated: 2024-04-13 21:56:44 UTC
#> # A tibble: 38 × 70
#>    total_items total_games total_games_in_progress game_pk game_guid    
#>          <int>       <int>                   <int>   <int> <chr>        
#>  1           6           6                       0  660897 c4148dd0-dc0…
#>  2           6           6                       0  660908 8644ecec-18e…
#>  3           6           6                       0  660910 404871b2-3eb…
#>  4           6           6                       0  660902 d8d931dc-494…
#>  5           6           6                       0  660911 ad3ef28d-964…
#>  6           6           6                       0  660906 35a3ffd6-2d4…
#>  7           1           1                       0  660938 42ec699b-0d4…
#>  8           1           1                       0  660937 c4cc7a37-663…
#>  9           5           5                       0  660936 99c5d8e9-125…
#> 10           5           5                       0  660934 0e6aa0d8-ec6…
#> # ℹ 28 more rows
#> # ℹ 65 more variables: link <chr>, game_type <chr>, season <chr>,
#> #   game_date <chr>, official_date <chr>, is_tie <lgl>,
#> #   is_featured_game <lgl>, game_number <int>, public_facing <lgl>,
#> #   double_header <chr>, gameday_type <chr>, tiebreaker <chr>,
#> #   calendar_event_id <chr>, season_display <chr>, day_night <chr>,
#> #   description <chr>, scheduled_innings <int>, …
# }