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

Introducing V5 API

We are delighted in introducing you to our v5 version of the Cricket API endpoints. With the v5 APIs, you can now have the live updates delivered automatically through Firebase, Webhook and WebSocket. The v5 APIs are faster, smarter and even go easy on your monthly bills by letting you pay only for the data you access. With three different tiers of licenses to choose from, the v5 API will surely be handy for every possible use case!

Get Started
Batsman

ChatBot API

The Chatbot API gives the answers from topics such as player profile, recent matches, player vs. team, team vs. team and live updates.

Request

  • Path: https://rest.cricketapi.com/rest/v3/bot/
  • Method: POST

  • Params:

    • access_token - Required
    • text - Required.
    • utc_offset - Required.
    • user - Required. Generate the user key using Register Bot user

Response

  • data.responses - Object. Object of bot response.

Example

Request:

$ curl -X POST \
    -d "text=Best score of Virat vs Australia" \
    -d "user=USER" \
    -d "utc_offset=+19800" \
    -d "access_token=ACCESS_TOKEN" \
    https://rest.cricketapi.com/rest/v3/bot/

Response:

{
"data": {
"responses": [
{
"confident": 1.0, 
"content": "He scored 90 in 55 balls on Jan 26, 2016 against Australia in T20", 
"handler": "cricket.handlers.MasterConversationHandler", 
"objects": {
"competitions": [
{
"card_name": "T20", 
"key": "international-t20", 
"name": "International-T20"
}
], 
"players": [
{
"card_name": "V Kohli", 
"key": "v_kohli", 
"name": "Virat Kohli"
}
], 
"teams": [
{
"card_name": null, 
"key": "aus", 
"name": "Australia"
}
]
}, 
"responder": "cricket.responders.master.PlayerBestMetrics", 
"user_should_respond": false
}
], 
"user": "user"
}, 
"status": true, 
"status_code": 200, 
"version": "3.0.1"
}

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)