Reference

Esports

Esoccer and Ebasketball are short video game matches bet365 lists next to the real games. The API keeps them where bet365 puts them.

Where they are listed

Esoccer leagues, such as Esoccer Battle - 8 mins play, belong to Soccer (sport_id=1). Ebasketball leagues belong to Basketball (sport_id=18). They come back from the same event, league and odds endpoints as the real leagues, with the same fields and market keys.

Esoccer event in /v3/events/inplay?sport_id=1
{
  "id": "8212001",
  "sport_id": "1",
  "time": "1789241100",
  "time_status": "1",
  "league": {
    "id": "10090001",
    "name": "Esoccer Battle - 8 mins play",
    "cc": null
  },
  "home": {
    "id": "90001",
    "name": "Liverpool (Marlin) Esports",
    "image_id": null,
    "cc": null
  },
  "away": {
    "id": "90002",
    "name": "Real Madrid (Cobalt) Esports",
    "image_id": null,
    "cc": null
  },
  "ss": "2-3",
  "timer": {
    "tm": 5,
    "ts": 41,
    "tt": "1",
    "ta": 0,
    "md": 1
  },
  "bet365_id": "158212001"
}

Matches last a few minutes, so the timer, scores and odds move much faster than in a real game. Poll them accordingly.

Pairings are teams

Each side of an Esoccer or Ebasketball match is a team: the club being played and the player controlling it, such as Liverpool (Marlin) Esports. The same player with another club is a different team.

/v3/team?sport_id=1
{
  "id": "90001",
  "name": "Liverpool (Marlin) Esports",
  "cc": null,
  "image_id": null,
  "has_squad": 0,
  "is_esports": 1
}
  • is_esports is 1 on these teams and 0 on real clubs.
  • They have no squad: has_squad is 0, and there are no lineups or player profiles.
  • Filter upcoming and ended events of a pairing with team_id, like any other team.

Leaving them out

Pass skip_esports=1 to leave Esoccer, Ebasketball and other video game events out of the result. These endpoints take it:

bash
curl "https://api.odds-data-api.com/v3/events/upcoming?sport_id=1&skip_esports=1&token=YOUR-TOKEN"

/v3/events/inplay has no skip_esports. To list live events without esports, use Bet365 InPlay Filter with skip_esports=1, or leave out events whose teams have is_esports=1.

Esports, sport 151

Competitive gaming titles such as Counter-Strike, League of Legends and Dota 2 are a sport of their own, sport_id=151. Their teams are the real esports organisations. Esoccer and Ebasketball are not part of it.