Using Fryzigg API

Overview

We have included a function to interface with the Fryzigg API. This data set includes advanced AFL stats that are typically not available on existing open data sites such as footywire.com and afltables.com. Many thanks to Fryzigg on providing this API interface.

Getting Data

The primary way to access the data is via the fetch_fryzigg_stats() function. This function provides an easy interface to the Fryzigg API. It takes one arguments - season which can be a single year or multiple years.

dat <- fitzRoy::fetch_player_stats_fryzigg(2019)

We can get a quick view the the fields returned from the fryzigg API.

dplyr::glimpse(dat)

You can see the data includes both player and team data, where each row is a game by a player.

head(dat)