This function fetches detailed, gameweek-by-gameweek information for the current season on selected players. If parameters left blank, the function fetches all current players - note that takes a while to load.

get_player_details(playerid = NULL, name = NULL, season = NULL)

Arguments

playerid

The player's ID. Can be found using get_player_id(). You can list multiple, e.g. with c(). Won't work with prior season's data.

name

Alternatively, the player's full name, as listed on the official Fantasy Premier League site (for instance: "Richarlison de Andrade", not "Richarlison"). If blank, the function fetches all players.

season

To retrieve prior season data, enter a 2-digit year corresponding to the start of the historical FPL season of interest (e.g. '17' for the 2017/2018 season).

Examples

get_player_details(300)
#> element fixture opponent_team total_points was_home kickoff_time #> 1 300 9 19 0 TRUE 2021-08-15T13:00:00Z #> team_h_score team_a_score round minutes goals_scored assists clean_sheets #> 1 NA NA 1 0 0 0 0 #> goals_conceded own_goals penalties_saved penalties_missed yellow_cards #> 1 0 0 0 0 0 #> red_cards saves bonus bps influence creativity threat ict_index value #> 1 0 0 0 0 0.0 0.0 0.0 0.0 55 #> transfers_balance selected transfers_in transfers_out playername #> 1 0 16263 0 0 Dwight Gayle
get_player_details(name="Virgil van Dijk")
#> element fixture opponent_team total_points was_home kickoff_time #> 1 229 7 15 0 FALSE 2021-08-14T16:30:00Z #> team_h_score team_a_score round minutes goals_scored assists clean_sheets #> 1 NA NA 1 0 0 0 0 #> goals_conceded own_goals penalties_saved penalties_missed yellow_cards #> 1 0 0 0 0 0 #> red_cards saves bonus bps influence creativity threat ict_index value #> 1 0 0 0 0 0.0 0.0 0.0 0.0 65 #> transfers_balance selected transfers_in transfers_out playername #> 1 0 736976 0 0 Virgil van Dijk