Skip to contents

MLB Sport IDs Information

Usage

mlb_sports_info(sport_id = 1)

Arguments

sport_id

The sport_id to return information for.

Value

Returns a tibble with the following columns

col_nametypes
sport_idinteger
sport_codecharacter
sport_linkcharacter
sport_namecharacter
sport_abbreviationcharacter
sort_orderinteger
active_statuslogical

Examples

# \donttest{
  try(mlb_sports_info(sport_id = 1))
#> ── MLB Sports Info data from MLB.com ──────────────── baseballr 1.6.0 ──
#>  Data updated: 2024-04-13 21:56:46 UTC
#> # A tibble: 1 × 7
#>   sport_id sport_code sport_link       sport_name     sport_abbreviation
#>      <int> <chr>      <chr>            <chr>          <chr>             
#> 1        1 mlb        /api/v1/sports/1 Major League … MLB               
#> # ℹ 2 more variables: sort_order <int>, active_status <lgl>
# }