Cricket odds API

Cricket leagues, markets and prices through one REST API.

Updated

Cricket has the sport key cricket. Its events are between two teams, home and away.

Leagues

LeagueKeySeasonBookmakers delivering
International cricketcricketIn season5

Also in the catalogue, with no prices delivered yet: Indian Premier League (ipl).

Request the leagues

curl -sS "https://api.sockodds.com/v1/leagues?sport=cricket" \
  -H "Authorization: Bearer $SOCKODDS_API_KEY"
const response = await fetch("https://api.sockodds.com/v1/leagues?sport=cricket", {
  headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));
import json, os, urllib.request

request = urllib.request.Request(
    "https://api.sockodds.com/v1/leagues?sport=cricket",
    headers={"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]},
)
with urllib.request.urlopen(request) as response:
    print(json.dumps(json.load(response), indent=2))

Example response · sample prices, not real odds

{
  "data": [
    {
      "key": "cricket",
      "name": "International cricket",
      "sport": "cricket",
      "region": "intl",
      "periods": [
        "full",
        "team_innings_1"
      ]
    },
    {
      "key": "ipl",
      "name": "Indian Premier League",
      "sport": "cricket",
      "region": "intl",
      "periods": [
        "full"
      ]
    }
  ],
  "meta": {
    "count": 2,
    "cursor": null
  },
  "links": {
    "next": null
  }
}

Markets

12 market types are defined for cricket: winner, result, player_runs_over_under, winner_tie_dead_heat, result_tie_dead_heat, winner_tie_void_no_tiebreak, result_tie_void, team_runs_most, team_wickets_most, team_wickets_most_dead_heat, player_runs_most and player_wickets_most. Each league page lists the markets and periods that apply to it, and Markets lists them all.

Search across the SockOdds documentation and catalogue.