Skip to contents

This function retrieves information about FPL fixtures, such as gameweek and fixture IDs, the teams, fixture score using the Fantasy Premier League API.

Usage

fpl_fixtures_info()

Value

A tibble (data frame) with the following columns:

gw_id

The id for the gameweek.

game_id

The fixture's season id.

team_h

The home team.

team_h_score

The home team's score.

team_a

The away team.

team_a_score

A numeric of the away team's score.

stats

The fixture's statistics.

kickoff_time

A datetime of the fixture's kickoff in UCT.

kickoff_time_provisional

A logical indicating if the kickoff time is provisional.

started

A logical indicating if the fixture has started.

finished

A logical indicating if the fixture has finished.

fpl_game_code

The fixture's FPL code.

Examples

fpl_team_info()
#> # A tibble: 20 × 18
#>    team_fpl_code team_name     team_abb season_id form  played   win  draw  loss
#>            <int> <chr>         <chr>        <int> <lgl>  <int> <int> <int> <int>
#>  1             3 Arsenal       ARS              1 NA         0     0     0     0
#>  2             7 Aston Villa   AVL              2 NA         0     0     0     0
#>  3            91 Bournemouth   BOU              3 NA         0     0     0     0
#>  4            94 Brentford     BRE              4 NA         0     0     0     0
#>  5            36 Brighton      BHA              5 NA         0     0     0     0
#>  6            90 Burnley       BUR              6 NA         0     0     0     0
#>  7             8 Chelsea       CHE              7 NA         0     0     0     0
#>  8            31 Crystal Pala… CRY              8 NA         0     0     0     0
#>  9            11 Everton       EVE              9 NA         0     0     0     0
#> 10            54 Fulham        FUL             10 NA         0     0     0     0
#> 11            14 Liverpool     LIV             11 NA         0     0     0     0
#> 12           102 Luton         LUT             12 NA         0     0     0     0
#> 13            43 Man City      MCI             13 NA         0     0     0     0
#> 14             1 Man Utd       MUN             14 NA         0     0     0     0
#> 15             4 Newcastle     NEW             15 NA         0     0     0     0
#> 16            17 Nott'm Forest NFO             16 NA         0     0     0     0
#> 17            49 Sheffield Utd SHU             17 NA         0     0     0     0
#> 18             6 Spurs         TOT             18 NA         0     0     0     0
#> 19            21 West Ham      WHU             19 NA         0     0     0     0
#> 20            39 Wolves        WOL             20 NA         0     0     0     0
#> # ℹ 9 more variables: points <int>, league_position <int>, strength <int>,
#> #   strength_overall_home <int>, strength_defence_home <int>,
#> #   strength_attack_home <int>, strength_overall_away <int>,
#> #   strength_defence_away <int>, strength_attack_away <int>