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
| Key | Sport | Market | Fields |
|---|---|---|---|
| 1_1 | Soccer | Full time result | home_od, draw_od, away_od |
| 1_2 | Soccer | Asian handicap | home_od, handicap, away_od |
| 1_3 | Soccer | Goal line | over_od, handicap, under_od |
| 18_1 | Basketball | Money line | home_od, away_od |
| 18_2 | Basketball | Spread | home_od, handicap, away_od |
| 18_3 | Basketball | Total points | over_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.
{
"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
| Section | Contains |
|---|---|
| main | Result markets such as full time result, double chance and correct score. |
| asian_lines | Asian handicap and asian goal lines. |
| goals | Goals over/under, both teams to score and other goal markets. |
| half | Half-time markets. |
| others | Every 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.
"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
| Key | Market | Section |
|---|---|---|
| full_time_result | Full Time Result | main |
| double_chance | Double Chance | main |
| correct_score | Correct Score | main |
| asian_handicap | Asian Handicap | asian_lines |
| goals_over_under | Goals Over/Under | goals |
| both_teams_to_score | Both Teams to Score | goals |
| half_time_result | Half Time Result | half |
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=1on a market means none of its selections can be bet on at that moment.SU=1on a selection means only that price is unavailable.- Prices in
ODare fractional, as bet365 shows them:4/9is decimal 1.44.
Do not act on suspended prices
SU is back to 0.