Enterprise Integration Zone is brought to you in partnership with:

Ross founded the open source Mule® project in 2003. Frustrated by integration "donkey work," he set out to create a new platform that emphasized ease of development and re-use of components. He started the Mule project to bring a modern approach, one of assembly, rather than repetitive coding, to developers worldwide. He is now the Founder and CTO of Mulesoft. Ross is a DZone MVB and is not an employee of DZone and has posted 87 posts at DZone. You can read more from them at their website. View Full User Profile

Sports Fans Cheer for the Newly Opened ESPN API - Sports Data Galore!

03.25.2013
| 3940 views |
  • submit to reddit
Originally authored by David Eason

Recently ESPN opened up their treasure trove of data to the developer community by releasing an API.

It looks great, well documented, REST based, intuitive.  There’s also some useful tools around the API like a few helper methods that return the data required for making use of their advertised capabilities and a useful ‘health status‘ site.

So utilizing the Mule Devkit the possibility of combining our favorite integration engine (i.e. Mule) with a little sporting statistics was very enticing.

Now before we get started let’s look at what do we have here:

  • sports data, the innovation possibilities here are almost endless.  Available categories include:
  • Sports headlines
  • Score & Game schedules
  • Team data
  • Athlete data
  • Research notes (player stats & information)
  • & much, much, more.


Using Mule it would be reasonably straight forward to invoke the ESPN API directly using an http endpoint, or a combination of custom components.  However if I want to package all the methods exposed by this API and make it easily accessible to all of my developers the Mule DevKit is the best option.

Using the DevKit I can create a reusable Mule Connector that abstracts all of the low level implementation details related to interacting with the ESPN API that include, REST specifics (GET, PUT, POST, etc…), security, session management, and the configuration process.  In addition to that once complete I can easily share this component with all developers in my organization using the Mule Studio eclipse update site capability, or alternatively with the entire Mule community on the Mule Extensions site (note: the artist previously known as the Mule Forge).

Published at DZone with permission of Ross Mason, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)