Use the fetch_* functions to retrieve AFL data
mainThe core API of fitzRoy consists of fetch_* functions that provide a consistent way to access fixtures, lineups, results, ladders, and player statistics. These functions return tidy data suitable for analysis.
Key functions include:
fetch_fixture(season, comp): Retrieves match fixtures.fetch_lineup(season, round_number, comp): Retrieves team lineups.fetch_results(season, round_number, comp): Retrieves match results.fetch_ladder(season, source): Retrieves competition ladders.fetch_player_stats(season, source): Retrieves player statistics.fetch_player_details(team, current, source): Retrieves specific player information.
fetch_fixture(season = 2020, comp = "AFLM")
fetch_lineup(season = 2021, round_number = 1, comp = "AFLW")
fetch_results(season = 2020, round_number = 1, comp = "AFLW")
fetch_ladder(season = 2020, source = "squiggle")
fetch_player_stats(season = 2020, source = "fryzigg")
fetch_player_details(team = "Hawthorn", current = TRUE, source = "AFL")