1

Missing games played category (believe it's a bug)

I've requested the following resource: /team/304.l.{league_id}.t.{team_id}/stats and noticed it correctly only lists categories I participate in, but it is missing a category I am participating in: category 0, games played (GP). This category is critical to my app and it would be awesome if you guys could look into it.

For the NBA, stat category 0 is

<stat>
 <stat_id>0</stat_id>
 <name>Games Played</name>
 <display_name>GP</display_name>
 <sort_order>1</sort_order>
 <position_types>
  <position_type>P</position_type>
 </position_types>
</stat>

But for my league and team, I only get these categories: 3, 4, 5, 6, 7, 8, 10, 12, 15, 16, 17, 18, 19

I play in a rotisserie league and see the GP category listed for my league on Yahoo's website.

Thanks, Bryan

by
3 Replies
  • Or maybe it's not included because I'm not getting points for games played in my league. Sorry. But, how can I get this information from the API?

    0
  • I found an old post by Sean Montgomery, where he added the ability to append 'extra_stats_ids' to /league/{league_key}/players/stats;extra_stat_ids=0. This works great for player stats. Would it be possible to do it for team stats so that /team/304.l.{league_id}.t.{player_id}/stats;extra_stat_ids=0 works the same? Or maybe add it as an element of team, called games_played?

    3
  • I had this same problem and ended up fetching player stats outside of the league context. this will return all available statistics from yahoo.

    league context: http://fantasysports.yahooapis.com/fantasy/v2/league/303.l.{league_id}/players game context: http://fantasysports.yahooapis.com/fantasy/v2/game/nhl/players

    I like the 'extra_stats_ids' suggestion by Bryan. If the extra GP stat is all you need outside of the categories used by your league then that might be the way to go.

    0

Recent Posts

in Fantasy Sports API