Hi All
I need to get some data for my players
Fan Pts
Projected rank
Actual rank
How can I do that?
I didn't found it in players/stats (
Two different answers:
Fan Pts:
Fantasy points are not a "global" setting -- they're dependent on league settings. So, if you're just asking for something like:
CODE
http://fantasysports.yahooapis.com/fantasy/v2/player/242.p.5228/stats
It won't include any fantasy points because we don't know how you want the fantasy points to be calculated. However, if you asked for something like:
CODE
http://fantasysports.yahooapis.com/fantasy/v2/league/<league_key>/players;player_keys=242.p.5228/stats
And the league you were looking at used points (ie, any NFL league, or point/headpoint leagues in MLB, NBA, or NHL), then the points would be included along with the stats by default.
Ranks:
We only expose two ranks, really: the "overall" rank and the season rank. Season rank is the one that most closely correlates to the "actual" rank, as it's only based on season stats up to this point. You can get that with a request like:
CODE
http://fantasysports.yahooapis.com/fantasy/v2/player/242.p.5228/ranks
The "overall" rank, identified as "OR", maps to the "Projected Rank" that shows up on the site.