Cricket

Get data related to Cricket matches

Cricket middleware available for all clients and partners. REST API's for all feeds for teams / fixtures / results / live matches / line ups / tables / statistics / officials / commentary / form / competitions

Base URL stage - https://cricket-feeds.cortextech.io/

Base URL prod - https://cricket-feeds.cortextech.io/

API Reference - https://developer.cortextech.io/reference/get_v2-matches

API Keys

All requests must be made using provided API keys, otherwise a 401 Unauthorized response will be returned, the API key comprises of 3 items that must be passed in the headers of each request:

  • X-API-KEY
  • X-APP-ID
  • X-REALM

Key Terms and Language used throughout the API

TermDescription
CompetitionA Tournament/Competition/League within cricket, e.g. World Cup
Competition IDThe unique identifier for a competition.
MatchA single fixture between two teams
Match IDThe unique identifier for a match
TeamA single cricket team
Team IDThe unique identifier for a team
PlayerA person who plays for a team.
Player IDThe unique identifier for a player.
FilterThere are a number of endpoints that use a filter search term to restrict the data returned. The available options are:
  • compId
  • teamId
  • status
  • gameTypeId
See below for examples of filters
Game Type IDAs part of the filter, an optional gameTypeId can be passed, this corresponds to the different match types in cricket, i.e. T20, ODI, Test match. Consult the data provider's documentation to find corresponding values.

Filter examples

Single competition

?filter=[{"compId":8899}]

Single team

?filter=[{"teamId":7}]

Single status

?filter=[{"status":"fixture"}]

Single game type

?filter=[{"gameTypeId":1}]

Multiple filters

?filter=[{"compId":8899},{"compId":7784},{"teamId":7},{"status":"fixture"},{"gameTypeId":1}]

Standard API Responses

Standard response payloads:

{
  "status": "string",
  "data": [
    { "array of items" }
	],
  "metadata": {
    "createdAt": "ISO 8601 Date/Time format",
    "pageItems": 0,
    "totalItems": 0,
    "totalPages": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "sort": "string"
  }
}
{
  "status": "string",
  "data": { "single item" },
  "metadata": {
    "createdAt": "ISO 8601 Date/Time format"
  }
}
{
  "status": "fail",
  "message": "reason",
  "metadata": {
    "createdAt": "ISO 8601 Date/Time format"
  }
}


Did this page help you?