This function fetches the FPL ID of a player given the player's full name. If blank, the function fetches all current players.

get_player_id(name = NULL)

Arguments

name

The player's full name, as listed on the official Fantasy Premier League site (for instance: "Richarlison de Andrade", not "Richarlison". You can list multiple, e.g. with c().

Examples

get_player_id(name="Virgil van Dijk")
#> playername id #> 1 Virgil van Dijk 229