CricketAPI icon indicating copy to clipboard operation
CricketAPI copied to clipboard

A Flask API Server with options to get live scores, live commentary and scorecards.

CricketAPI


				Cricket API - Live Scores | Commentary | ScoreCard

CricketAPI aims to provide free access to all cricket matches via API for all ODIs, Tests & T20s (International and IPL).

It includes following features:

  • Scorecards of matches
  • Ball by Ball Commentary
  • Live Scores

Usage

  • getAllMatches
    http://localhost:1234/getMatches
    This endpoint will return list of all Live and Upcoming matches.

  • liveScore
    http://localhost:1234/livescore?matchId={matchID}
    This endpoint will return live scores of {matchID}.

  • scorecard
    http://localhost:1234/scorecard?matchId={matchID}
    This endpoint will return scorecard of {matchId}.

  • getAllMatches
    http://localhost:1234/commentary?matchId={matchID}
    This endpoint will return ball by ball commentary of {matchID}.

Running and Setup

Tested on python 2.7
pip install -r requirements.txt
python server.py

Heroku

http://cricketapi.herokuapp.com/{endpoint}
eg. http://cricketapi.herokuapp.com/getMatches