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

Deciphering Yahoo's request requirements #20

Open
Eeets opened this issue Jan 12, 2021 · 1 comment
Open

Deciphering Yahoo's request requirements #20

Eeets opened this issue Jan 12, 2021 · 1 comment

Comments

@Eeets
Copy link

Eeets commented Jan 12, 2021

This resource is incredibly useful - thank you so much for working on it.
I'm curious about how you decipher some of yahoos requirements when submitting requests. For example, when trying to get player stats for a previous season:
https://fantasysports.yahooapis.com/fantasy/v2/league/{league_code}/players;position=G;start=0/stats;season=2018
doesn't seem to work but adding "type=season" to the request as you have done in your player_stats api works perfectly.
https://fantasysports.yahooapis.com/fantasy/v2/league/{league_code}/players;position=G;start=0/stats;type=season;season=2018

How do you know to do this? I've looked through the api documentation and although it's helpful 'enough' it certainly doesn't explain things in this level of detail.

@spilchen
Copy link
Owner

I discovered a few APIs by trial-and-error. But there was some data that I was not able to find the APIs for (e.g. Yahoo! predictions). I agree the their documentation was lacking in detail.

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

No branches or pull requests

2 participants