Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Team Seasonal Statistics

us.season.ncaaf.teamsStats displays a sortable team statistics table for all teams in a given season. Data can be filtered by season type (regular season, bowl games) and by stats categories (offense, defense).

All widget properties are optional. By default, the widget will provide a table for the active season.

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
seasonIdnumberoptionalactive seasonSeason ID
yearnumberoptionalSeason year.
seasonTypestringoptionalSeason type: total, regular, or playoffs.
modestringoptional'offense'Mode: offense or defense.
conferencestringoptional'fbs'Conference: fbs.
pageLengthnumberoptional50Number of teams to display per page.
borderbooleanoptionalWhen set to true the table is displayed with a border.
disableTitlebooleanoptionalWhen set to true hides the widget title.
hideFiltersbooleanoptionalWhen set to true hides all filters / dropdown.
offenseColumnsstringoptionalComma separated string of offensive table statistics column keys. Used for picking fewer columns and different order. Valid options are: pts, ptsg, tyrd, tyrdg, pyrd, pyrdg, ryrd, ryrdg.
defenseColumnsstringoptionalComma separated string of defensive table statistics column keys. Used for picking fewer columns and different order. Valid options are: ptsa, ptsag, tyrd, tyrdg, ttacks, sacks, sacky, ff, dint, intyds.
onItemClickfunctionoptionalFunction/event handler. Emits uniqueTeamId, seasonId, uniqueTournamentId on table row click or touch.
props.offenseColumns Option Descriptions
OptionDescription
ptsPoints
ptsgPoints Per Game
tyrdTotal Yards
tyrdgTotal Yards Per Game
pyrdPassing Yards
pyrdgPassing Yards Per Game
ryrdRushing Yards
ryrdgRushing Yards Per Game
props.defenseColumns Option Descriptions
OptionDescription
ptsaPoints Against
ptsagOpponent Points Per Game
tyrdTotal Yards Allowed
tyrdgTotal Yards Allowed Per Game
ttacksTotal Tackles
sacksSacks
sackyDefensive Sack Yards
ffFumbles Forced
dintDefensive Interceptions
ffDefensive Interception Yards

Examples

<div class="sr-widget" data-sr-widget="us.season.ncaaf.teamsStats"></div></code>
<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.ncaaf.teamsStats', {});
</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.ncaaf.teamsStats', {onItemClick: function(type, obj){alert('uniqueTeamId: ' + obj.uniqueTeamId);}});
</script>
<div id="sr-widget"></div>