AFLaaS

As part of this footy tipping app, we also have an API available so you can access all the data we have.

It's a simple REST API that should be straight forward to use.

/game/<int:id>
Description: Returns details of a game.
id int (required)
/game/year/<int:year>
Description: Returns a list of games played in given year.
year (yyyy) int (required)
/game/year/<int:year>/ground_id/<int:ground_id>
Description: Returns a list of games played at a particular ground.
year (yyyy) int (required)
ground_id int (required)
/game/year/<int:year>/home_team/<int:team_id>
Description: Returns a list of away games played by a team in a season.
year (yyyy) int (required)
home_team_id int (required)
/game/year/<int:year>/away_team/<int:team_id>
Description: Returns a list of away games played by a team in a season.
year (yyyy) int (required)
away_team_id int (required)
/game/year/<int:year>/team/<int:team_id>
Description: Returns a list of games played by a team in a season.
year (yyyy) int (required)
team_id int (required)
/game/year/<int:year>/round_number/<int:number>
Description: Returns a list of games in a given round.
year (yyyy) int (required)
round_number int (required)
/game/date_from/<date_from>/date_to/<date_to>
Description:
year (yyyy) int (required)
date_from (yyyy-mm-dd) str (required)
date_to (yyyy-mm-dd) str (required)
/grounds/
Description: Returns a list of grounds.
void
/ground/<int:id>
Description: Returns the detail of a ground with specified Id.
ground_id int (required)
/round/id/<int:id>
Description: Returns a list of rounds. If ID is provided, only round with ID is returned.
id int
/round/year/<int:year>
Description: Returns a list of games played in given year.
year (yyyy) int (required)
/round/year/<int:year>/round_number/<int:round_number>
Description: If a round number is provided a year also needs to be provided. However it is ok to just provide a year.
year int (yyyy, required)number int (year required in addition)
/teams/
Description: Returns a list of teams.
void
/team/<id>
Description: Returns team detail of team with id.
id int (required)