This function fetches player picks for a Fantasy Premier League entry given the entry ID and GW.

get_entry_picks(entryid = NULL, gw = NULL)

Arguments

entryid

The entry ID. Can be found on the FPL website under 'Gameweek history' in the URL - https://fantasy.premierleague.com/entry/XXXXXX/history.

gw

The GW for which player picks is requested.

Examples

get_entry_picks(1076,1)
#> $active_chip #> NULL #> #> $automatic_subs #> list() #> #> $entry_history #> $entry_history$event #> [1] 1 #> #> $entry_history$points #> [1] 0 #> #> $entry_history$total_points #> [1] 0 #> #> $entry_history$rank #> [1] 3700473 #> #> $entry_history$rank_sort #> [1] 3700836 #> #> $entry_history$overall_rank #> [1] 3700472 #> #> $entry_history$bank #> [1] 0 #> #> $entry_history$value #> [1] 1000 #> #> $entry_history$event_transfers #> [1] 0 #> #> $entry_history$event_transfers_cost #> [1] 0 #> #> $entry_history$points_on_bench #> [1] 1 #> #> #> $picks #> element position multiplier is_captain is_vice_captain #> 1 69 1 1 FALSE FALSE #> 2 275 2 1 FALSE FALSE #> 3 237 3 1 FALSE FALSE #> 4 245 4 1 FALSE FALSE #> 5 215 5 1 FALSE FALSE #> 6 233 6 2 TRUE FALSE #> 7 277 7 1 FALSE TRUE #> 8 289 8 1 FALSE FALSE #> 9 196 9 1 FALSE FALSE #> 10 413 10 1 FALSE FALSE #> 11 337 11 1 FALSE FALSE #> 12 376 12 0 FALSE FALSE #> 13 67 13 0 FALSE FALSE #> 14 185 14 0 FALSE FALSE #> 15 388 15 0 FALSE FALSE #>