Get Team Roster Stats for multiple dates in one call?

I'm trying to to retrieve a teams stats for multiple dates. Currently, I can only get stats for one date at a time, IE:

http://fantasysports.yahooapis.com/fantasy/v2/team/{TEAM ID}/stats;type=date;date=2013-04-22

I've tried passing the date param as '2013-04-22,2013-04-23,2013-04-25' thinking it may query on yahoo's end returning these 3 days results. No luck, I just get a bad request back.

I'm thinking this is not doable, but thought I'd ask anyways.

1 Reply
  • From what I can tell, you have to request each date individually. The other API formats take multiple requests by using a comma as a separator (e.g. team_keys=league_id.t.1,league_id.t.2,league_id.t.3). When I test passing multiple dates, I do not get a bad request, just that Yahoo returns only the first date.

    I have tried several different formats, but can only get data back from one.

    It would be nice if they updated the API information with this, as well as include that the date format is YYYY-MM-DD.

    Sorry I couldn't be of more help.


Recent Posts

in Fantasy Sports API