All sports data & betting odds Build fantasy & sportsbetting faster REST & WebSocket integration

Cricket Betting API: Odds, Markets and Settlement

A cricket betting API has to do three jobs for a sportsbook: publish odds before the match, keep them accurate while it is played, and tell you afterwards who won each bet. The first two get most of the attention. Settlement is where operators lose money and trust, because cricket has more edge cases than most sports: rain, shortened matches, ties and batters who never reach the crease. This guide walks through the odds, the in-play markets and the settlement rules of our cricket betting API, with the exact behaviour from our documentation.

What the API provides, and what it does not

The API provides data: odds and markets before and during the match, and settlement results after it. It does not take bets. Your product still needs a bet slip, a wallet, risk management, identity checks and, in most markets, a licence. Treat the API as the odds and results feed behind that product.

The three stages of a cricket betting feed

StageWhat you needEndpoint
Before the matchMarkets and odds for the matchGET /v1/matches/:matchId/prematch-odds
During the matchCurrent in-play markets, odds and suspension stateGET /v1/matches/:matchId/live-odds
After the matchOutcome of every market and selectionGET /v1/matches/:matchId/settlement

Live updates can also be pushed over the WebSocket feed, which carries prematch odds, in-play odds and settlement results. Every endpoint uses the same platform match ID, so you can join odds, scores and results for one match. The cricket API page covers the rest of the cricket data.

Cricket betting data in three stages: pre-match odds, live odds for T20 and ODI, and settlement

Prematch odds

The prematch endpoint returns every available market and selection for a match. Markets are grouped into categories, and each selection carries an ID, a name and decimal odds, plus a header or a line when the market has one.

{
  "matchId": "bf00001234",
  "main": {
    "key": "main",
    "sp": {
      "game_lines": {
        "name": "Game Lines",
        "odds": [
          { "id": "selection_over", "name": "Over", "header": "Total", "handicap": "177.5", "odds": "1.9100" }
        ]
      }
    }
  }
}

This is a shortened version of the example in the documentation, which uses a basketball match. Cricket responses use the same structure. Two rules from the documentation matter in practice: which markets a match carries depends on the match, and you should read categories, markets and selections by their keys, never by their position in an array.

Live odds for T20 and ODI

The live endpoint returns the current in-play markets with odds and a suspension state. For cricket it covers T20 and ODI matches. Cricket has no match clock, so instead of minutes the response describes the match situation: the innings, the score and wickets for both teams, the target and the current over.

Live markets are organised as markets, then groups for each line, then selections. Each level can be suspended, and each update carries a sequence number. A selection carries its side, its line and its decimal odds.

{
  "markets": [{
    "type": "ASIAN_HANDICAP",
    "suspended": false,
    "groups": [{
      "line": 0,
      "role": "MAIN",
      "suspended": false,
      "selections": [
        { "id": "299395834", "side": "HOME", "line": 0, "odds": 1.775, "suspended": false },
        { "id": "299395842", "side": "AWAY", "line": 0, "odds": 2.1, "suspended": false }
      ]
    }]
  }]
}

The shape is from the documentation's football example, and cricket markets follow the same structure with their own market types. Your front end must respect the suspension flags. A selection that is suspended cannot be bet on, even if its odds are still present.

The cricket in-play markets

The in-play markets are limited to ones that can be settled from the final scorecard. Markets that name a player are listed per player.

The seven cricket in-play markets: Match Winner, Team Total Runs, Team Sixes, Top Batter, Most Runs, Batter Milestones and Batter Innings Runs
MarketWhat it is
Match WinnerThe winning team, two-way
Team Total Runs, home or awayOver or under on a team's innings total (20 overs in T20, 50 in ODI)
Team Sixes, home or awayOver or under on the number of sixes a team hits
Top Batter, home or awayThe highest-scoring batter for a team
Batter With Most RunsThe highest-scoring batter in the match, with a tie option
Batter MilestonesWhether a batter reaches 10, 20, 30, 50, 70 or more runs
Batter Innings RunsOver or under on one batter's runs, offered once the batter is at the crease

Settlement

Settlement returns the outcome of every market and selection once the match is finished. The statuses are:

  • Match and market: SETTLED, VOID or REVIEW_REQUIRED.
  • Selection: WIN, LOSE, VOID, HALF_WIN, HALF_LOSE or REVIEW_REQUIRED.
From the final match result to a settlement status: SETTLED, VOID or REVIEW_REQUIRED

Each market carries its frozen line, whether it was offered prematch or in-play (in-play market keys start with INPLAY_), a rule version, and a reason code and message when the result is not a plain win or loss. Read the outcome of every selection in a market, not only the winning one.

For cricket in-play markets, the result depends on the final scorecard alone, whatever the time of the bet. The documentation sets out these rules for the cases that cause disputes:

SituationResult
No result, cancelled or abandoned matchEvery selection is VOID
A batter did not batHis runs and milestone selections are VOID
Tied matchWinner markets are VOID
Shortened match (DLS)The winner market settles as normal, other markets are REVIEW_REQUIRED for a manual decision
Tie for most runsThe Tie selection wins if it was offered, otherwise REVIEW_REQUIRED
Tie for a team's top batterREVIEW_REQUIRED

If settlement is not ready yet, the endpoint returns 409 settlement_not_ready, so your system should wait instead of guessing. You can also request a single market, or receive settlement over the WebSocket feed.

const res = await getSettlement(matchId); // 409 settlement_not_ready: try again later

for (const match of res.results) {
  for (const market of match.markets) {
    if (market.status === "REVIEW_REQUIRED") {
      queueForManualReview(market); // do not settle bets automatically
      continue;
    }
    for (const selection of market.selections) {
      settleBets(selection.key, selection.status); // WIN, LOSE, VOID, HALF_WIN, HALF_LOSE
    }
  }
}

Building a cricket betting product on the API

If you are planning cricket betting software or an app, the data feed is one part of a larger build. A practical checklist:

  • Show odds from the latest update, and block bets on anything suspended.
  • Use decimal odds and read selections by key, not by array position.
  • Settle bets only from SETTLED or VOID results, and send REVIEW_REQUIRED to a person.
  • Store the rule version and reason code with every settlement for disputes.
  • Test with real matches, including a rain-affected one, before launch.
  • Check the licensing and responsible-gambling rules of every market you serve. Cricket betting is regulated differently across countries, so take legal advice before you launch.

Frequently asked questions

What is a cricket betting API?

It is a data feed that supplies cricket odds, markets and settlement results to a sportsbook or betting app. It does not take or hold bets.

Which cricket formats are covered?

Prematch odds are available for cricket matches, and live odds and in-play markets cover T20 and ODI.

Does the API settle bets for me?

It returns the result of every market and selection, and your system applies those results to your bets. Cases that need a human decision, such as a shortened match, are marked REVIEW_REQUIRED.

Can I get odds pushed instead of polling?

Yes. The WebSocket feed pushes prematch odds, in-play odds and settlement results.

How do I try it?

Settlement is selected together with an odds module on the pricing page, where there is a low-cost 3-day trial for the combinations that have a standard price. The API documentation lists every field.

Where to go next

See the cricket odds API page for the product overview, the cricket API for the full set of cricket data, the cricket fantasy points guide if you also run fantasy contests, and the sportsbook retention guide for the engagement side.