---
updatedAt: 2025-08-20T13:17:06.000Z
agentTools:
  siteIndex: https://developer.sportradar.com/llms.txt
  projectIndex: https://developer.sportradar.com/widgets/llms.txt
---

# Score

<b>us.match.nba.score</b> is a variant of the smaller scoreboard with links. It features the current score, the teams represented by name and logo, the game status, and other key game-related information as collapsible content.

<Embed url="https://widgets.media.sportradar.com/uscommon/en_us/standalone/us.match.nba.score#border=false&matchId=54679333" title="iframe" provider="widgets.media.sportradar.com" href="https://widgets.media.sportradar.com/uscommon/en_us/standalone/us.match.nba.score#border=false&matchId=54679333" typeOfEmbed="iframe" height="300px" width="100%" iframe="true" />

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

### Parameters

<table class="table-striped">
<thead>
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th colspan="5">Description</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td><code>props</code></td>
    <td>object</td>
    <td colspan="5">properties</td>
  </tr>
  <tr>
    <td rowspan="17"></td>
    <td rowspan="17"></td>
    <td><b>Name</b></td>
    <td><b>Type</b></td>
    <td><b>Argument</b></td>
    <td><b>Default</b></td>
    <td><b>Description</b></td>
  </tr>
  <tr>
    <td><code>matchId</code></td>
    <td>number</td>
    <td>required</td>
    <td></td>
    <td>Match ID</td>
  </tr>
  <tr>
    <td><code>showDate</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> shows the scheduled date beside the time (pre-game only).</td>
  </tr>
  <tr>
    <td><code>isCollapsed</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td>'true'</td>
    <td>If <code>false</code> collapses collapsible content (i.e. game information).</td>
  </tr>
  <tr>
    <td><code>showOdds</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td>'true'</td>
    <td>If <code>false</code> hides odds (pre-game only).</td>
  </tr>
  <tr>
    <td><code>disableHeader</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> hides the header.</td>
  </tr>
  <tr>
    <td><code>disableGameInfo</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> hides collapsible content (i.e. game information).</td>
  </tr>
  <tr>
    <td><code>disableGameInfoXSmall</code></td>
    <td>function</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> hides collapsible content (i.e. game information) on X-Small responsive breakpoint (\<321px).</td>
  </tr>
  <tr>
    <td><code>disableAttendance</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> hides attendance content.</td>
  </tr>
  <tr>
    <td><code>disableTeamClick</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> disables onItemClick handler for teams.</td>
  </tr>
  <tr>
    <td><code>disablePlayerClick</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> disables onItemClick handler for players (i.e. team leaders under game information).</td>
  </tr>
  <tr>
    <td><code>enableMatchClick</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>true</code> the whole widget triggers match target event on onItemClick. All other targets are disabled.</td>
  </tr>
  <tr>
    <td><code>preMatchLinks</code></td>
    <td>string</td>
    <td>optional</td>
    <td></td>
    <td>Comma separated string of link keys for pre-game. Can be <code>undefined</code>, <code>default</code>, <code>preview</code>, <code>boxscore</code>, <code>gametracker</code>, <code>recap</code>, <code>lineups</code>, <code>matchstats</code>. Entering <code>default</code> is the same as entering <code>'preview'</code>.</td>
  </tr>
  <tr>
    <td><code>liveMatchLinks</code></td>
    <td>string</td>
    <td>optional</td>
    <td></td>
    <td>Comma separated string of link keys for a live game. Can be <code>undefined</code>, <code>default</code>, <code>preview</code>, <code>boxscore</code>, <code>gametracker</code>, <code>recap</code>, <code>lineups</code>, <code>matchstats</code>. Entering <code>default</code> is the same as entering <code>'boxscore, gametracker'</code>.</td>
  </tr>
  <tr>
    <td><code>postMatchLinks</code></td>
    <td>string</td>
    <td>optional</td>
    <td></td>
    <td>Comma separated string of link keys for post-game. Can be <code>undefined</code>, <code>default</code>, <code>preview</code>, <code>boxscore</code>, <code>gametracker</code>, <code>recap</code>, <code>lineups</code>, <code>matchstats</code>. Entering <code>default</code> is the same as entering <code>'boxscore, recap'</code>.</td>
  </tr>
  <tr>
    <td><code>border</code></td>
    <td>boolean</td>
    <td>optional</td>
    <td></td>
    <td>If <code>false</code> hides a border around the widget.</td>
  </tr>
  <tr>
    <td><code>onItemClick</code></td>
    <td>function</td>
    <td>optional</td>
    <td></td>
    <td>Function/event handler. More info below.</td>
  </tr>
</tbody>
</table>

By default, the widget has two click target areas: <code>team</code> and <code>player</code>.

The <code>player</code> targets appear in the Game Information section depending on the game status. With <code>preMatchLinks</code>, <code>liveMatchLinks</code> and/or <code>postMatchLinks</code> enabled, the Score widget can get additional targets: <code>preview</code>, <code>boxscore</code>, <code>gametracker</code>, <code>recap</code>, <code>lineups</code>, and <code>matchstats</code>.

When <code>enableMatchClick</code> is set to true the whole Score widget becomes a match target and all other targets are disabled.

All targets emit the following match props on click or touch: <code>matchId</code>, <code>sportId</code>, <code>realCategoryId</code>, <code>seasonId</code>, <code>tournamentId</code>, <code>uniqueTournamentId</code>, <code>awayTeamUid</code>, <code>homeTeamUid</code>, <code>matchStatus</code>.

Team target adds <code>uniqueTeamId</code>; player target adds <code>playerId</code>.

Valid <code>matchStatus</code> values are: <code>pre</code>, <code>live</code>, <code>post</code>.

### Examples

```javascript Examples of onItemClick targets and emitted props
"team",{"matchId":27515036,"seasonId":79153,"tournamentId":10561, "uniqueTournamentId":132,"realCategoryId":15,"sportId":2,"awayTeamUid":3416, "homeTeamUid":3427,"matchStatus":"post","uniqueTeamId":3427},
  
"player",{"matchId":27515036,"matchStatus":"post","playerId":608028, "seasonId":79153,"tournamentId":10561,"uniqueTournamentId":132,"realCategoryId":15, "sportId":2,"awayTeamUid":3416,"homeTeamUid":3427},
  
"box_score",{"matchId":27515036,"seasonId":79153,"tournamentId":10561, "uniqueTournamentId":132,"realCategoryId":15,"sportId":2,"awayTeamUid":3416, "homeTeamUid":3427,"matchStatus":"post"},
  
"match",{"matchId":27515036,"seasonId":79153,"tournamentId":10561, "uniqueTournamentId":132,"realCategoryId":15,"sportId":2,"awayTeamUid":3416, "homeTeamUid":3427,"matchStatus":"post"},  
```

```html HTML/Declarative
<div class="sr-widget" data-sr-widget="us.match.nba.score" data-sr-match-id="12233102"></div>
<script type="application/javascript" src="https://widgets.media.sportradar.com/YOUR_CLIENT_ALIAS/widgetloader" data-sr-language="en_us" async></script>

```

```javascript JS/Programmatic
<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.nba.score', {matchId: 12232964});
</script>
<div id="sr-widget"></div>

```

```javascript JS/Example using Event Handlers
<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.nba.score', {matchId: 12233102, postMatchLinks: 'default', onItemClick: function(target, obj){alert(target+':'+JSON.stringify(obj));}});
</script>
<div id="sr-widget"></div>

```