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.
Comments
55 responses to “Accidental APIs: NFL edition”
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…
NFL…
I believe, thats only your oppinion…
Really nice find. I’ve been using them to make live updates for my Pick ‘Em pool. Thanks for the help!
Statement that a major publication supports the present view: http://www.results-videos-news.com/index.html
097e7b98b04e…
097e7b98b04ef1824099…
nice find, props!
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
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
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.
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.
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.
May your passion be the stone of corn stuck between your molars, perpetually reminding you there’s something to tend to.
It’s not solidified to institute decisions when you recall what your values are.
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.
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.
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.
This is awesome. I have been looking for this. Great article, thanks for sharing
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.
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/
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?
“I usually don’t publish in Weblogs but your website pressured me to, incredible do the job.!!! beautiful …”
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.
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.
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!
I apologise, but, in my opinion, you commit an error. I suggest it to discuss. Write to me in PM, we will talk.
dansband Chill. I’ll be over here in the corner, drinking my Kool-aid.
http://www.rockmart.nl/ Thanks for that awesome posting. It saved MUCH time 🙂
http://gradyon91.chatterpages.org/uncategorized/giving-blowjob/ Thanks for that awesome posting. It saved MUCH time 🙂
HyECRH
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!
http://blog.lezzet.com.tr/health/ Thanks for that awesome posting. It saved MUCH time 🙂
http://goarticles.com/article/4077826 Thanks for that awesome posting. It saved MUCH time 🙂
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
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
I shared your words in my twitter account, i like it. Theme rather popular in my friends.
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?
http://www.ealexistexas.com/ Thanks for that awesome posting. It saved MUCH time 🙂
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
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
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.
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!
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
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…
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…
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
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!
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! 😉
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! 😉
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.
terrible listing you’ve occupy