Reference

Glossary

Values the endpoint pages refer to: sport ids, error codes, countries, the pager and event status.

R-SportID

Pass the id as sport_id. Ids follow bet365's numbering and never change.

Sport ids
sport_idSport
1Soccer
2Horse Racing
3Cricket
4Greyhounds
8Rugby Union
9Boxing
12American Football
13Tennis
14Snooker
15Darts
16Baseball
17Ice Hockey
18Basketball
19Rugby League
36Australian Rules
66Bowls
75Gaelic Sports
78Handball
83Futsal
90Floorball
91Volleyball
92Table Tennis
94Badminton
95Beach Volleyball
107Squash
110Water Polo
151E-sports
162MMA/UFC
  • Esoccer is listed under Soccer (1) and Ebasketball under Basketball (18). See Esports.
  • Horse Racing (2) and Greyhounds (4) are only available raw, in the Bet365 API.

R-Errors

A failed call returns success: 0 and one of these codes in error. See Errors.

Error codes
errorMeaning
INTERNAL_SERVER_ERROR500 Internal Server Error. Contact support if it keeps happening.
NOT_FOUND404 Not Found.
METHOD_NOT_ALLOWEDMethod is not allowed, only GET is supported.
UNDER_MAINTENANCEAPI is under maintenance. We announce it in advance.
AUTHORIZE_FAILEDToken is not provided or is incorrect.
TOO_MANY_REQUESTSAPI rate limit exceeded. See X-RateLimit-Reset.
PERMISSION_DENIEDYour plan does not include this call. Contact support if this is wrong.
PARAM_REQUIREDA required param is missing. Check error_detail.
PARAM_INVALIDA param is invalid. Check error_detail.

R-Countries

cc is a lowercase ISO 3166-1 alpha-2 country code. Use it to filter Upcoming Events, Ended Events, League and Team, for example cc=co for Colombia. Common codes:

Country codes
ccCountry
gbUnited Kingdom (England, Scotland, Wales, Northern Ireland)
ieIreland
esSpain
itItaly
deGermany
frFrance
ptPortugal
nlNetherlands
brBrazil
arArgentina
coColombia
usUnited States
jpJapan
auAustralia

R-Pager

Paginated calls take page and return pager with page, per_page and total. The maximum page is 100; to go further back on ended events, use day.

page=2
{
  "success": 1,
  "pager": { "page": 2, "per_page": 50, "total": 312 },
  "results": [ ... ]
}

Endpoints with a pager:

League and Team return data by id, highest first, with pager.min_id. Call without max_id, then pass min_id as max_id until results is empty.

max_id pagination
{
  "success": 1,
  "pager": { "min_id": "10041237" },
  "results": [ ... ]
}

time_status

Every event carries time_status. Most events go from 0 to 1 to 3. A final status does not change again, so you can stop polling the event.

time_status codes
CodeStatusWhen it happensFinal
0Not startedListed and not started. Pre-match odds are available.No
1In playStarted. Score, timer, stats and in-play odds update live.No
2To be fixedListed, but the start time is not confirmed. time can change.No
3EndedFinished. Final score and stats are available.Yes
4PostponedWill not be played at the listed time.Yes
5CancelledCancelled and will not be played.Yes
6WalkoverOne side advanced without playing, common in tennis.Yes
7InterruptedPlay stopped, for example for rain. It can resume and return to 1.No
8AbandonedPlay stopped and was not resumed.Yes
9RetiredA player retired during the match, as in tennis or darts.Yes
10SuspendedThe organiser suspended the event. It can resume or move to another status.No
11Decided by FAThe result was decided by the governing body.Yes
12DisqualifiedA player or team was disqualified.Yes
99RemovedRemoved from the listings, usually a duplicate. See Merge History.Yes

2, 7 and 10 are temporary. Keep polling at a lower rate until the event moves to another status.

Common fields

Common fields
FieldMeaning
idOur id in the Events API. In the Bet365 API lists, the bet365 fixture id (FI).
bet365_idbet365 fixture id of an Events API event. Pass it as FI to the Bet365 API.
our_event_idEvents API id of a Bet365 API event.
timeStart time, UTC epoch in seconds.
ssShort score, e.g. "2-1". null before the start.
scoresScore by period. For soccer, "1" is the first half and "2" the full time.
timertm minutes, ts seconds, tt "1" while the clock runs, ta added time, md period.
ccCountry, see R-Countries. null for international leagues and esports.
image_idTeam image id, or null.
is_esports1 for Esoccer, Ebasketball and other video game teams.