Basic information on a ESPN fantasy football league, like the name, size, and season length.

league_info(leagueId = ffl_id(), leagueHistory = FALSE, ...)



Numeric league ID or ESPN fantasy page URL. Defaults to getOption("fflr.leagueId"). Function fails if no ID is found.


logical; Should the leagueHistory version of the API be called? If TRUE, a list of results is returned, with one element for each historical year of the league.


Additional queries passed to httr::GET(). Arguments are converted to a named list and passed to query alongside view.


A data frame of league information by season.


league_info(leagueId = "42654852")
#> # A tibble: 1 × 6
#>         id seasonId name             isPublic  size finalScoringPeriod
#>      <int>    <int> <chr>            <lgl>    <int>              <int>
#> 1 42654852     2024 FFLR Test League TRUE         4                 17