Dhoni have 144.78 Strike rate against MI 7 Batting performance of MSD with MI? Question Answer MSD performance with MI? ball_lav ball_pink Asset 2

Get started with Cricket API

1. Get your access key

You can get your access key from your app which can be found in My Apps page

Please follow the guide from Get started page to get a new access key.

App Screenshot

2. Authenticate device

Its very easy to start using the Roanuz Cricket API. You have to do one or two step to access the cricket data. Now with your access key and secret key, authenticate your client device or browser.

curl -X POST \
    -d "access_key=YOUR_ACCESSKEY" \
    -d "secret_key=YOUR_SECRETKEY" \
    -d "app_id=YOUR_APPID" \
    -d "device_id=YOUR_DEVICEID" \
    https://rest.cricketapi.com/rest/v2/auth/

device_id is unique id of the client device, and its generated on your side. The above request will authenticate the client devices and will give you the access_token with expiration details.

{
    "status":true,
    "version":"2.0.2",
    "status_code":200,
    "expires":"-1",
    "auth":{
        "access_token":"2s14XXXX97325301s976461134951486121",
        "expires":"1521641451.0"
    },
    "Etag":null,
    "cache_key":"auth|2s14XXXX97325301s976461134951486121|app_id|"
}

Now store this access_token and expiration date for future use.

Read more: Auth API, Response data

3.Hello cricket match

To call any API you need an access_token. Following is an example to get a match detail

$ GET /rest/v2/match/ipl-t20-2013-csk-vs-rr-2013-04-22/?access_token=ACCESSTOKEN

Thats it. Now you ready to start coding for your application

Read more: Match API, Data cache

True Support Center

Not sure, what plan to choose? Just get in touch us. We are committed to providing a solution to all cricket data requirements. Feel free to write your technical questions, to know about best practice and guidelines.

000-800-040-1803 (Indian Tollfree Number)

+1 (855) 2SPORT4 (US Tollfree Number)