Over a million developers have joined DZone.

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

· Integration Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

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).

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

Topics:

Published at DZone with permission of Ross Mason, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}