Skip to content

tarun7r/Cricket-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cricket API

This is a simple Flask web application that provides an API to retrieve Player Stats, Live Score, Fixtures, Tables and Results data of Cricket Matches ( ODI, T20, Test and IPL ) from Cricbuzz

API Endpoints

The application provides the following API endpoints:

GET /players/{player_name}

This endpoint retrieves information about a cricket player with the given name. The player name should be provided as a URL parameter.

The API returns a JSON object with the following structure:

[
    {
        "Player Name": "Player Name",
        "Country": "Country",
        "Role": "Role",
        "Batting Career Summary 1": {
            "Mode1": "Test",
            "Matches": "Matches",
            "Runs": "Runs",
            "HS": "HS",
            "Avg": "Avg",
            "SR": "SR",
            "100s": "100s",
            "50s": "50s"
        },
        "Batting Career Summary2": {
            "Mode2": "ODI",
            "Matches": "Matches",
            "Runs": "Runs",
            "HS": "HS",
            "Avg": "Avg",
            "SR": "SR",
            "100s": "100s",
            "50s": "50s"
        },
        "Batting Career Summary3": {
            "Mode2": "T20I",
            "Matches": "Matches",
            "Runs": "Runs",
            "HS": "HS",
            "Avg": "Avg",
            "SR": "SR",
            "100s": "100s",
            "50s": "50s"
        }
    }
]

GET /schedule

The API returns a JSON array containing the details of upcoming matches, including date, teams, and tournament.

The API returns a JSON object with the following structure:

["India vs South Africa, 1st ODI","India vs South Africa, 2nd ODI","India vs South Africa, 3rd ODI",...]

GET /live

The API returns a JSON array containing the details of live matches, including team names, scores, and overs played.

The API returns a JSON object with the following structure:

["Australia 45/1 (8.4 ov)","Bangladesh 136/4 (17.4 ov)","India 118/2 (13.3 ov)",...]

Live Score

  • Live Score of all the Matches Going on present


Schedule

  • Schedule of the next Upcoming Matches


Individual PLayer Stats

  • Example: Stats of Virat Kohli | You can use the common name of the Players as well to retrive the datails


About

An unofficial API client for pulling Player Stats, Live Score, Fixtures, Tables and Results data of Cricket Matches

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published