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

Cricket Team Timeline API

The Team Timeline API gives the list of the matches for the requested board & competition.

Request

  • Path: https://rest.cricketapi.com/rest/v3/team-timeline/{team_key}/
  • Method: GET
  • URL Params:

    • team_key - Required. Team key
  • Params:

    • access_token - Required.
    • board - Required. Possible values are 'icc', 'bcci'
    • competition - Required. Match competition - possible values are 'international-t20', 'international-one-day', 'international-test' and 'ipl'.
    • year - Optional. Please give the year from 2012 to present.

Response

  • data.matches - Object. Object of team timeline matches

Example

Request:

$ GET https://rest.cricketapi.com/rest/v3/team-timeline/ind/?access_token=ACCESSTOKEN&board=icc&competition=international-t20

Response:

{
  "cache_key": "team_timeline_ind_icc_international-t20",
  "data": {
    "coverage_included": 100,
    "matches": [
      {
        "match": {
          "card_name": "AUS vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "19.0",
              "run_rate": 6.95,
              "run_str": "132/7 in 19.0",
              "runs": 132,
              "wickets": 7
            },
            "b_1": {
              "innings_index": 1,
              "overs": "0.0",
              "run_rate": 0,
              "run_str": "0/0 in 0.0",
              "runs": 0,
              "wickets": 0
            }
          },
          "key": "ausind_2018_t20_02",
          "name": "Australia vs India",
          "played_innings": [
            1
          ],
          "related_name": "2nd T20 Match",
          "result": "abandoned",
          "start": 1542959400,
          "status": "completed",
          "status_overview": "abandoned",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "aus",
              "name": "Australia",
              "score_string": "132/7 in 19.0"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "0/0 in 0.0"
            }
          }
        },
        "season": {
          "key": "ausind_2018",
          "name": "Australia vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "AUS vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "17.0",
              "run_rate": 9.29,
              "run_str": "158/4 in 17.0",
              "runs": 158,
              "wickets": 4
            },
            "b_1": {
              "innings_index": 1,
              "overs": "17.0",
              "run_rate": 9.94,
              "run_str": "169/7 in 17.0",
              "runs": 169,
              "wickets": 7
            }
          },
          "key": "ausind_2018_t20_01",
          "name": "Australia vs India",
          "played_innings": [
            1
          ],
          "related_name": "1st T20 Match",
          "result": "lost",
          "result_by": {
            "difference": 11,
            "kind": "run"
          },
          "start": 1542786600,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "aus",
              "name": "Australia",
              "score_string": "158/4 in 17.0"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "169/7 in 17.0"
            }
          }
        },
        "season": {
          "key": "ausind_2018",
          "name": "Australia vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "IND vs WI",
          "format": "t20",
          "innings": {
            "a_1": {
              "innings_index": 1,
              "overs": "20.0",
              "run_rate": 9.1,
              "run_str": "182/4 in 20.0",
              "runs": 182,
              "wickets": 4
            },
            "b_1": {
              "overs": "20.0",
              "run_rate": 9.05,
              "run_str": "181/3 in 20.0",
              "runs": 181,
              "wickets": 3
            }
          },
          "key": "indwi_2018_t20_03",
          "name": "India vs West Indies",
          "played_innings": [
            1
          ],
          "related_name": "3rd T20 Match",
          "result": "win",
          "result_by": {
            "difference": 6,
            "kind": "wicket"
          },
          "start": 1541943000,
          "status": "completed",
          "status_overview": "result",
          "team_index": "a",
          "teams": {
            "a": {
              "key": "ind",
              "name": "India",
              "score_string": "182/4 in 20.0"
            },
            "b": {
              "key": "wi",
              "name": "West Indies",
              "score_string": "181/3 in 20.0"
            }
          }
        },
        "season": {
          "key": "indwi_2018",
          "name": "India vs West Indies 2018"
        }
      },
      {
        "match": {
          "card_name": "IND vs WI",
          "format": "t20",
          "innings": {
            "a_1": {
              "innings_index": 1,
              "overs": "20.0",
              "run_rate": 9.75,
              "run_str": "195/2 in 20.0",
              "runs": 195,
              "wickets": 2
            },
            "b_1": {
              "overs": "20.0",
              "run_rate": 6.2,
              "run_str": "124/9 in 20.0",
              "runs": 124,
              "wickets": 9
            }
          },
          "key": "indwi_2018_t20_02",
          "name": "India vs West Indies",
          "played_innings": [
            1
          ],
          "related_name": "2nd T20 Match",
          "result": "win",
          "result_by": {
            "difference": 71,
            "kind": "run"
          },
          "start": 1541511000,
          "status": "completed",
          "status_overview": "result",
          "team_index": "a",
          "teams": {
            "a": {
              "key": "ind",
              "name": "India",
              "score_string": "195/2 in 20.0"
            },
            "b": {
              "key": "wi",
              "name": "West Indies",
              "score_string": "124/9 in 20.0"
            }
          }
        },
        "season": {
          "key": "indwi_2018",
          "name": "India vs West Indies 2018"
        }
      },
      {
        "match": {
          "card_name": "IND vs WI",
          "format": "t20",
          "innings": {
            "a_1": {
              "innings_index": 1,
              "overs": "17.5",
              "run_rate": 6.17,
              "run_str": "110/5 in 17.5",
              "runs": 110,
              "wickets": 5
            },
            "b_1": {
              "overs": "20.0",
              "run_rate": 5.45,
              "run_str": "109/8 in 20.0",
              "runs": 109,
              "wickets": 8
            }
          },
          "key": "indwi_2018_t20_01",
          "name": "India vs West Indies",
          "played_innings": [
            1
          ],
          "related_name": "1st T20 Match",
          "result": "win",
          "result_by": {
            "difference": 5,
            "kind": "wicket"
          },
          "start": 1541338200,
          "status": "completed",
          "status_overview": "result",
          "team_index": "a",
          "teams": {
            "a": {
              "key": "ind",
              "name": "India",
              "score_string": "110/5 in 17.5"
            },
            "b": {
              "key": "wi",
              "name": "West Indies",
              "score_string": "109/8 in 20.0"
            }
          }
        },
        "season": {
          "key": "indwi_2018",
          "name": "India vs West Indies 2018"
        }
      },
      {
        "match": {
          "card_name": "ENG vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "20.0",
              "run_rate": 9.9,
              "run_str": "198/9 in 20.0",
              "runs": 198,
              "wickets": 9
            },
            "b_1": {
              "innings_index": 1,
              "overs": "18.4",
              "run_rate": 10.77,
              "run_str": "201/3 in 18.4",
              "runs": 201,
              "wickets": 3
            }
          },
          "key": "engind_2018_t20_03",
          "name": "England vs India",
          "played_innings": [
            1
          ],
          "related_name": "3rd T20 Match",
          "result": "win",
          "result_by": {
            "difference": 7,
            "kind": "wicket"
          },
          "start": 1531054800,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "eng",
              "name": "England",
              "score_string": "198/9 in 20.0"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "201/3 in 18.4"
            }
          }
        },
        "season": {
          "key": "engind_2018",
          "name": "England vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "ENG vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "19.4",
              "run_rate": 7.58,
              "run_str": "149/5 in 19.4",
              "runs": 149,
              "wickets": 5
            },
            "b_1": {
              "innings_index": 1,
              "overs": "20.0",
              "run_rate": 7.4,
              "run_str": "148/5 in 20.0",
              "runs": 148,
              "wickets": 5
            }
          },
          "key": "engind_2018_t20_02",
          "name": "England vs India",
          "played_innings": [
            1
          ],
          "related_name": "2nd T20 Match",
          "result": "lost",
          "result_by": {
            "difference": 5,
            "kind": "wicket"
          },
          "start": 1530894600,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "eng",
              "name": "England",
              "score_string": "149/5 in 19.4"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "148/5 in 20.0"
            }
          }
        },
        "season": {
          "key": "engind_2018",
          "name": "England vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "ENG vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "20.0",
              "run_rate": 7.95,
              "run_str": "159/8 in 20.0",
              "runs": 159,
              "wickets": 8
            },
            "b_1": {
              "innings_index": 1,
              "overs": "18.2",
              "run_rate": 8.89,
              "run_str": "163/2 in 18.2",
              "runs": 163,
              "wickets": 2
            }
          },
          "key": "engind_2018_t20_01",
          "name": "England vs India",
          "played_innings": [
            1
          ],
          "related_name": "1st T20 Match",
          "result": "win",
          "result_by": {
            "difference": 8,
            "kind": "wicket"
          },
          "start": 1530635400,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "eng",
              "name": "England",
              "score_string": "159/8 in 20.0"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "163/2 in 18.2"
            }
          }
        },
        "season": {
          "key": "engind_2018",
          "name": "England vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "IRE vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "12.3",
              "run_rate": 5.6,
              "run_str": "70/10 in 12.3",
              "runs": 70,
              "wickets": 10
            },
            "b_1": {
              "innings_index": 1,
              "overs": "20.0",
              "run_rate": 10.65,
              "run_str": "213/4 in 20.0",
              "runs": 213,
              "wickets": 4
            }
          },
          "key": "ireind_2018_t20_02",
          "name": "Ireland vs India",
          "played_innings": [
            1
          ],
          "related_name": "2nd T20 Match",
          "result": "win",
          "result_by": {
            "difference": 143,
            "kind": "run"
          },
          "start": 1530284400,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "ire",
              "name": "Ireland",
              "score_string": "70/10 in 12.3"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "213/4 in 20.0"
            }
          }
        },
        "season": {
          "key": "ireind_2018",
          "name": "Ireland vs India 2018"
        }
      },
      {
        "match": {
          "card_name": "IRE vs IND",
          "format": "t20",
          "innings": {
            "a_1": {
              "overs": "20.0",
              "run_rate": 6.6,
              "run_str": "132/9 in 20.0",
              "runs": 132,
              "wickets": 9
            },
            "b_1": {
              "innings_index": 1,
              "overs": "20.0",
              "run_rate": 10.4,
              "run_str": "208/5 in 20.0",
              "runs": 208,
              "wickets": 5
            }
          },
          "key": "ireind_2018_t20_01",
          "name": "Ireland vs India",
          "played_innings": [
            1
          ],
          "related_name": "1st T20 Match",
          "result": "win",
          "result_by": {
            "difference": 76,
            "kind": "run"
          },
          "start": 1530111600,
          "status": "completed",
          "status_overview": "result",
          "team_index": "b",
          "teams": {
            "a": {
              "key": "ire",
              "name": "Ireland",
              "score_string": "132/9 in 20.0"
            },
            "b": {
              "key": "ind",
              "name": "India",
              "score_string": "208/5 in 20.0"
            }
          }
        },
        "season": {
          "key": "ireind_2018",
          "name": "Ireland vs India 2018"
        }
      }
    ],
    "next_page": 2
  },
  "expires": 1543125030,
  "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)