Cricscore API is highly optimised to provide near real time live cricket scores. Cricscore API provides RESTful service to retrieve scores of live cricket matches. It is the easiest way to fetch live cricket scores programmatically.
List all available matches.
GET /csa HTTP/1.1 Host: cricscore-api.appspot.comUse this to fetch list of all available matches.
HTTP/1.1 200 OK Content-Type: application/json [{"id":631136,"t2":"Kenya","t1":"Scotland"},{"id":585683,"t2":"England XI","t1":"Essex"},{"id":593618,"t2":"Worcestershire","t1":"Gloucestershire"},{"id":593617,"t2":"Sussex","t1":"Middlesex"},{"id":593615,"t2":"Durham","t1":"Yorkshire"},{"id":593616,"t2":"Surrey","t1":"Kent"},{"id":597924,"t2":"India","t1":"West Indies"}]
Get/Update score for single match.
GET /csa?id=597924 HTTP/1.1 Host: cricscore-api.appspot.com If-Modified-Since:Sun, 30 Jun 2013 23:58:22 ISTUse this to get/update score of a particular match.
HTTP/1.1 200 OK Content-Type: application/json Last-Modified: Mon, 01 Jul 2013 00:34:12 IST [{"de":"WI 25/2 (3.1 ov, J Charles 12*, UT Yadav 2/7)","id":597924,"si":"West Indies 25/1 * v India 229/7"}]Response (no change)
HTTP/1.1 304 Not Modified
Get/Update scores for multiple matches.
GET /csa?id=631136+585683 HTTP/1.1 Host: cricscore-api.appspot.com If-Modified-Since:Sun, 30 Jun 2013 23:58:22 ISTUse this to get scores of multiple matches.
HTTP/1.1 200 OK Content-Type: application/json Last-Modified: Mon, 01 Jul 2013 00:48:02 IST [{"de":"Kenya 230 (49.1 ov, JO Ngoche 1*, NM Carter 1/49) - Match over","id":631136,"si":"Scotland 242/4 v Kenya 230/10 *"},{"de":"EngXI 328/7 (90.0 ov, GP Swann 62*, TT Bresnan 55*, DD Masters 0/54) - Stumps","id":585683,"si":"Essex v England XI 328/7 *"}]Response (few matches changed)
HTTP/1.1 200 OK Content-Type: application/json Last-Modified: Mon, 01 Jul 2013 00:51:00 IST [{"de":"WI 27/3 (6.3 ov, J Charles 12*, DM Bravo 0*, B Kumar 1/18)","id":597924,"si":"West Indies 26/3 * v India 229/7"}]Response (no change)
HTTP/1.1 304 Not Modified