Comments (3)
This seems to be working for me. Depending on the error, you may need to URL encode the slashes to %2F
.
I was able to find this by looking at the Advanced Filter for a player.
https://stats.nba.com/player/2544/boxscores-traditional/?Season=2018-19&SeasonType=Regular%20Season&DateFrom=12%2F25%2F2018&DateTo=12%2F25%2F2018
from nba_api.
Using MM/DD/YYYY worked. Didn't need to encode slashes either. Not sure why I was getting error but thanks alot. I think adding the default format, MM/DD/YYYY, in the parameter documentation would be helpful for new users.
from nba_api.
The only issue with this is that all of the parameter and endpoint documentation is auto-generated. In addition, we would need to confirm if all DateTo and DateFrom fields are all in that format. The NBA API looks like it was slowly built overtime with varying designs, so MM/DD/YYYY might not be valid for every single endpoint with the date fields.
from nba_api.
Related Issues (20)
- No Endpoint for Opponent Shooting (not just 2pt and 3pt)
- A Little Help: How to pull player "playtype" stats. Is there an endpoint? HOT 1
- Question: Team defensive stats vs position HOT 3
- [Bug]: Road Games not returning from cumestatsplayergames when using "location_nulalble" parameter HOT 1
- works on local flask server but not on GCP? HOT 3
- Any way to obtain the score that player has in live match? HOT 1
- Slack HOT 4
- Starting Lineups HOT 2
- [Bug]: Potential Assists HOT 1
- [Bug]: Class - PlayerPositionAbbreviationNullable in nba_api/docs/nba_api/stats/library/paramters.md is not working HOT 2
- [Bug]: Why are there decimals in fields that should not have decimals? For example, opponent points. HOT 4
- How do I pull a certain player game splits/stats for the last "n" of games? HOT 1
- Play by Play not starting from 0-0 for these Games
- [Bug]: Name Zhou Qi has no first name in the dictionar
- Game_id HOT 2
- [Bug]: playbyplayv3 throws an error when running get_dat_sets() within get_request HOT 1
- [Bug]: teams.py shows the Golden State Warrior's city name as "Golden State" HOT 1
- No response trying to get the data I need HOT 3
- [Bug]: BoxScoreMiscV3 and related classes and Start_Period and End_Period
- [Feature Request] WNBA players & teams in static data HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nba_api.