Widget Docs
Coverage MatrixDocumentationChange LogLog InContact Us
Widget Docs

Score Nano

us.match.nfl.scorenano is a condensed version of the scoreboard widget. It provides the current score and status of a given NFL game.

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

Parameters

NameTypeDescription
propsobjectproperties
NameTypeArgumentDefaultDescription
matchIdstringrequiredMatch ID
borderbooleanoptionalIf false hides a border around the widget.
onItemClickfunctionoptionalFunction/event handler. Only target item is match. More info below.

onItemClick property emits various match props on click or touch, such as matchId, sportId, realCategoryId, seasonId, tournamentId, uniqueTournamentId, awayTeamUid, homeTeamUid, awayTeamId, homeTeamId, seasonType, week.

Valid matchStatus values are: pre, live, post.

Examples

match: {"matchId":"sd:match:ee83c78d-f7eb-46fc-a851-e5e3b2a82f44","seasonId":2020,"tournamentId":47,"uniqueTournamentId":31,"realCategoryId":43,"sportId":16,"awayTeamUid":4421,"homeTeamUid":367364,"matchStatus":"post","seasonType":"REG","week":10,"awayTeamId":"sd:team:82cf9565-6eb9-4f01-bdbd-5aa0d472fcd9","homeTeamId":"sd:team:d26a1ca5-722d-4274-8f97-c92e49c96315"}
<div class="sr-widget" data-sr-widget="us.match.nfl.scoreNano" data-sr-match-id="sd:match:5c981331-29d9-4c65-b4f2-5e1101295b3e"></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.match.nfl.scoreNano', {matchId: sd:match:5c981331-29d9-4c65-b4f2-5e1101295b3e});
</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.match.nfl.scoreNano', {matchId: 25324910, onItemClick: function(target, obj){alert(target+':'+JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>