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 (BETA)

We are glad to announce the BETA launch of the v5 version of endpoints for cricket. With the v5 version, you can now access data for matches of all coverage groups from a single endpoint, and automate your workflow seamlessly. The endpoints are currently available to test for our Enterprise Customers. Reach out to us to sign up for our BETA program!

Explore
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)