nba_api
NBA_Tutorials
nba_api | NBA_Tutorials | |
---|---|---|
55 | 5 | |
2,249 | 151 | |
- | - | |
7.1 | 0.0 | |
21 days ago | over 1 year ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nba_api
-
An Analysis of How Chris Paul Has Affected His Teams (And How It May Impact the Warriors)
Thanks to the people putting together the open source nba_api, as well as the people at Basketball Reference and the NBA stats page.
-
Stat Changes from Regular Season to Playoffs: 2022 - 2023 Season
NBA Stats API
-
Scott Foster gets cracked in the face by Lebron. And Foster has his whistle in his mouth when it happens.
Yea ref stuff is hard to acquire. NBA api could b helpful tho and this is prob a good place to start
-
NBA Game IDs to Playoff Game Numbers
I think you'll find this useful: https://github.com/swar/nba_api.
- Experiences with the different nba.com APIs? Which one would you recommend for play-by-play data to calculate player-specific ORtg or DRtg in a game?
- Don't have much experience using APIs, I'm trying to use one but do not know how to get it set up properly
- Trying to use an API in Python but I don't know how to set it up properly. Can I get some help?
-
[OC] How does playoff basketball differ from the regular season? Analyzing team stats over the past 40 seasons
All data were collected using the nba_api. The dataset consists of per-game stat averages for all teams starting from the 1983-84 season through the 2021-22 season. In total: 1103 regular season teams, 624 of which made the playoffs in their respective years. Traditional stats include: PTS, FGM, FGA, FG_PCT, FG3M, FG3A, FG3_PCT, FTM, FTA, FT_PCT, OREB, DREB, REB, AST, STL, BLK, TOV, PF, PLUS_MINUS. Advanced stats include: NET_RATING, OFF_RATING, DEF_RATING, EFG_PCT, TS_PCT, PACE, OREB_PCT, DREB_PCT, REB_PCT, AST_PCT, AST_TO, AST_RATIO, TM_TOV_PCT. Note: for plus/minus and all of the advanced stats, I could only get data beginning from the 1997-98 season onwards, which resulted in 743 total regular season teams, 400 of which made the playoffs.
-
Downloading stats from nba.com/stats
Is it not on the nba api? https://github.com/swar/nba_api/tree/master/docs/nba_api/stats/endpoints
- [Highlight] Poole gets a tech for passing the ball to the ref
NBA_Tutorials
-
Our starting lineup and why small sample sizes are deceptive.
The below (text between the horizontal rules) are excerpts from [this](https://www.theringer.com/2023/4/13/23681148/2023-nba-playoff-preview-how-to-use-and-not-use-lineup-data) really great explainer, which was published in April 2023, about the pitfalls of NBA lineup data in small sample sizes. It also serves as an explanation for why data scientist [Andrew Patton](https://www.andrewpatton.org) created the tool ["Should I use this Rating?" ](https://apanalytics.shinyapps.io/should_I_use_this_rating/) (which includes the Warriors starting 5's ORTG, DRTG, and possessions played plugged into it) from which the screenshot in this post was taken. All of the code for the tool as well as an extremely detailed and in depth breakdown of how the tool works and why can be found [here](https://github.com/rd11490/NBA_Tutorials/tree/master/five_man_net_rating).
-
[OC] I Hate Traditional Rebounding Stats, So I Made My Own (A.K.A. Who Are the Most Selfless/Selfish Rebounders)
If you use python you can look up nba_scraper and pbpstats packages. Their source code pulls from the NBA API endpoints. Also here is a GitHub repo showing how to find the specific NBA API endpoint (and for other websites)
- [OC] 5 Best Overall 5-Man Lineups this Season
-
How learning about a basketball statistic changed how I see the world
His RAPM calculations are also open sourced and available on Github here: https://github.com/rd11490/NBA_Tutorials.
-
How do they do it!?
The NBA tracks data, so somewhere in a database they have information on every shot like (x,y) position on the court, closest defender distance, number of dribbles before the shot, etc. As for how they get these labels, they either have a person watch film and track or they use something complicated like computer vision to generate them. But you can do analytics on them yourself if you can get your hands on this data, which you can do by going to the NBA stats website or NBA Shot Charts.com. An NBA team would have direct access to a db, but you can get the data yourself by going to one of those sites, opening your network tab in your browser, and grabbing the data from there and saving it on your machine. Or you can follow a tutorial like this. Once you have the data, you can play around with it in either R or Python (or even Excel). I’m not sure which of R or Python is more in use by teams but I’ve heard you’re supposed to just pick one and learn it well.
What are some alternatives?
nbastatR - NBA Stats API Wrapper and more for R
ImportJSON - Import JSON into Google Sheets, this library adds various ImportJSON functions to your spreadsheet
nba-stats-analysis - Jupyter Notebooks with Applications of Data Science and Analysis with NBA data, using the information available through the NBA Stats API.
Python-NSE-Option-Chain-Analyzer - The NSE has a website which displays the option chain in near real-time. This program retrieves this data from the NSE site and then generates useful analysis of the Option Chain for the specified Index or Stock. It also continuously refreshes the Option Chain and visually displays the trend in various indicators useful for Technical Analysis.
NBA-attendance-prediction - Attendance prediction tool for NBA games using machine learning. Full pipeline implemented in Python from data ingestion to prediction. Attained mean absolute error of around 800 people (about 5% capacity) on test set.
td-ameritrade-python-api - Unofficial Python API client library for TD Ameritrade. This library allows for easy access of the Standard API and allows users to build data pipelines for the Streaming API.
nba-sql - :basketball: An application to build an NBA database backed by MySQL, Postgres, or SQLite
pyracing - A complete overhaul of the original ir_webstats; pyracing is an API client/wrapper for iRacing, the leading online simracing service. pyracing handles the queries to iRacing's (known) URL endpoints and maps the returned JSON data into structured objects, allowing for easier access to the data.
vsphere-automation-sdk-python - Python samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
sports-analytics - Data collection, processing, visualization, modeling, and ideation in the space of sports analytics
hoopR - An R package to quickly obtain clean and tidy men's basketball play by play data.
Basketball_Analytics - Repository which contains various scripts and work with various basketball statistics