ohfootball.io

Data

Download The Data

The full record of games, teams, and ratings, as CSV files in one zip. A new copy is published each week. It is free to use for any purpose under CC0-1.0.

What Is In The Zip

dim_teams.csv
Each team in each season, with its place and division.
dim_dates.csv
The calendar that the games are dated against.
fct_games.csv
Each game, with both scores and the home side.
fct_team_ratings.csv
The rating of each Ohio team through each season, in points.
fct_game_predictions.csv
The expected margin and the win probability of each game of an Ohio team.

The README.md in the zip describes every column and how the files join.

Load It

import io
import urllib.request
import zipfile

import pandas as pd

url = "https://data.ohfootball.io/latest/ohfootball.zip"
with zipfile.ZipFile(io.BytesIO(urllib.request.urlopen(url).read())) as archive:
    games = pd.read_csv(archive.open("fct_games.csv"))

Older Copies

The zip of each week is also kept at https://data.ohfootball.io/YYYY-MM-DD/ohfootball.zip, and snapshots.json lists the dates.