nba_api icon indicating copy to clipboard operation
nba_api copied to clipboard

[Question] Is there an endpoint for NBA transactions?

Open perlovga opened this issue 3 years ago • 5 comments

How can we pull data from this data stream? I can't find the appropriate endpoint https://www.nba.com/stats/transactions/

perlovga avatar Apr 17 '22 07:04 perlovga

Found this through the network tab: https://www.nba.com/stats/js/data/playermovement/NBA_Player_Movement.json

vidhanio avatar Apr 22 '22 17:04 vidhanio

lare reply but thanks for the link. I wrote a couple of functions to get this file and store it in my database. I poll it in a regular interval and get the new items which I put in a queue. This way I push them through to my app which pulls them from the database. An API call would save me some time there.

perlovga avatar Jun 05 '22 18:06 perlovga

This has been moved to "https://stats.nba.com/js/data/playermovement/NBA_Player_Movement.json" btw banged my head a little bit with scraping from dynamic websites before I realised

perlovga avatar Nov 06 '22 10:11 perlovga

For those that may be looking for additional transaction data. I released an API earlier this year for ProSportsTransactions.

rsforbes avatar Oct 05 '23 01:10 rsforbes

Amazing @rsforbes - that's a great API. I'm the creator of the DARKO NBA projection site (www.darko.app), and I may try and integrate some of that soon.

kmedved avatar Oct 05 '23 21:10 kmedved