Skip to content
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

How do I retrieve advanced stats in place of traditional stats? #479

Open
ChristopheBrown opened this issue Nov 14, 2024 · 2 comments
Open
Labels
question Inquiry from community

Comments

@ChristopheBrown
Copy link

I found baked in the API that there is a parameter to select Advanced Stats instead of Traditional ones: https://github.com/swar/nba_api/blob/master/docs/nba_api/stats/library/parameters.md#stattype

I would assume this is reached via the playercareerstats endpoint. But I see no documentation on how to structure the request to fetch advanced stats instead of traditional ones

The outputs example of playercareerstats shows no mention of this either.

@rsforbes rsforbes added the question Inquiry from community label Dec 3, 2024
@wild-bill
Copy link

What stats are you looking for specifically? PlayerCareerStats does not return advanced stats. It's possible they're available elsewhere.

The StatType parameter is related to the homepagev2 endpoint (https://github.com/swar/nba_api/blob/master/docs/nba_api/stats/endpoints/homepagev2.md), but it looks like it only returns the top 5 leaders in each category.

@ChristopheBrown
Copy link
Author

ChristopheBrown commented Dec 5, 2024

I'm looking for advanced stats like win shares, box +/-, PER, VORP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Inquiry from community
Projects
None yet
Development

No branches or pull requests

3 participants