Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dynamitechetan/cricketapi

A Flask API Server with options to get live scores, live commentary and scorecards.
https://github.com/dynamitechetan/cricketapi

api cricbuzz cricket cricket-api cricket-app flask-api ipl python server

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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```