This function fetches a list of entries in the standings for a Fantasy Premier League mini-league given the league ID and type. In the new FPL API for 19/20, this information requires authentication - so you'll be prompted to post your FPL login and password to retrieve the data.

get_league_entries(leagueid = NULL, leaguetype = "classic", pages = 1)

Arguments

leagueid

The league ID(s). Can be found on the FPL website.

leaguetype

The league type: 'classic' or 'h2h'.

pages

The number of pages of entries to fetch (there are 50 entries on each page)