ball_lav ball_pink Asset 2 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

Concept

Basics

Get registered with Cricket API & Choose your license and create an app. Then start access all the API. An app can have access to all the api's. An app may get access denied to data over the due time.

  • License - Defines the features of app access.
  • API Price - Defines the price for each API.
  • Access key & Secret key - A unique keys for your application, which is generated by us. Please don't share it with others.
  • Device ID - An unique id per device or browser, provided by user.
  • Access token - An unique key provided by Cricket API, which expires in a a short time. To access any API, the access token is required.
  • Endpoint - https://rest.cricketapi.com/
  • Current version - 4.0.0

Request and Response

All API are accessible via simple HTTP protocol. Access token is required for all APIs except auth api. Response is always in JSON even when if there is an error in request. Response always follows the same structure. API is only accessible via HTTPS protocol. All API response are always gzip encoded. Read Content-Type header in the response, before processing the content. Most library takes care of decoding gzip by default.

Cache

Our API supports Etag based caching. In all response, if a cache is applicable for the request, we will provide Etag via the response header. On requesting with a ETag, we will return 304 status if the data is not modified. Its beneficial for calling same API multiple times for the score update. Hence, it saves a bandwidth and it's not required to refresh the screen, if nothing is changed.

Learn more about ETag here Wiki ETag and Facebook ETag

View all Docs

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)