Where to find current yahoo API game IDs

1.3k views Asked by At

For the Yahoo fantasy sports API, the documentation listing game IDs stops at the year 2012 for NFL. Can anyone tell me how I can get a list of current game IDs.

2

There are 2 answers

1
EGibbs87 On BEST ANSWER

Make a signed GET request to the API's game resource specifying mlb, nhl, nfl, or nba as the sport. I'd provide the link to the API resource, but StackOverflow thinks it's spam and won't let me include it.

If it helps specifically, the GameIDs for this year's MLB and NFL Games are 370 and 371 respectively.

0
SGTMcClain On

Once you are logged in through Oauth you can query all of the "games" the current user has access to using:

https://fantasysports.yahooapis.com/fantasy/v2/users;use_login=1/games;game_keys/?format=json