Search code examples
web-servicesapiespn

Does ESPN Cricinfo have an API?


Has espncricinfo.com exposed an API? I'm interested in live scores, news, and maybe photos.

Up until now I have only known of the rss feed..


Solution

  • I do not believe an API exists - unfortunately.

    What a number of users have done - and what is suggested by cricinfo themselves - is use Yahoo Pipes to merge a number of different feeds. You can then get the resultant pipe in JSON and other formats.

    It's probably best demonstrated by example by looking at a 'Latest cricket scores' pipe here: http://pipes.yahoo.com/pipes/pipe.info?_id=tMcVGcqn3BGvsT__2R2EvQ

    Of course, it would be nice to be able to search the statistics and a REST service which returns the bare data for a statsguru search, but the only suggestion I have at present is to build statsguru queries manually with wrappertype=print appended and then use xpath to filter out the data you require.

    An example statsguru query:

    http://stats.espncricinfo.com/ci/engine/player/13418.html?class=1;template=results;type=allround;wrappertype=print