0

Pull Matchup start / end dates

From the league.scoreboard resource, I see matchups listed and the week it's associated with. How can I actually figure out when these matchups start, or better, when does each week start (in terms of a hard date).

Maybe I'm not understanding something about the weeks and how dates will work with them.

Also, do you have a full list of matchup statuses? And descriptions for each?

Thanks!

by
6 Replies
  • Hm. That's a good idea, providing the week start and end dates in some form. I'll look into it.

    The matchup statuses you should see are:
    • preevent: The matchup has not yet started.
    • midevent: The matchup is in progress.
    • postevent: The matchup is done.
    0
  • Hey Sean,
    Thanks for the reply!

    For now, is there some good way of pre-determining the start and end dates?

    - Art

    QUOTE (Sean Montgomery @ Aug 9 2010, 10:54 PM) <{POST_SNAPBACK}>
    Hm. That's a good idea, providing the week start and end dates in some form. I'll look into it.

    The matchup statuses you should see are:
    • preevent: The matchup has not yet started.
    • midevent: The matchup is in progress.
    • postevent: The matchup is done.
    0
  • QUOTE (koden @ Aug 9 2010, 11:08 PM) <{POST_SNAPBACK}>
    Hey Sean,
    Thanks for the reply!

    For now, is there some good way of pre-determining the start and end dates?

    - Art

    Not that I can think of, unfortunately. If you're just looking at NFL, I can pretty much tell you that all the weeks start on Tuesday and end the next Monday (except week 1, which should start on Thursday, Sept. 9). For other games, it'll vary a bit more and we don't expose it in any other way that you can really consume programmatically.
    0
  • QUOTE (Sean Montgomery @ Aug 9 2010, 11:18 PM) <{POST_SNAPBACK}>
    Not that I can think of, unfortunately. If you're just looking at NFL, I can pretty much tell you that all the weeks start on Tuesday and end the next Monday (except week 1, which should start on Thursday, Sept. 9). For other games, it'll vary a bit more and we don't expose it in any other way that you can really consume programmatically.


    So if I want to notify people about their matchup, showing the current one, can I just assume which matchup it is depending on the tuesday to monday time constraint?
    0
  • Also, is there some value that tells me when week 1 starts? Does this date vary?
    0
  • QUOTE (koden @ Aug 12 2010, 05:35 AM) <{POST_SNAPBACK}>
    So if I want to notify people about their matchup, showing the current one, can I just assume which matchup it is depending on the tuesday to monday time constraint?

    Well, if you want to get the current matchup, you can just ask for "week=current" -- most of our date based services should respect that. I mean, you'll also get the current week if you just ask for the scoreboard without a week specified, but I guess the week=current makes it feel more official. We also have a start_week, current_week, and end_week in the league XML.

    CODE
    http://fantasysports.yahooapis.com/league/<league key>/scoreboard;week=current


    And we'll tell you which numeric week that it is in the XML response, so there really shouldn't be any guessing involved. As for your question about when week 1 starts, no, there isn't any other value currently in the services that exposes that.
    0

Recent Posts

in Fantasy Sports API