Information about score changes and given cards are distributed in two different ways. First of all the updates are sent out as they happen during the match. Additionally a full overview gets sent out at the end of the match, containing all the score and card changes. Note These messages only indicate that key statistics of the match have changed, and should not be used for resulting purpose as we have dedicated clearbet messages. |
Score change <BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="score" timestamp="1199435937143">
<Match active="1" betstatus="started" matchid="661373" matchtime="5" msgnr="29" score="1:0" status="1p">
<Score away="0" home="1" id="7966" player="P. Anderson" scoringteam="home" time="4" type="live" playerid="115622"/>
</Match>
</BetradarLiveOdds> |
XML attributes definition Element | Attributes |
---|
| Attribute | Description | Possible values | BetradarLiveOdds | status | What kind of information is contained in the message. | String "score" (for score change messages) | Match | score | Current score in the match | String Format: "[homescore]:[awayscore]" Before the match has started the value will be "-:-" | Score | away | How many points the away team has. | Integer | home | How many points the home team has. | Integer | id | The unique identifier for this score change in this match. | Integer | canceled | Whether the goal is canceled or not | - True = The goal was canceled
- False = The goal was NOT canceled
| player | The name of the player who scored the point. | String If not available the string will be empty | scoringteam | What team scored the point. | String "home" = home team scored "away" = away team scored | time | Match time in minutes when the score change happened. | Integer If no time is known this is set to -1 | type | Type of score change | String "live" = Score during the match | playerid | The id of the player. This attribute needs to be enabled in the XML configuration. | Integer |
Card change <BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="cards" timestamp="1199436094472">
<Match active="1" betstatus="started" matchid="661373" matchtime="8" msgnr="37" score="1:0" status="1p">
<Card canceled="false" id="7967" player="P. Anderson" team="home" time="7" type="yellow" playerid="115622"/>
</Match>
</BetradarLiveOdds> |
XML attributes definition Element | Attributes |
---|
| Attriubte | Description | Possible values | BetradarLiveOdds | status | What kind of information is contained in the message. | String "cards" (for card change messages) | Card | canceled | Whether the card is canceled or not. | String - "true" = the card was canceled
- "false" = the card was not canceled
| id | The unique identifier for this card in this match. | Integer | player | The name of the player who received the card. | String If not available the string will be empty | team | What team received the card. | String - "home" = home team scored
- "away" = away team scored
| time | Match time in minutes when the score change happened. | Integer If no time is known this is set to -1 | type | Type of card | String Possible values: | playerid | The id of the player. This attribute needs to be enabled in the XML configuration. | Integer |
Note The same card and the same score can be sent several times; this is used to update information, for example player name or time. Always check the unique id of the score or card when processing them. |
Score and card summary At the end of the match an overview with all the score changes and given cards is sent. <BetradarLiveOdds xmlns="http://www.betradar.com/BetradarLiveOdds" status="score" timestamp="1199436663643">
<Match active="1" betstatus="stopped" matchid="661373" msgnr="78" score="1:2" status="ended">
<Score away="0" home="1" id="7966" player="P. Anderson" scoringteam="home" time="4" type="score"/>
<Card id="7967" player="P. Anderson" team="home" time="7" type="yellow"/>
<Card id="7965" player="A. Johnsen" team="away" time="4" type="yellow"/>
<Score away="1" home="1" id="7969" player="" scoringteam="away" time="8" type="score"/>
<Score away="2" home="1" time="90" type="ft"/>
<Score away="2" home="1" id="7971" player="" scoringteam="away" time="49" type="score"/>
<Score away="1" home="1" time="45" type="ht"/>
<Card id="7970" player="A. Johnsen" team="away" time="46" type="yellowred"/>
</Match>
</BetradarLiveOdds> |
XML attributes definition Element | Attributes |
---|
| Attribute | Description | Possible values | BetradarLiveOdds | status | What kind of information is contained in the message. | String "score" (for score change overview if match has ended) | Score | type | Type of score. Note that for all values except "score" no id attribute is available, as this is only summarizing the score during different moments of the match. | String Possible values: - "score" = score change during match
- "ht" = score on half time
- "ft" = score on full time
- "ot" = score after overtime
- "pen" = score after penalties
The values "ot" and "pen" are only included if the corresponding XML configuration is enabled. |
|