Busy making things: tinycast, github, links, photos, @mc.

Accidental APIs: NFL edition

Posted: September 9th, 2007 | Author: | Filed under: Web Services | 55 Comments »

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.


55 Comments on “Accidental APIs: NFL edition”

  1. 1 Brad Anderson said at 1:24 pm on September 14th, 2007:

    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 NFL said at 4:05 am on October 8th, 2007:

    NFL…

    I believe, thats only your oppinion…

  3. 3 Chris said at 5:28 pm on October 20th, 2007:

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

  4. 4 www.results-videos-news.com said at 7:15 am on December 31st, 2007:

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

  5. 5 097e7b98b04e said at 10:53 am on May 10th, 2008:

    097e7b98b04e…

    097e7b98b04ef1824099…

  6. 6 football said at 5:48 pm on October 25th, 2009:

    nice find, props!

  7. 7 Joel Hill said at 6:37 pm on December 15th, 2009:

    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

  8. 8 Hitteerealp said at 1:05 am on March 5th, 2010:

    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

  9. 9 Acer said at 11:55 am on March 31st, 2010:

    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.

  10. 10 Chronograph said at 5:19 am on April 18th, 2010:

    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.

  11. 11 Longines Automatic said at 9:44 am on April 18th, 2010:

    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.

  12. 12 Longines Master said at 2:33 pm on April 18th, 2010:

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

  13. 13 Watches said at 7:57 pm on May 27th, 2010:

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

  14. 14 Marcy said at 2:41 pm on June 9th, 2010:

    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.

  15. 15 Britney said at 6:23 pm on June 9th, 2010:

    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.

  16. 16 Chuck said at 9:54 pm on June 9th, 2010:

    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.

  17. 17 Michael said at 4:12 pm on June 28th, 2010:

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

  18. 18 Top Sports Star said at 1:41 am on July 20th, 2010:

    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.

  19. 19 Andrew Carter said at 2:23 pm on September 19th, 2010:

    I ended up writing a little JSON parser off the scores widget from the NFL homepage feed. Check it out! http://andrewroycarter.com/php/parsing-nfl-scores-json/

  20. 20 Rock said at 5:57 am on September 24th, 2010:

    I was curious how you “fire up Firebug and see where the data is coming from” I’ve tried searching firebug results for “.json” with no luck. Any tips?

  21. 21 Shirt XXL said at 1:09 pm on October 13th, 2010:

    “I usually don’t publish in Weblogs but your website pressured me to, incredible do the job.!!! beautiful …”

  22. 22 Phuong Ragone said at 12:16 am on November 20th, 2010:

    Considerably, this post is really the sweetest on this topic. I harmonise with your conclusions and will thirstily look forward to your incoming updates. Saying thanks will not just be sufficient, for the phenomenal clarity in your writing. I will directly grab your rss feed to stay informed of any updates. Admirable work and much success in your business dealings! Please excuse my poor English as it is not my first tongue.

  23. 23 http://manassasusedcars.com said at 1:19 am on January 3rd, 2011:

    You made a number of fine points there. I did a search on the subject matter and found mainly people will agree with your blog.

  24. 24 Aleisha Walterscheid said at 6:39 pm on January 6th, 2011:

    Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  25. 25 propecia said at 4:29 pm on January 24th, 2011:

    I apologise, but, in my opinion, you commit an error. I suggest it to discuss. Write to me in PM, we will talk.

  26. 26 klicka här said at 11:14 pm on January 27th, 2011:

    dansband Chill. I’ll be over here in the corner, drinking my Kool-aid.

  27. 27 kantoormeubel said at 12:15 pm on January 28th, 2011:

    http://www.rockmart.nl/ Thanks for that awesome posting. It saved MUCH time :-)

  28. 28 click here said at 6:26 pm on January 28th, 2011:

    http://gradyon91.chatterpages.org/uncategorized/giving-blowjob/ Thanks for that awesome posting. It saved MUCH time :-)

  29. 29 OciFkvEv said at 12:28 pm on February 1st, 2011:

    HyECRH

  30. 30 Miesha Staunton said at 1:33 am on February 2nd, 2011:

    I’d be inclined to comply with you one this subject. Which is not something I usually do! I really like reading a post that will make people think. Also, thanks for allowing me to comment!

  31. 31 http://blog.lezzet.com.tr/health/ said at 3:59 am on February 2nd, 2011:

    http://blog.lezzet.com.tr/health/ Thanks for that awesome posting. It saved MUCH time :-)

  32. 32 squirting said at 12:43 pm on February 3rd, 2011:

    http://goarticles.com/article/4077826 Thanks for that awesome posting. It saved MUCH time :-)

  33. 33 instant payday loans said at 4:43 am on February 5th, 2011:

    It took me a while to read through every one of the comments but I am glad I did. It sure beats doing work! Good strategy to pass the time in my uninteresting workplace

  34. 34 instant payday loans said at 11:16 pm on February 5th, 2011:

    It took me some time to study through all the comments but I’m glad I did. It certain beats working! Good approach to pass the time in my boring workplace

  35. 35 Keygen Mckenna said at 9:38 am on February 8th, 2011:

    I shared your words in my twitter account, i like it. Theme rather popular in my friends.

  36. 36 football said at 12:53 pm on February 8th, 2011:

    Hello Everyone! I like watching [url=http://www.finsfootball.com/bbc-football]bbc football[/url]. I usually watch [url=http://www.finsfootball.com]football online[/url] as I do not have PVR. How about you?

  37. 37 alexis texas said at 2:09 pm on February 9th, 2011:

    http://www.ealexistexas.com/ Thanks for that awesome posting. It saved MUCH time :-)

  38. 38 bangkok reseguide said at 11:59 am on February 10th, 2011:

    i’ve visited this blog a few times now and i have to tell you that i find it quite good actually. continue doing what you’re doing! :p

  39. 39 paketresa said at 10:25 pm on February 10th, 2011:

    continue with the the great work on the site. I kinda like it! :) Could maybe use some more updates more often, but i am sure that you got other things stuff to do like we all have to do unfortunately. =p

  40. 40 zero friction marketing said at 1:44 am on February 12th, 2011:

    You completed a number of good points there. I did a search on the subject and found the majority of folks will agree with your blog.

  41. 41 Issac Maez said at 12:03 pm on February 13th, 2011:

    Hey, I searched for this blog on Bing and just wanted to say thanks for the excellent read. I would have to agree with it, thank you again!

  42. 42 basic bank accounts said at 12:23 pm on February 14th, 2011:

    You can find wide range of approaches to remain unchanged by your poor credit rating. But you can have a number of drawbacks once you obtain the bad credit bank creditors.
    basic bank account

  43. 43 tory-burch-boots said at 10:37 pm on February 14th, 2011:

    cheap tory burch shoes …

    Tory Burch flip flop online sale.For the younger working expat women,look at these tory burch Shoes.these tory burch flip flops are definitely fun,yet the glossy design and round-toe stay these lovely.These tory burch shoes with multiple.New arrivel To…

  44. 44 Tory Burch 2011 New Styles said at 10:43 pm on February 14th, 2011:

    tory burch shoe sale …

    Tory Burch flip flop online sale.For the younger working expat women,look at these tory burch Shoes.these tory burch flip flops are definitely fun,yet the glossy design and round-toe stay these lovely.These tory burch shoes with multiple.New arrivel To…

  45. 45 the view sonic monitors said at 7:39 am on February 15th, 2011:

    Thanks for that awesome posting. It saved a lot of time i like it article for your internet here and tire pressure gaugestricycle for adults

  46. 46 Vigrx Plus pill said at 10:32 am on February 15th, 2011:

    I love the dear data you be offering on your articles. I will be able to bookmark your weblog and feature my children check up here generally. I am rather positive they’ll be informed a variety of new stuff here than any one else!

  47. 47 Bali Reseguide said at 3:38 pm on February 15th, 2011:

    i have checked this site a few times now and i have to tell you that i find it quite great actually. continue doing what you’re doing! ;)

  48. 48 Resor said at 8:26 pm on February 15th, 2011:

    i’ve checked this site a few times now and i have to say that i find it quite exeptional actually. continue doing what you’re doing! ;)

  49. 49 Rachelle Cid said at 8:43 am on February 16th, 2011:

    Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

  50. 50 Shaunna Reddout said at 11:27 am on February 16th, 2011:

    terrible listing you’ve occupy

  51. 51 Paketresor said at 9:49 pm on February 16th, 2011:

    kinda enjoyed the article that you published actually. it just isn’t that easy to discover great text to read (you know READ and not simply going through it like some zombie before going somewhere else), so cheers man for not wasting any of my time! :D

  52. 52 acai beere said at 11:36 am on February 17th, 2011:

    Exactly what I was looking for. I’m using this in article, you’ll get a link back of course.

  53. 53 riya said at 1:37 am on February 18th, 2011:

    That’s thought-provoking point of view. I wanr to return to your blog couple days later.

  54. 54 mikaela said at 6:16 am on February 18th, 2011:

    Looks like, trackback doesn’t work. Can I ping your text?

  55. 55 praca wroclaw said at 5:43 am on February 21st, 2011:

    If ifs were gifts, every day would be Christmas. ~Charles Barkley