Widget Docs
Coverage MatrixDocumentationRelease LogLog InContact Us

Season Scores

us.season.ncaab.scores displays scoreboard information broken down by day (according to local time).

Important to note when using this widget:
1. Select division, conference, and playoffTournament to determine what games are displayed in any given day. The date switcher control will allow you to navigate across every day of the current season. Selecting division narrows the available games and the date switcher to games pertaining to that division. The conference filtering applies only to regular season, and the playoffTournament applies only to the postseason.
  • By default, when dateFilteringLast is set to false the date switcher control is applied after the division filter and navigates through all selected division days where games are being played. conference and playoffTournament are applied last and filter the games list for a selected day. The conference selector is displayed and enabled only for regular season games. In the postseason, the conference selector is replaced with the playoffTournament selector. An empty list of games on a particular day is possible. A "No matches available" message will be displayed in this instance.
  • If dateFilteringLast is set to true the conference and playoffTournament filters are applied after the division narrows down the date navigation to only display the days in which a team from the specified conference or playoffTournament is playing. Note that the date selector auto-selects among the available game days on every conference and playoffTournament change in this scenario. The conference and playoffTournament filters exclude each other. When one is selected, the other resets to all available items.
2. The widget will automatically flip to the next day at end of the current day/start of the next day during auto-selecting mode, unless dayFlipUTCHours or dayFlipHoursBefore are set. In that case, the widget will display the previous day's results until the time passes current day dayFlipUTCHours or dayFlipHoursBefore scheduled time of the first game.

3. For older seasons, the auto-selected day is always the last day of the season.

4. Props selectedDate and selectedIdx allow you to select a particular day to display.

5. Among all the available NCAA scores, a Score widget is used to render each individual game and features the option to include links for navigating to other widgets/content.

6. Clickable items are teams and links, as noted in the Parameters section of the documentation.

Parameters

Name Type Argument Default Description
seasonId number optional Season ID
division string optional Division ID. See here for a list of valid divisions.
conference string optional Conference ID. See here for a list of valid conferences.
playoffTournament string optional all tournaments Selected playoff tournament. Options are: ncaa, nit, cbi, cit.
selectedDate string optional Selected date in YYYY-MM-DD format.
selectedIdx number optional Selects particular day. Index starts with 0.
dateFilteringLast boolean optional 'false' If true the date switcher filtering is applied last. Selected conference or playoffTournament narrows down the available date switcher play days.
showOdds boolean optional 'true' If false odds for all pre-gamees visualizations are hidden.
dayFlipUTCHours number (integer between 0 and 23) optional Forces flipping to current day's games at a specified time based on UTC time zone, but not before start of the current day (in local time). Although the time is set according to UTC, it will effect end users according to their local time zone. Example: if the current date is 1/19/22, a value of 20 will set flipping at 12:00 for a user in PST time zone, 15:00 for EST and 21:00 for CET. However, using a value of 6 will set flipping at 0:00 PST (rather than 1/18/22 22:00 PST), 1:00 EST and 7:00 CET. An integer between 0 and 23. dayFlipUTCHours has priority over dayFlipHoursBefore.
dayFlipHoursBefore number (integer between 0 and 23) optional Forces flipping to current day's games a specific number of hours before scheduled time of the first match, but not before start of the current day (in local time). Example: if the first game of the day is at 7:30pm EST, a value of 7 would leave last night's games displayed until 12:30pm EST. An integer between 0 and 23.
disableDateSwitcher boolean optional If true hides the date switcher control.
disableDivisionDropdown boolean optional If true hides the division dropdown.
disableConferenceDropdown boolean optional If true hides the conference dropdown.
disableGameHeader boolean optional If true the game headers are hidden.
disableGameInfo boolean optional If true hides collapsible content (i.e. game information).
disableGameInfoXSmall boolean optional 'true' If true hides collapsible content (i.e. game information) on X-Small responsive breakpoint (<321px).
preMatchLinks string optional Comma separated string of link keys for pre-game. Valid options are: undefined, default, preview, boxscore, gametracker, recap, lineups, and matchstats. Entering default is the same as entering preview.
liveMatchLinks string optional Comma separated string of link keys for live games. Can be undefined, default, preview, boxscore, gametracker, recap, lineups. Entering default is the same as entering 'boxscore, gametracker'.
postMatchLinks string optional Comma separated string of link keys for post-game. Can be undefined, default, preview, boxscore, gametracker, recap, lineups. Entering default is the same as entering 'boxscore, recap'.
border boolean optional If true enables a border around the widget.
onItemClick function optional Function/event handler. By default, the widget has two click target areas: team and player. The player targets appear in the Game Information section, depending on game status. With preMatchLinks, liveMatchLinks and/or postMatchLinks set, the Score widget can get additional targets: preview, boxscore, gametracker, recap, lineups, matchstats links. All targets emit the following match props on click or touch: matchId, sportId, realCategoryId, seasonId, tournamentId, uniqueTournamentId, awayTeamUid, homeTeamUid, matchStatus. Team target adds uniqueTeamId, player target adds playerId. Valid matchStatus values are: pre, live, post.

Examples

<div class="sr-widget" data-sr-widget="us.season.ncaab.scores" data-sr-season-id="47474"></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.season.ncaab.scores', {seasonId: 56011, selectedDate: '2019-02-14'});
</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.season.ncaab.scores', {preMatchLinks: 'default', liveMatchLinks: 'default', postMatchLinks: 'default', onItemClick: function(type, obj){alert(type + ': ' +JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>