Fetching Cricket Score easily in R
Using CricketData API in R is very simple. We’ll assume you know how to work with data in R, so we’ll just fetch the API data and give it to you in an R variable named “btc”. Thereafter you can manipulate the variable ‘btc’ and display/process the output as you see fit!
In R , use this code:
btc <-jsonlite::fromJSON("https://api.cricapi.com/v1/cricScoreapikey=%APIKEY%") btc
Replace %APIKEY% with your CricketData.org API key.
And that’s it! The output will be as per the screenshot below