Using Fryzigg Stats


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 and Many thanks to Fryzigg on providing this API interfect.

Load packages

First we need to grab a few packages. If you don’t have any of these, you’ll need to install them.


Getting Data

The primary way to access the data is via the get_fryzigg_stats() function. This function provides an easy interface to the Fryzigg API. It takes two arguments - start and end which are the years in which data will be returned (inclusive). They should be provided in YYYY format.

dat <- fitzRoy::get_fryzigg_stats(start = 2019, end = 2019)

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


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