swar / nba_api

An API Client package to access the APIs for NBA.com
MIT License
2.48k stars 532 forks source link

[Question] Is there an endpoint for NBA transactions? #253

Open perlovga opened 2 years ago

perlovga commented 2 years ago

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

vidhanio commented 2 years ago

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

perlovga commented 2 years ago

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 commented 1 year ago

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

rsforbes commented 1 year ago

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

kmedved commented 1 year ago

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.