New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CumeStatsPlayer does not work. #309
Comments
@YKhanTU: The game_ids should be formatted as Here's a valid URL: https://stats.nba.com/stats/cumestatsplayer?LeagueID=00&Season=2022-23&SeasonType=Regular Season&PlayerID=1628369&gameIDs=0022200186|0022200176|0022200163|0022200152 Actual Site: https://www.nba.com/stats/cumestats?ReportType=Player&PlayerID=1628369 You can use the browsers Dev Tools to view the call. All that being said, I think we could certainly make this more clear, or put in an option that simply takes a dictionary in; that would have been my first thought. Hope that helps. |
Awesome. I didn't realize it needed to be formatted in that way. That would be nice if we could pass in an array or dictionary in as well. Thanks for the help. |
I am having trouble even using one game id. I tried multiple ones with the format you suggested and it also does not work. This line returns an error. I tried just using the game_ids as a single value thats not a string. I tried using your format hoping multiple games would return something like so : game_ids='22001069|22001062'. I have had no other trouble with your other endpoints I have used so far. Here is the error that comes up. Traceback (most recent call last): |
At least of now, it's probably best to update the documentation for this endpoint. It's unclear that the required input format is 1. a string and 2. the string needs to follow the format Secondly, this is probably an implementation detail that can be handled by the |
CumeStatsPlayer doesn't seem to be working properly.
It requires a list of GameIDs, which are provided when I fetch all game IDs for a certain player's season (in this case, Jason Tatum 2021-22). Despite giving a ton of GameIDs, I only get the totals for 1 game? I am confused. It even says GP/GS are both values of 1 in the response.
Below is what I am executing:
Even putting hand-picked game IDs into the game_ids parameter gives me the same result, cumulative stats for only 1 game despite giving a bunch of game IDs that are valid.
The text was updated successfully, but these errors were encountered: