Accidental APIs: NFL edition

NFL flash app powered by JSON

These days whenever I find an interesting interactive/updating flash app I tend to fire up Firebug and see where the data is coming from. Quite often there’s an XML data feed somewhere that the flash app is being fed with. For example, you can get an XML feed of parking space availability or a list of airlines with gate information at Kansas City International Airport. As with many XML feeds designed for consumption with Flash, these feeds aren’t always well-formed but the data is there for the taking.

I went on a similar quest after checking in on my Redskins at NFL.com. I was pleasantly suprised to find JSON driving the live game update instead of XML. There are three JSON feeds exposed on the live game update page.

The first is the game-specific updates. This feed includes a score breakdown by quarter, who has possesion, time left, and the last few recent plays, along with a few other things that weren’t obvious at first glance.

The second drives the league-wide scoreboard at the top of the page. This includes game date/time, the teams involved, what quarter they’re in, who has the ball, and what the score is. From time to time this feed will also include extra information such as a recent score change.

The third feed includes information about weekly leaders in the NFL. This includes the top five passing, rushing, receiving, and scoring players this week. That sounds like great information to have programmatic access to if you’re in to fantasy football.

It makes me happy to see big companies use XML and JSON feeds for their flash apps rather than a proprietary alternative. It’s also fun to see things like Prototype and Sciptaculous on a site like NFL.com. These feeds are rarely documented, but for the large part are self-documenting. Some of the subtitles in teh NFL feeds can most likely be determined by watching the feed and the flash display over time.

18 Responses to “Accidental APIs: NFL edition”


  1. 1 Brad Anderson Sep 14th, 2007 at 1:24 pm

    Hi,

    I’m wondering if you’ve ever come across a drive summary or ‘plays’ data feed that would have clock time, down, distance, yardline, drive number, play number, yards, players involved, etc.

    I’ll be taking a look in Firebug at some of the sites that I follow to see if I can find it, but was wondering what you had come across.

    I’m building a database of plays and am going to review video to add some attributes to each play, like formation, etc. It’s for a newspaper columnist, so hopefully he will have a lackey going thru the video ;)

    Cheers,
    Brad

    btw, Erlang ftw! although I’m into D and Python/Django as well…

  2. 2 Chris Oct 20th, 2007 at 5:28 pm

    Really nice find. I’ve been using them to make live updates for my Pick ‘Em pool. Thanks for the help!

  3. 3 www.results-videos-news.com Dec 31st, 2007 at 7:15 am

    Statement that a major publication supports the present view: http://www.results-videos-news.com/index.html

  4. 4 football Oct 25th, 2009 at 5:48 pm

    nice find, props!

  5. 5 Joel Hill Dec 15th, 2009 at 6:37 pm

    Hey Matt,

    I just came across your blog and loved it. I know its a little dated by now, but the information that you blogged about is still relevant.

    I wrote my own blog about this similar topic.

    http://www.wecodethings.com/blog/?p=31

  6. 6 Hitteerealp Mar 5th, 2010 at 1:05 am

    The action taken to local and national disasters is awesome but it’s a real shame that so many citizens take advantage of the negative situations.

    I mean everytime there is an earthquake, a flood, an oil spill - there’s always a group of heartless people who rip off tax payers.

    This is in response to reading that 4 of Oprah Winfreys “angels” got busted ripping off the system. Shame on them!
    http://www.cbsnews.com/blogs/2009/08/19/crimesider/entry5251471.shtml

  7. 7 Acer Mar 31st, 2010 at 11:55 am

    This is in unison of the pernicious effects of affirmative action. In our PC/affirmative skirmish mores, we likely to discern the achievements and promotions of minorities as a consequence of affirmative effectiveness policies as contrasted with of individual diligence and talent. This undermines these vastly achievements.
    Another delinquent here is that it sets human honesty at odds with the higher divine morality. If the higher justice is going to adjudicator the Extermination, fatal virus outbreaks, etc, as advantageous, while human morality purpose judge them bad, then the ‘righteous’ in each of these moralities are different. Satisfactory on the higher habits is not what we mean about good.

  8. 8 Chronograph Apr 18th, 2010 at 5:19 am

    Eating, loving, singing and digesting are, in actually, the four acts of the jocose opera known as life, and they pass like bubbles of a bottle of champagne. Whoever lets them contravene without having enjoyed them is a entire fool.

  9. 9 Longines Automatic Apr 18th, 2010 at 9:44 am

    Eating, loving, singing and digesting are, in fact, the four acts of the mirthful opera known as life, and they pass like bubbles of a bottle of champagne. Whoever lets them tell without having enjoyed them is a entire fool.

  10. 10 Longines Master Apr 18th, 2010 at 2:33 pm

    May your passion be the stone of corn stuck between your molars, perpetually reminding you there’s something to tend to.

  11. 11 Watches May 27th, 2010 at 7:57 pm

    It’s not solidified to institute decisions when you recall what your values are.

  12. 12 Marcy Jun 9th, 2010 at 2:41 pm

    I feel I just have been acknowledged about this topic
    at bar 2 days ago by a colleague, but at that time
    it didn’t caugh my attention.

  13. 13 Britney Jun 9th, 2010 at 6:23 pm

    I feel I allready have been acknowledged about this issue
    at job 1 day ago by a colleague, but at that time
    it didn’t caugh my attention.

  14. 14 Chuck Jun 9th, 2010 at 9:54 pm

    I think I allready have been acknowledged about this topic
    at bar 1 day ago by a mate, but at that moment
    it didn’t caugh my attention.

  15. 15 Michael Jun 28th, 2010 at 4:12 pm

    This is awesome. I have been looking for this. Great article, thanks for sharing

  16. 16 Top Sports Star Jul 20th, 2010 at 1:41 am

    Football fans who want to watch every game have often been disappointed by blacked out games. However, recent technological advances now make it possible to watch NFL games online, even the games that have been blacked out in your area. The really convenient thing about this technology is that you can watch NFL games from anywhere.

  1. 1 NFL Trackback on Oct 8th, 2007 at 4:05 am
  2. 2 097e7b98b04e Trackback on May 10th, 2008 at 10:53 am

Leave a Reply