get_player_details: get_player_details

View source: R/player_functions.R

get_player_detailsR Documentation

get_player_details

Description

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.

Usage

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)

get_player_details(name="Virgil van Dijk")

wiscostret/fplscrapR documentation built on June 12, 2022, 8:03 a.m.