Betradar - the betting arm of Sportradar

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
topOfPage
topOfPage
Excerpt Include
HideElements
HideElements
nopaneltrue

Excerpt Include
BetradarLogo
BetradarLogo
nopaneltrue

Panel

The score of a match is always included in the XML, even if the score did not change.

Code Block
languagexml
titleXML example
<BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="change" timestamp="1414364604992">
<Match active="1" betstatus="started" matchid="5867680" matchtime="1" msgnr="5" score="0:0" setscores="0:0" status="1p">
<!-- Odds information goes here -->
</Match>
</BetradarLiveOdds>

XML attributes definition

ElementAttributes

AttributeDescriptionPossible values
MatchscoreCurrent score in the match.

String
Format: "[homescore]:[awayscore]" Before the match has started the value will be "-:-"

setscores

This will contain the scores for all periods/sets that have ended, overtime (aggregated in case of multiple overtimes) and penalty shootout).

String
Format: "[score1] - [score2] ..." Example: "7:6 - 3:6"

Info

Note
The setscores attribute is available for various sports, but only for tennis matches will it also include the score of the current set. For example: "7:6 - 3:6 - 2:4". This can be enabled for other sports too, have a look at chapter 5.1.1.18 for more information.