Current information about a league: the date activated, current week, starting week, final week, past seasons, teams joined, and waiver status.

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

Arguments

leagueId

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

leagueHistory

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.

Value

A data frame of league status by season.

Examples

league_status(leagueId = "42654852")
#> # A tibble: 1 × 12
#>    year isActive activatedDate       scoringPeriodId firstScoringPeriod
#>   <int> <lgl>    <dttm>                        <int>              <int>
#> 1  2024 TRUE     2024-05-03 00:28:18               0                  1
#> # ℹ 7 more variables: finalScoringPeriod <int>, previousSeasons <list>,
#> #   standingsUpdateDate <dttm>, teamsJoined <int>,
#> #   waiverLastExecutionDate <dttm>, waiverNextExecutionDate <dttm>,
#> #   waiverProcessStatus <list>