ape-cricket
The ape-cricket is a rest-api exported as Node.js module.
Description
The ape-cricket uses cricapi, Free to use, super-high bandwidth, high performance Cricket API. Targeted at Developers and Cricket lovers.
The endpoints exposed are as follows:
apecricket.schedule( )
provides international fixturesapecricket.cricket( )
provides live scrores of ongoing matchapecricket.news( )
provides updated cricket newsapecricket.upcomingMatches( )
provides upcoming match fixturesapecricket.cricketScore( )
provides detailed score card of the matchapecricket.playerStats( )
provides players carrer info and statsapecricket.playerFinder( )
provides players ids matching given name stringapecricket.fantasySummary( )
provides match info and statsapecricket.fantasySquad( )
provides team players info
In order to use the above endpoints, u need to have an api_key which can use generated by signing into cricpapi. For testing purpose can use test_api_key "TESTKEY0273"
Installation
Installation is done using the npm install command:
$ npm install ape-cricket
In Node.js:
// Load the full build. var apecricket = ;
schedule
//user api_keyvar api_key = "TESTKEY0273"// calling a endpoint to get response.apecricket;
cricket
//user api_keyvar api_key = "TESTKEY0273"// calling a endpoint to get response.apecricket;
news
//user api_keyvar api_key = "TESTKEY0273"// calling a endpoint to get response.apecricket;
upcomingMatches
//user api_keyvar api_key = "TESTKEY0273"// calling a endpoint to get response.apecricket;
The endpoints cricketScore() and playerStats() require a string input field "unique_id" and "pid"(player_id). "unique_id" for each match is available from the cricket() endpoint response. and for "pid"(player_id) need to visit cricapi players page. usage is as follows:
cricketScore
//user api_keyvar api_key = "TESTKEY0273"//match idvar unique_id = "1123492"// calling a endpoint to get response.apecricket;
playerStats
//user api_keyvar api_key = "TESTKEY0273"// player idvar pid = 35320;// calling a endpoint to get response.apecricket;
playerfinder
//user api_keyvar api_key = "TESTKEY0273"// player idvar name = "sach";// calling a endpoint to get response.apecricket;
Fantasy API are billable since they're designed to help you generate income by running Fantasy Cricket portals.
Each hit is 1 credit. You get 250 credits free. Deducted from your prepaid account.
fantasySummary
//match idvar unique_id = "1123492"// calling a endpoint to get response.apecricket;
fantasySquad
//match idvar unique_id = "1123492"// calling a endpoint to get response.apecricket;