I am trying to use the API to return stats for the Texas Longhorns.
I am not sure where to find the team_key or player_key to retrieve this information!
Please, any advice on how to get these lists of NCAAF team and player stats through the Yahoo API would be great! I am trying to write a custom plugin to display this information on a fan blog.
The api calls below work to get team key and player key information from the perspective of a logged in user. It is not clear to me if there is a public, i.e., not logged in user, api that would meet your needs.
The followed api call returns a list of teams for the logged in user. The api call returns, among other things, a team key. game_key would have to be for the NCAAF:
http://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;game_keys=" + game_key + "/teams
With the team key, the following api call returns, among many things, a player_key:
http://fantasysports.yahooapis.com/fantasy/v2/team/" + teamKey + "/roster;week=" + week
in Fantasy Sports API