@@ -17,8 +17,8 @@ status](https://github.com/k5cents/fflr/workflows/R-CMD-check/badge.svg)](https:
17
17
<!-- badges: end -->
18
18
19
19
The fflr package is used to query the [ ESPN Fantasy Football
20
- API] ( https://fantasy.espn.com/apis/v3/games/ffl/ ) . Get data on fantasy
21
- football league members, teams, and individual athletes.
20
+ API] ( https://lm-api-reads. fantasy.espn.com/apis/v3/games/ffl/ ) . Get data
21
+ on fantasy football league members, teams, and individual athletes.
22
22
23
23
This package has been tested with a narrow subset of possible league
24
24
settings. If a function doesn’t work as intended, please file an [ issue
@@ -46,7 +46,7 @@ remotes::install_github("k5cents/fflr")
46
46
``` r
47
47
library(fflr )
48
48
packageVersion(" fflr" )
49
- # > [1] '2.2.3 '
49
+ # > [1] '2.3.0 '
50
50
```
51
51
52
52
Data is only available for public leagues. See [ this help
@@ -76,7 +76,7 @@ league_info()
76
76
# > # A tibble: 1 × 6
77
77
# > id seasonId name isPublic size finalScoringPeriod
78
78
# > <int> <int> <chr> <lgl> <int> <int>
79
- # > 1 42654852 2023 FFLR Test League TRUE 4 17
79
+ # > 1 42654852 2024 FFLR Test League TRUE 4 17
80
80
league_teams()
81
81
# > # A tibble: 4 × 6
82
82
# > teamId abbrev name logo logoType memberId
@@ -92,25 +92,7 @@ The `scoringPeriodId` argument can be used to get data from past weeks.
92
92
``` r
93
93
all_rost <- team_roster(scoringPeriodId = 1 )
94
94
all_rost $ CHI [, 5 : 13 ][- 7 ]
95
- # > # A tibble: 16 × 8
96
- # > lineupSlot playerId firstName lastName proTeam position projectedScore actualScore
97
- # > <fct> <int> <chr> <chr> <fct> <fct> <dbl> <dbl>
98
- # > 1 QB 4040715 Jalen Hurts Phi QB 21.3 12.5
99
- # > 2 RB 3929630 Saquon Barkley NYG RB 16.9 9.3
100
- # > 3 RB 4239996 Travis Etienne Jr. Jax RB 15.1 21.4
101
- # > 4 WR 4262921 Justin Jefferson Min WR 20.1 24
102
- # > 5 WR 4569618 Garrett Wilson NYJ WR 16.4 14.4
103
- # > 6 TE 15847 Travis Kelce KC TE 0 0
104
- # > 7 FLEX 4374302 Amon-Ra St. Brown Det WR 16.7 19.1
105
- # > 8 D/ST -16025 49ers D/ST SF D/ST 7.78 14
106
- # > 9 K 3055899 Harrison Butker KC K 8.41 8
107
- # > 10 BE 4429795 Jahmyr Gibbs Det RB 14.0 8
108
- # > 11 BE 3042519 Aaron Jones GB RB 15.5 26.7
109
- # > 12 BE 3915511 Joe Burrow Cin QB 19.8 3.18
110
- # > 13 BE 2976499 Amari Cooper Cle WR 13.6 6.7
111
- # > 14 BE 4697815 Rachaad White TB RB 13.9 6.9
112
- # > 15 BE 3054850 Alvin Kamara NO RB 0 0
113
- # > 16 BE 4038941 Justin Herbert LAC QB 16.9 20.9
95
+ # > NULL
114
96
```
115
97
116
98
There are included objects for NFL teams and players.
0 commit comments