Is it still possible to track offensive fouls *drawn* after the playbyplayv2 endpoint for nba_api got nuked?

Home for all your discussion of basketball statistical analysis.
Post Reply
gnomp
Posts: 7
Joined: Wed Oct 18, 2023 3:10 am

Is it still possible to track offensive fouls *drawn* after the playbyplayv2 endpoint for nba_api got nuked?

Post by gnomp »

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.
Mike G
Posts: 6332
Joined: Fri Apr 15, 2011 12:02 am
Location: Asheville, NC

Re: Is it still possible to track offensive fouls *drawn* after the playbyplayv2 endpoint for nba_api got nuked?

Post by Mike G »

https://www.basketball-reference.com/le ... -play.html

Thru Dec. 18, leaders in Off. Fouls Drawn are shown as :
41 - Camara, Por
21 - Alexander-Walker, Atl
21 - Shead , Tor
19 - Reaves, LAL
18 - Wells, Mem

If you check later and see these totals have risen, you probably have an accurate source.
Mike G
Posts: 6332
Joined: Fri Apr 15, 2011 12:02 am
Location: Asheville, NC

Re: Is it still possible to track offensive fouls *drawn* after the playbyplayv2 endpoint for nba_api got nuked?

Post by Mike G »

Thru Dec. 18, leaders in Off. Fouls Drawn are shown as :
41 - Camara, Por -- now 42
21 - Alexander-Walker, Atl - 23
21 - Shead , Tor -- 25
19 - Reaves, LAL -- 20
18 - Wells, Mem -- 19

and Cissoko, Por - also 19
Post Reply