Is it still possible to track offensive fouls *drawn* after the playbyplayv2 endpoint for nba_api got nuked?
Posted: Thu Dec 18, 2025 11:42 pm
Nerdy question but also offensive fouls drawn can be an important input for box defensive models. When playbyplayv2 was still alive, the 'PLAYER2_ID' column allowed you to see which player drew the offensive foul whenever one occurred. But playbyplayv3 only has one 'personId' column which records the offending player for an offensive foul, and not the player who drew the foul. Relatedly, playbyplayv3 only having one 'personId' column also makes it needlessly difficult to track assists as well. It's truly just much worse than playbyplayv2 and I don't know what problem this update solved.
Anyways, are there any workarounds that anyone knows of? I've tried sifting through all the other possible endpoints but nothing seems to track total offensive fouls drawn by each player.
Anyways, are there any workarounds that anyone knows of? I've tried sifting through all the other possible endpoints but nothing seems to track total offensive fouls drawn by each player.