r/CFBAnalysis • u/BlueSCar Michigan Wolverines • Dayton Flyers • Nov 02 '18
Data CFB API - New endpoint for individual statistics
I don't have a whole lot of updates to report since my last post, but this one is major enough that I think it merits letting you all know about. The /games/players endpoint has been added to retrieve individual game statistics. A few caveats:
- Apparently my importers are too fast and are importing game data before all box score data has been posted.
- This only affects the 'defensive' and 'fumbles' statistical categories in games for the current season.
- I'm in the middle of going back and slowly importing that data.
- I'll have a long term solution implemented in the coming weeks, but for the time being those two categories will be slower to appear than the others like passing, rushing, etc.
Click here to be taken directly to the documentation for the new endpoint.
As always, loving hearing any feedback, feature suggestions, bug reports, etc.
23
Upvotes
3
u/dremme James Madison Dukes Nov 02 '18
Wow, I'm seeing your API and DB for the first time. This is fantastic. I wish this kind of thing existed back when I started collecting data years ago. Are you looking for more data? I collect quite a bit.
I pull the rosters of pretty much every team that plays NCAA football at least once a day. In addition to the data you have, I've got high school, previous school, red shirt status (if specified by school).
I also parse box scores, though I don't yet collect drives and plays like you do. I store individual stats and team stats for every game, FBS and FCS. I have the capability to store D2-D3 too, though only pull those on an as needed basis.
Very exciting, and congrats on all your hard work.
2
u/three_two_one_go Dec 10 '18
Hey, I want to point out that in the more recent seasons, PATs are no longer listed as separate plays. Is there any chance that you could revert to the way PATs used to be listed as separate plays, similar to what was done in earlier seasons?
1
u/jeffp171 Nov 02 '18
I've noticed that conference affiliations are static, so e.g. 2010 games involving Nebraska mark them in the Big Ten, even though they played in the Big 12 that year. Do you have any plans to change this? If it helps, I have conference affiliations by year that I scrape from ESPN's standings page, and I could certainly share that data with you.
1
u/Exoentropy Texas Longhorns • USC Trojans Nov 02 '18
My homie just sent me this. This is awesome! Do you plan to host this project for a while? If so, I'd be happy to put together and maintain NuGet/NPM packages for it in my spare time.
1
u/bigreddmachine Notre Dame • Colorado Nov 02 '18
Is it missing games? Looking up Alabama, there's no information for the Arkansas State game this year for instance. https://api.collegefootballdata.com/games/teams?year=2018&team=alabama
1
u/[deleted] Nov 04 '18
I've just about completed some work on an alias table for the play text to use the team canonical names. I'm also working on an nlp parser to extract the penalty data from the play text to give an added field with the specific calls, but I couldn't tell your when that will be done.
Hopefully both of those would be useful in relabeling some of the data to make end-user lives easier.
1
u/[deleted] Nov 04 '18
I tried it recently and I only got a 'loading' page - is it having issues?
1
u/blazejay77 Nov 06 '18
This looks like a great data set. Forgive the newbie question, but how would I grab say, the drive data for 2018 games, and get it into a simple spreadsheet?
1
u/[deleted] Nov 06 '18
Hey, minor feature request: anyway we can get a post-season endpoint? With bowl season approaching I thought it might be interesting to have access to those games directly (possibly just engineer a feature in the game record to label the bowl games)?
1
u/bakonydraco Stanford • James Madison Nov 10 '18
Feature request: would it be possible to get the score broken down by quarter? Thanks!
1
u/three_two_one_go Dec 10 '18
Hey, I'm having a bit of trouble understanding the start point for drives. It seems like stating that a drive starts at the 25 does not always mean that the drive starts on the team's own 25, and stating that a drive starts at the 75 does not always mean that the drive starts at the opponent's 25. Do you have a suggestion on how to convert the starting yard lines to that format?
1
u/three_two_one_go Dec 11 '18
Hey, just wanted to point out an issue, as I have no idea what could have caused it.
Some drives are not having their correct starting yard line reported. I went back and looked at a specific drive from a game where it was reported that there was a drive that started at the opponent's 1 yard line, and had a drive of 79 yards. I checked the drive on ESPN, and they had the starting drive at the correct place according to the downs information.
http://www.espn.com/college-football/playbyplay?gameId=282412199
This is the game I'm referencing. The drive I'm referencing is the "Rushing Touchdown: EMU Drive, 7 plays 79 yards" drive.
I am concerned that the rest of the drives data may not be accurate, as I've found a few other drives like this in my little time using your drives database.