Reference

Market keys

The Events API names its few main markets SPORTID_MARKETID. The Bet365 API groups every market bet365 lists in sections, with readable keys.

Events API

Event Odds and Event Odds Summary return only the main markets of each sport, 1 to 3 of them. Keys are SPORTID_MARKETID: 1_1 is market 1 of Soccer.

Keys

Events API market keys
KeySportMarketFields
1_1SoccerFull time resulthome_od, draw_od, away_od
1_2SoccerAsian handicaphome_od, handicap, away_od
1_3SoccerGoal lineover_od, handicap, under_od
18_1BasketballMoney linehome_od, away_od
18_2BasketballSpreadhome_od, handicap, away_od
18_3BasketballTotal pointsover_od, handicap, under_od

Other sports follow the same scheme with their own sport id. odds_update in Event Odds Summary lists the keys each event has. Filter Event Odds with the market ids, for example odds_market=1,3.

Odds lines

Each key holds a list of lines, newest first. ss and time_str are the score and minute when the price was captured, and add_time is its UTC epoch.

results.odds
{
  "1_1": [
    { "id": "29141890", "home_od": "1.440", "draw_od": "4.600", "away_od": "7.500", "ss": "2-1", "time_str": "67", "add_time": "1789241232" }
  ],
  "1_3": [
    { "id": "29141893", "over_od": "1.900", "handicap": "3.5", "under_od": "1.900", "ss": "2-1", "time_str": "67", "add_time": "1789241232" }
  ]
}

Bet365 API

Bet365 PreMatch Odds returns every market bet365 lists for an event. Markets are grouped in sections, and each market in a section is keyed by name.

Sections

Bet365 API market sections
SectionContains
mainResult markets such as full time result, double chance and correct score.
asian_linesAsian handicap and asian goal lines.
goalsGoals over/under, both teams to score and other goal markets.
halfHalf-time markets.
othersEvery market that does not fit the sections above, as a list.

main, asian_lines, goals and half are objects with updated_at and the markets in sp. Selections on handicap and total markets carry the line in handicap and the side in header.

Section
"asian_lines": {
  "updated_at": "1789236000",
  "key": "asian_lines",
  "sp": {
    "asian_handicap": {
      "id": "938",
      "name": "Asian Handicap",
      "odds": [
        { "id": "962056700", "odds": "1.925", "header": "1", "handicap": "-0.25" },
        { "id": "962056701", "odds": "1.950", "header": "2", "handicap": "+0.25" }
      ]
    }
  }
}

Keys

Bet365 API soccer market keys
KeyMarketSection
full_time_resultFull Time Resultmain
double_chanceDouble Chancemain
correct_scoreCorrect Scoremain
asian_handicapAsian Handicapasian_lines
goals_over_underGoals Over/Undergoals
both_teams_to_scoreBoth Teams to Scoregoals
half_time_resultHalf Time Resulthalf

These are the most used soccer keys. A market is only returned while bet365 lists it for that event.

Suspended markets

In Bet365 Inplay Event, markets (MA) and selections (PA) carry SU. bet365 suspends them for a few seconds around goals, penalties, cards and other key moments.

  • SU=1 on a market means none of its selections can be bet on at that moment.
  • SU=1 on a selection means only that price is unavailable.
  • Prices in OD are fractional, as bet365 shows them: 4/9 is decimal 1.44.

Do not act on suspended prices

A suspended price is out of date by definition. Exclude it from models, alerts and comparisons until SU is back to 0.