Performance API has the collection of data since 2012 and gives the stats of the player & team based on the historical data. It is highly helpful for the Fantasy App providers to provide the player stats & performance to the users. It may help users to select the players based on the stats.
To show the Player Historical Stats & Performance on the app/website, the following API is required.
The Player Performance API gives the details like the number of times the player was a captain, keeper, bowling stats, batting stats, fielding, number of matches played & the upcoming matches for the requested board & competition.
Board Key: icc & bcci
competition Key: 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
Player Performance API Sample Request:
https://rest.cricketapi.com/rest/v3/player-performance/ms_dhoni/?access_token=YOUR_ACCESSTOKEN&board=icc&competition=international-t20
The Player Timeline API gives the complete list of matches played by the required player, and the player stats & Season details for that match played by the required player for the requested board & competition.
Board Key: icc & bcci
competition Key: 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
Player Timeline API Sample Request:
https://rest.cricketapi.com/rest/v3/player-timeline/ms_dhoni/?access_token=ACCESSTOKEN&board=icc&competition=international-t20
The Player Vs Team Performance API gives the players statistics or performance against a team. It gives the economy rate, total runs, total hundreds, and the number of wickets scored by the player for the required team for the requested board & competition.
Board Key: icc & bcci
competition Key: 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
Player vs Team Performance API Sample Request:
https://rest.cricketapi.com/rest/v3/player-vs-team-performance/ms_dhoni/?access_token=ACCESSTOKEN&board=icc&competition=international-t20&vs_team=sl
To know more, refer Player vs Team Performance API
To show the Team Historical Stats & Performance on the app/website, the following API is required.
The Team Performance API gives the stats for the requested board & competition. It gives the information like batting, bowling, complete matches played by the team, top players in that team & much more details.
Board Key: icc & bcci
competition Key: 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
Team Performance API Sample Response:
https://rest.cricketapi.com/rest/v3/team-performance/ind/?access_token=ACCESSTOKEN&board=icc&competition=international-t20
The Team Timeline API gives the list of the matches for the requested board & competition.
Board Key: icc & bcci
competition Key: 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
Team Timeline API Sample Response:
https://rest.cricketapi.com/rest/v3/team-timeline/ind/?access_token=ACCESSTOKEN&board=icc&competition=international-t20