Betradar - the betting arm of Sportradar
Betradar - the betting arm of Sportradar
Sport specific information for baseball.
Match statuses for baseball
ID | Match status | Description | Additional information |
---|---|---|---|
0 | NOT_STARTED | Not started yet | - |
401 | FIRST_INNING_TOP | 1st inning top | - |
421 | BREAK_TOP1_BOTTOM1 | Break top1-bottom1 | - |
402 | FIRST_INNING_BOTTOM | 1st inning bottom | - |
422 | BREAK_TOP2_BOTTOM1 | Break top2-bottom1 | - |
403 | SECOND_INNING_TOP | 2nd inning top | - |
423 | BREAK_TOP2_BOTTOM2 | Break top2-bottom2 | - |
404 | SECOND_INNING_BOTTOM | 2nd inning bottom | - |
424 | BREAK_TOP3_BOTTOM2 | Break top3-bottom2 | - |
405 | THIRD_INNING_TOP | 3rd inning top | - |
425 | BREAK_TOP3_BOTTOM3 | Break top3-bottom3 | - |
406 | THIRD_INNING_BOTTOM | 3rd inning bottom | - |
426 | BREAK_TOP4_BOTTOM3 | Break top4-bottom3 | - |
407 | FOURTH_INNING_TOP | 4th inning top | - |
427 | BREAK_TOP4_BOTTOM4 | Break top4-bottom4 | - |
408 | FOURTH_INNING_BOTTOM | 4th inning bottom | - |
428 | BREAK_TOP5_BOTTOM4 | Break top5-bottom4 | - |
409 | FIFTH_INNING_TOP | 5th inning top | - |
429 | BREAK_TOP5_BOTTOM5 | Break top5-bottom5 | - |
410 | FIFTH_INNING_BOTTOM | 5th inning bottom | - |
430 | BREAK_TOP6_BOTTOM5 | Break top6-bottom5 | - |
411 | SIXTH_INNING_TOP | 6th inning top | - |
431 | BREAK_TOP6_BOTTOM6 | Break top6-bottom6 | - |
412 | SIXTH_INNING_BOTTOM | 6th inning bottom | - |
432 | BREAK_TOP7_BOTTOM6 | Break top7-bottom6 | - |
413 | SEVENTH_INNING_TOP | 7th inning top | - |
433 | BREAK_TOP7_BOTTOM7 | Break top7-bottom7 | - |
414 | SEVENTH_INNING_BOTTOM | 7th inning bottom | - |
548 | BREAK_TOPEI_BOTTOM7 | Break topEI-bottom7 | |
434 | BREAK_TOP8_BOTTOM7 | Break top8-bottom7 | - |
415 | EIGHTH_INNING_TOP | 8th inning top | - |
435 | BREAK_TOP8_BOTTOM8 | Break top8-bottom8 | - |
416 | EIGHTH_INNING_BOTTOM | 8th inning bottom | - |
436 | BREAK_TOP9_BOTTOM8 | Break top9-bottom8 | - |
417 | NINTH_INNING_TOP | 9th inning top | - |
437 | BREAK_TOP9_BOTTOM9 | Break top9-bottom9 | - |
418 | NINTH_INNING_BOTTOM | 9th inning bottom | - |
438 | BREAK_TOPEI_BOTTOM9 | Break topEI-bottom9 | - |
419 | EXTRA_INNING_TOP | Extra inning top | - |
439 | BREAK_TOPEI_BOTTOMEI | Break topEI-bottomEI | - |
420 | EXTRA_INNING_BOTTOM | Extra inning bottom | - |
100 | ENDED | The match has ended | - |
80 | INTERRUPTED | The match has been interrupted | - |
90 | ABANDONED | The match has been abandoned | This match status is only sent if the corresponding XML configuration is enabled. |
Events in baseball
Blue text = MLB Premium Data Points covered by device ID 5 (External Feed MLB) based on official MLB data feeds
(Δ) = Deltaupdate will deliver the richer information.
ID | Event | Description | Coverage | Extrainfo | Special MLB Attributes | Player1 | Player2 |
---|---|---|---|---|---|---|---|
60 | Substitutions | Happens whenever there is a substitution for either team. Entries are assigned to teams | External feed (DC MLB & Failover) | String: Outgoing player ID | String: Incoming player ID | ||
1010 | Betstart | Betstart indicates that betting markets can be activated. Betstart is not only a pre match event but is also used during the match. | External feed (DC MLB & Failover), iScout (BC) | - | |||
1011 | Betstop | Betstop indicates that all betting markets are closed due to strong possibility of a scoring situation or there being any unclear situation on the field. | External feed (DC MLB & Failover), iScout (BC) | Id of Betstop Reason as specified in LD - Betstart and Betstop | |||
1013 | Match status | Sent when the status of the match changes. | External feed (DC MLB & Failover), iScout (BC) | See above table for match statuses | |||
1015 | Free text / comment | Used for any kind of additional information during the match. Example: "Match interrupted due to flood light break down", etc.. | External feed (DC MLB & Failover), iScout (BC) | - | |||
1024 | Match about to start | This event is sent when both captains, together with the referee, are selecting which team will start the match. | External feed (DC MLB & Failover) | - | |||
1031 | Ball in play | Used when the ball is in play | External feed (DC MLB & Failover), iScout (BC) | - |
| String: Batter ID | |
1044 | Deleted event alert | Manual removal of an event. | External feed (DC MLB & Failover), iScout (BC) | Id of event that was deleted. | |||
1102 | Match coverage | Sent when the coverage status for the match changes | External feed (DC MLB & Failover), iScout (BC) | Possible values:
| |||
1310 | Ball hit | Batter successfully advances to (at least) 1st base | External feed (DC MLB) | - |
| String: Batter ID | - |
1458 | Video review | - | External feed (DC MLB & Failover), iScout (BC) | - | |||
1459 | Video review over | - | External feed (DC MLB & Failover), iScout (BC) | - | |||
1715 | Play start | Pitcher is about to throw a pitch | External feed (DC MLB & Failover), iScout (BC) | - | |||
1716 | Play over | Sent when the play is finished. | External feed (DC MLB & Failover), iScout (BC) | - |
| ||
1717 | Runners in motion | Runners are attempting to steal a base. | External feed (DC MLB & Failover), iScout (BC) | - | |||
1718 | Checked Runner | Pitcher tried to pick runner off, runner was safe | External feed (DC MLB & Failover), iScout (BC) | - | String: Runner ID (Δ) Example text: Runner MOOKIE BETTS on 1st base is checked | ||
1719 | Runner advances to base x | Runner advances to base x | External feed (DC Failover), iScout (BC) | Advancement types. Possible values:
| String: Runner ID Example text: Runner MOOKIE BETTS advances to 1st base (Single) | ||
1720 | Run scored | Main score event. | External feed (DC MLB & Failover), iScout (BC) | Scored run type (Δ). Possible values:
| String: Runner ID (Δ) Example text: MOOKIE BETTS scored run (Earned Run) | ||
1721 | Runner out | Sent when the runner is out. This event includes both base and non-base cases. | External feed (DC Failover), iScout (BC) | Runner out types. Possible values:
| String: Runner ID Example text: Runner MATT KEMP at 1st base is out (Force Out) | ||
1722 | Strike | Strike | External feed (DC MLB & Failover), iScout (BC) | Strike type (Δ). Possible values:
|
| String: Batter ID Example text: Strike looking for MOOKIE BETTS | |
1723 | Ball | Ball | External feed (DC MLB & Failover), iScout (BC) | Ball type (Δ). Possible values:
|
| String: Pitcher ID Example text: CLAYTON KERSHAW pitches the ball outside the zone | |
1724 | Foul ball | Foul ball | External feed (DC MLB & Failover), iScout (BC) | - |
| String: Batter ID Example text: Strike foul ball for MOOKIE BETTS | |
1725 | Who throws the first pitch | Information about what team throws the first pitch. | External feed (DC MLB & Failover), iScout (BC) | - | String: Pitcher ID Example text: CLAYTON KERSHAW to throw the first pitch | ||
1726 | Batter out | Sent when the batter is out. This event includes both base and non-base cases. | External feed (DC Failover), iScout (BC) | Batter out types. Possible values:
| String: Batter ID Example text: Batter MOOKIE BETTS is out (Fly Out) | ||
1727 | Batter advances to base x | Batter advances to base x. | External feed (DC Failover), iScout (BC) | Batter advancement types. Possible values:
| String: Batter ID Example text: Batter MOOKIE BETTS advances to 1st base (Single) | ||
1728 | Balk | After engaging the rubber pitcher commits a number of illegal motions or actions. | External feed (DC MLB & Failover), iScout (BC) | - | |||
1832 | Baseball stats correction | Baseball Stats Correction | External feed (DC MLB & Failover), iScout (BC) | Whether the score was changed. Possible values:
| |||
2112 | Baseball error | Describes a baseball error made by a player while interacting with either the ball or players on the field. | External feed (DC MLB) | Type of error made (Δ). Possible values:
| Player ID who made the error (Δ) | - | |
2143 | Current pitcher baseball | Sent when match starts and whenever pitcher changes | External feed (DC MLB & Failover) | String: Pitcher ID | |||
2144 | Current batter baseball | Sent when match starts and whenever batter changes | External feed (DC MLB & Failover) | String: Batter ID | |||
2149 | Player out | Signifies that a player is out. Will be updated with GUMBO data to tell if the player was a batter or runner. | External feed (DC MLB) | Player out type (Δ). Possible values:
| Extrainfobaseball (Δ). Possible values:
| String: Batter ID or Runner ID (Δ) | - |
2150 | Player on base x | Signifies that a player has reached a base. Will be updated with GUMBO data to tell who the player is. | External feed (DC MLB) | Type of advancement (Δ). Possible values:
| Extrainfobaseball (Δ): Whether it was a Batter or a Runnar. Possible values:
| String: Batter ID or Runner ID (Δ) | - |
This section explains what elements / attributes one can expect for baseball matches in addition to the standard elements and attributes, and what the meaning of those elements and attributes is.
Elements in <match> element
<match betstatus="BETSTOP" connectionstatus="0" dc="1" device="5" distance="3755" extrainfo="0" feedtype="full" matchid="10111515" matchtime="0:00:00" st1id="3652" st2id="3641" start="1463675700000" t1id="24442" t1name="BALTIMORE ORIOLES" t2id="24452" t2name="SEATTLE MARINERS"> <status id="100" name="ENDED" start="1463686822000"/> <score t1="2" t2="7" type="match"/> <score t1="0" t2="1" type="inning1"/> <score t1="1" t2="0" type="inning2"/> <score t1="0" t2="1" type="inning5"/> <score t1="0" t2="3" type="inning6"/> <score t1="1" t2="0" type="inning8"/> <score t1="0" t2="2" type="inning9"/> <matchformat> <format type="regularinnings" value="9"/> </matchformat> <tournament id="25" name="MLB"/> <category id="16" name="USA"/> <sport id="3" name="Baseball"/> <events/> </match>
XML elements and attributes definition
Element | Attributes | ||
---|---|---|---|
Attribute | Description | Possible values | |
matchformat | format type="regularinnings" | This element always gets included in full feed, and in the delta feed. |
|
score | Multiple occurrences possible, each occurrence describes the amount of points for the specified period Run scored (1720), Baseball stats correction (1832) | ||
t1 | Amount of points home team | Integer | |
t2 | Amount of points away team | Integer | |
type | For what period in the match the points were scored | String. Possible values:
|
Attributes in <event> element
<!-- Example 1 --> <match matchid="8820270" ... > <events> <event balls="0" baseinfo="0:1" errors="1" extrainfo="9" id="650825885" info="[T1] batter advances to 1st base (Walk)" inninghalf="B" matchscore="1:6" mtime="0:00:00" outs="2" pcount="16" periodnumber="9" periodscore="0:0" side="home" stime="1465698829601" strikes="0" type="1727"/> </events> </match> <!-- Example 2 --> <match matchid="8820270" ... > <events> <event balls="0" errorsaway="1" errorshome="0" extrainfo="0" firstbaseloaded="0" hitsaway="10" hitshome="6" id="650825141" info=" Statistics have been corrected" inninghalf="B" matchscore="1:6" mtime="0:00:00" outs="2" periodnumber="9" periodscore="0:0" runsaway="6" runshome="1" secondbaseloaded="0" side="none" stime="1465698675532" strikes="0" thirdbaseloaded="1" type="1832 "> <inningscore away="0" home="0" inning="1"/> <inningscore away="1" home="0" inning="2"/> ... </event> </events> </match>
XML attributes definition
Element | Attributes | ||
---|---|---|---|
Attribute | Description | Possible values | |
event | extrainfo | Attribute containing additional information about the event. | Long |
matchscore | Score for current match. | String. Format: "[home]:[away]" | |
periodscore | Score for current period. | String. Format: "[home]:[away]" | |
extrainfobaseball | Attribute containing additional information about the event. | String | |
baseinfo | From what base the player moved, and what base the player reached. This attribute gets added for the following events: Checked runner (1718) (Δ), Run scored (1720) (Δ), Runner out (1721), Runner advancement (1719), Batter advancement(1727), Player out (2149) (Δ), Player on base X (2150 with extrainfobaseball=0/runner) (Δ). | String. Format: "[starting base]:[reached base]" Example: "1:2" Please note that value "999" is a valid value for a starting base and means the starting base is unknown. | |
periodnumber | Number of current period in match. | Integer | |
inninghalf | |||
balls | This attribute gets added for the following events: | ||
runs | This attribute gets added for the following events: | ||
strikes | This attribute gets added for the following | ||
outs | This attribute gets added for the following | ||
pcount | This attribute gets added for the following | ||
errors | This attribute gets added for the following | ||
runshome | Amount of runs home team. Note that this attribute only gets added to the baseball stats correction info event (1832), after the corresponding XML configuration has been enabled. | Integer | |
runsaway | Amount of runs awa y team. Note that this attribute only gets added to the baseball stats correction info event (1832), after the corresponding XML configuration has been enabled. | Integer | |
hitshome | Amount of hits home team. Note that this attribute only gets added to the Ball hit (1310), Play over (1716) and baseball stats correction info event (1832 after the corresponding XML configuration has been enabled). | Integer | |
hitsaway | Amount of hits away team. Note that this attribute only gets added to the Ball hit (1310), Play over (1716) and baseball stats correction info event (1832 after the corresponding XML configuration has been enabled). | Integer | |
errorshome | Amount of errors home team. Note that this attribute only gets added to the Play over (1716) and baseball stats correction info event (1832), after the corresponding XML configuration has been enabled. | Integer | |
errorsaway | Amount of errors away team. Note that this attribute only gets added to the Play over (1716) and baseball stats correction info event (1832), after the corresponding XML configuration has been enabled. | Integer | |
firstbaseloaded | Whether the first base is loaded or not. Note that this attribute only gets added to the Play over (1716) and baseball stats correction info event (1832 after the corresponding XML configuration has been enabled). | Byte. Possible values: | |
secondbaseloaded | Whether the second base is loaded or not. Note that this attribute only gets added to the Play over (1716) and baseball stats correction info event (1832 after the corresponding XML configuration has been enabled). | Byte. Possible values: | |
thirdbaseloaded | Whether the third base is loaded or not. Note that this attribute only gets added to the Play over (1716) and baseball stats correction info event (1832 after the corresponding XML configuration has been enabled). | Byte. Possible values: | |
inningscore | This element gets included in the delta feed for the following events: | ||
home | Points for home team | ||
away | Points for away team | ||
inning | What inning the points were awarded in |
Additional recommendation for MLB Live Data XML feed handling
With the tri-feed integration, there has been a change in behavior of our feeds in pursuit of the lowest latency data possible. The change is two-fold and does have implications on our recommended handling of messages.
First, we providing data as the play unfolds on the field rather than waiting until the play and base positions are finalized to send data. As outs are recorded or runs are scored during a play, this information will come through immediately when entered. For examples as a fly-ball is caught, a “player out” message will be sent even if there are still runners trying to tag up and advance on the base paths. Similarly, on a straightforward ground into double play, a “player out” message will be sent when the first runner is out while the fielding team is still trying to complete the double-play.
Second, as runner positions on the bases are finalized, we are now sending a “player on base X” message before we receive information on who the runner is or where he advanced from. Before a “play over” message is sent, we will have provided a “player on base X” event for every base that is occupied by a batter or runner upon the conclusion of the play.
Due to this change, we have added full game state information (balls, strikes, outs, pcount, errors, hitshome, hitsaway, errorshome, errorsaway, firstbaseloaded, secondbaseloaded and thirdbaseloaded attributes) to the play over event ID 1716 to eliminate or minimize any need to track intermediate states as a play unfolds.
XML configurations for baseball
This section explains what XML configurations one can expect for this sport in addition to the standard XML configurations, and
what the meaning of these configurations is.
(ID: 50) Include baseball stats correction info
If this setting is enabled, the baseball stats correction event (1832) will include new attributes and child elements.
<event balls="1" errorsaway="2" errorshome="1" extrainfo="0" firstbaseloaded="0" hitsaway="1" hitshome="6" id="13119818" info=" Statistics have been corrected" inninghalf="T" matchscore="6:1" mtime="0:00:00" outs="1" periodnumber="2" periodscore="0:0" runsaway="1" runshome="6" secondbaseloaded="0" side="none" stime="1455109903000" strikes="1" thirdbaseloaded="0" type="1832" > <inningscore away="1" home="6" inning="1" /> <inningscore away="0" home="0" inning="2" /> ... </event>
XML attributes definition
Element | Attributes | ||
---|---|---|---|
Attribute | Description | Possible values | |
event | runshome | Total runs for home team. | Integer |
runsaway | Total runs for away team. | Integer | |
hitshome | Total hits for home team. | Integer | |
hitsaway | Total hits for away team. | Integer | |
errorshome | Total errors for home team. | Integer | |
errorsaway | Total errors for away team. | Integer | |
firstbaseloaded | Whether the first base is loaded. | Byte. | |
secondbaseloaded | Whether the second base is loaded. | Byte. | |
thirdbaseloaded | Whether the third base is loaded. | Byte. | |
inningscore | - | Child element of the <event>- element containing the inning score. Multiple occurrences possible. | |
inning | Inning number | Integer | |
home | Total runs for home team in this inning. | Integer | |
away | Total runs for away team in this inning. | Integer |
(ID: 113) Include player IDs in baseball events
If this setting is enabled, it will add player IDs to supported baseball events.
(ID: 115) Send lineups for baseball matches
If this setting is enabled, lineups are sent for baseball matches.
XML attributes definition
Atribute | Description | Possible values |
---|---|---|
position | Where the player is playing in the field | String |
order | Batting order at match start | Integer |
Position definitions:
- 1 = Pitcher
- 2 = Catcher
- 3 = First Base
- 4 = Second Base
- 5 = Third Base
- 6 = Shortstop
- 7 = Left Field
- 8 = Centerfield
- 9 = Right Field
- 10 = Designated Hitter
- 11 = Pinch Hitter
- 12 = Pinch Runner
(ID: 142) Include player positions in lineup
Enabling this setting will add the attribute position to the <player> element.
<lineups matchid="17132705"> <player id="1097538" name="O'Neill, Tyler" shirtnumber="0" substitute="false" team="1" position="Left Field" order="7"/> <player id="972985" name="DeJong, Paul" shirtnumber="12" substitute="false" team="1" position="Shortstop" order="5"/> <player id="841983" name="Wong, Kolten" shirtnumber="16" substitute="false" team="1" position="Second Base" order="6"/> <player id="1410115" name="Edman, Tommy" shirtnumber="19" substitute="false" team="1" position="Third Base" order="1"/> <player id="842621" name="Fowler, Dexter" shirtnumber="25" substitute="false" team="1" position="Center Field" order="2"/> <player id="846689" name="Wieters, Matt" shirtnumber="32" substitute="false" team="1" position="Catcher" order="8"/> <player id="927646" name="Martinez, Jose" shirtnumber="38" substitute="false" team="1" position="Right Field" order="3"/> <player id="1373225" name="Mikolas, Miles" shirtnumber="39" substitute="false" team="1" position="Pitcher" order="9"/> <player id="841919" name="Goldschmidt, Paul" shirtnumber="46" substitute="false" team="1" position="First Base" order="4"/> </lineups>
(ID: 53) Allow inning score types
The attribute type in the <score> element (subelement from <match> element) has a set list of possible values. If this setting is enabled, the attribute type can have one of the following values, in addition to the regular values matches:
- Inning1
- Inning2
- .
- .
- Inning9
<match matchid="7440630" ... > <score t1="14" t2="20" type="inning2"/> <!-- Remaining message truncated --> </match>
(ID: 55) Allow overtime score types
The attribute type in the <score> element (subelement from <match> element) has a set list of possible values. If this setting is enabled, the attribute type can have one of the following values, in addition to the regular values matches:
- overtime
- overtime1
- overtime2
<match matchid="7440630" ... > <score t1="14" t2="20" type="overtime1"/> <!-- Remaining message truncated --> </match>
(ID: 57) Allow penalties score type
The attribute type in the <score> element (subelement from <match> element) has a set list of possible values. If this setting is enabled it will allow the <score> element in the feed to have the "penalties" type.
<match matchid="7440630" ... > <score t1="14" t2="20" type="penalties"/> <!-- Remaining message truncated --> </match>