Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Odds Comparison

us.betting.season.oddsComparison provides daily bookmaker odds for all games in a given season/tournament.

For the widget to render you must provide a valid uniqueTournamentId. All other properties are optional.

Parameters

NameTypeArgumentDefaultDescription
uniqueTournamentIdnumberrequiredUnique Tournament ID
matchStatusstringoptional'pre'Match Status Filter. You can choose between pre or live.
oddsTypestringoptional'spread'Odds Type Filter. Choose between: spread, moneyLine, or overunder. In MLB, spread stands for runline.
bookmakersstringoptionalComma separated string for selected bookmakers. Options are: draftkings, fanduel, mgm, williamhillnewjersey, caesarsnewjersey, caesarspennsylvania, sugarhousenj, bet365newjersey, and pointsbet.
selectedDatestringoptionalSelects particular date. Supports YYYY-MM-DD.
onItemClickfunctionoptionalFunction/event handler. Emits matchId and other props on table row click or touch.
borderbooleanoptionalIf true draws a border around the widget.
enableLimitbooleanoptional'true'If true enables a 5 game limit on the table. If more games are available, a "more" button appears and after clicking it, 5 more games can be seen.
disableOddsColorbooleanoptionalIf true disables odds colors on live games.
disableOddsHighlightingbooleanoptionalIf true disables highlighting for odds changes.
disableHeaderbooleanoptionalIf true disables season info header.
enableDeeplinkbooleanIf true bookmaker column headings become clickable, opening the corresponding bookmaker's website in a new browser tab.

Examples

<div class="sr-widget" data-sr-widget="us.betting.season.oddsComparison" data-sr-unique-tournament-id="109"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>
<script>
    (function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
    g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
    )})(window,document,"script","https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.betting.season.oddsComparison', {uniqueTournamentId: 109});
</script>
<div id="sr-widget"></div>
<p>JS/Example of using Event Handler</p>
<script>
    (function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e].q||[]).push(arguments)},i.l=1*new Date,i.o=f,
    g=b.createElement(c),h=b.getElementsByTagName(c)[0],g.async=1,g.src=d,g.setAttribute("n",e),h.parentNode.insertBefore(g,h)
    )})(window,document,"script","https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader","SIR", {
        language: 'en_us'
    });
    SIR('addWidget', '#sr-widget', 'us.betting.season.oddsComparison', {uniqueTournamentId: 109, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>