-
Notifications
You must be signed in to change notification settings - Fork 55
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
league/players
endpoint optional week
parameter does not work as expected
#122
Comments
This may be a design of Yahoo! to keep some of their stuff proprietary... but I can dig in more a bit later this week to see why the coverage type is being ignored and where the difference(s) may be. Thanks for pointing it out! |
I could swear I had something like this working at some time, but I see a number of the issues that seem to indicate exactly what you're saying, it only works on the player endpoint... and my guess is that you're looking for additional stats that are league dependant because I don't believe they will give you every single stat, just a selection of stats that is missing what you're looking for? I can try to prod my contacts at Yahoo! but it's been a while... |
It's mainly because I wanted to get a per week breakdown of players' points within the context of a league and didn't want to do the calculation myself. The alternative, which has some benefits over using the All in all, not the end of the world, but it would certainly be nice to be able to get a player's calculated points for a given week within the context of a league. |
100% I've reached out to someone I know at Yahoo! In baseball this is especially frustrating because it won't bring back all of the stats, and if you play in a league that uses, as an example, OPS, there's not really a way to get that. Hopefully I can get some good news from them. |
Only tested this for NFL, so it might be unique to an NFL league since they do the week thing a bit different. When you call the
league.players
endpoint with aleague_key
andplayer_key
and additionally aweek
value such as1
, it ignores the week and just returns the total season points/stats instead.You can reproduce this in the docs tester. I attached a sample response and screenshot from the tester, but you'd need to use a league that you are in since this is a private league.
response.json
This does however work on the
player.stats
endpoint, so it seems to be something about the league specificity. I see thatweek: "1"
gets sent in the request payload, so I wonder if this is unfortunately just a Yahoo limitation not supporting weekly stats per league 🤔The text was updated successfully, but these errors were encountered: