Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Future Odds Table

us.betting.season.futureOddsTable provides an outright odds table with specific bookmakers, as well as a consensus average betting line.

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

Parameters

NameTypeArgumentDefaultDescription
uniqueTournamentIdnumberrequiredUnique Tournament ID
outrightIdnumberoptionalOutright ID. This is the numeric part of the market id (sr:winner_event:N). Values copied from an embed created before the outright feed change will not match; the widget falls back to the first market in the list.
competitorIdnumberoptionalCompetitor ID. This is the numeric part of the competitor id used by the outright feed. Applicable to competitors layout.
filterstringoptionalDetermines the entity by which outrights are grouped and filtered. It reflects the values in the dropdown. Valid values are: futures, competitors and competitorTypes.
oddsTypeOverridestringoptionalOverrides the default oddsType. Valid values are: us (money line), eu (decimal) and uk (fractional).
bookmakersstringoptional'draftkings'A comma separated string with bookmaker keys, one table column each, in the order given. Defaults to draftkings. Pass internal for the Sportradar book, which replaces the former AVG column. Duplicate keys collapse and unknown keys are skipped.
addWordOddsToOutrightNamingbooleanoptionalIf true includes the word "ODDS" in the title of each outright.
disableHeaderbooleanoptionalIf true hides the header.
disableTournamentDropdownbooleanoptionalIf true hides the tournament dropdown.
disableFeatureDropdownbooleanoptionalIf true disables the feature dropdown. Applicable to the futures layout.
disableCompetitorTypeDropdownbooleanoptionalIf true disables the competitor type dropdown. Applicable to the competitors and competitorsType layout.
disableCompetitorDropdownbooleanoptionalIf true disables the competitor dropdown. Applicable to the competitors layout.
disableSortingbooleanoptionalIf true disables the table sorting. Single-row tables have sorting turned off by default.
enableTeamColorsbooleanoptionalEnables team colors.
borderbooleanoptionalIf true draws a border around the widget.
scopestringoptional'league'What uniqueTournamentId names. Valid values are league (default) and tournament. With league the id is read as a league: it is normalized to the league's main tournament and the outrights of the whole family are shown together (e.g. NBA together with the NBA Cup, NCAAB together with March Madness). With tournament exactly the given uniqueTournamentId is fetched, which is how a single tournament's outrights are shown. Only affects US leagues with a known family; for any other tournament both values fetch the same data.
rowsPerPagenumberoptionalIf set, enables table pagination and specifies the number of rows per page.
onItemClickfunctionoptionalFunction/event handler. Emits uniqueTeamId on team click or touch and matchId on widget click or touch.

Examples

<div class="sr-widget" data-sr-widget="us.betting.season.futureOddsTable" data-sr-unique-tournament-id="27625"></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.futureOddsTable', {uniqueTournamentId: 27625});
</script>
<div id="sr-widget"></div>
<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.futureOddsTable', {uniqueTournamentId: 27625, onItemClick: function(type, obj){alert(JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>

Did this page help you?