---
title: "Match Preview"
canonical_url: "https://apidocs.sportradar.com/resources/widgets/docs/match-preview/match-preview"
markdown_url: "https://apidocs.sportradar.com/resources/widgets/docs/match-preview/match-preview.md"
last_updated: "2026-08-11T13:11:13Z"
---

# Match Preview

**Match Preview** widget provides comprehensive pre-match information and statistics across multiple sports through an expandable/collapsible tabbed interface. The widget consolidates essential match context including team form, head-to-head records, lineups, league standings, season leaders, team statistics, and tournament brackets into a single organized component. It supports 16 different sports with sport-specific tab configurations and data presentations. The widget features an expandable interface that allows users to switch between collapsed (compact) and expanded (full-detail) modes, making it suitable for both space-constrained match pages and dedicated pre-match hubs.

![Match Preview Full View](https://apidocs.sportradar.com/resources/widgets/static/img/matchpreview/matchpreview_full_carousel.png)

Full-height mode displaying complete tab content with all details visible.

![Match Preview Collapsed View](https://apidocs.sportradar.com/resources/widgets/static/img/matchpreview/matchpreview_collapsed_carousel.png)

Compact mode showing selected tab content only with minimal details.

See the [Match Preview widget demo](https://widgets.sir.sportradar.com/match-preview).

## Supported Content and Environment

### Required Parameters

- **widget-name**: `match.preview`
- **matchId**: Unique identifier for the match. See [Getting Identifiers](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md)

**Environment Requirements**

## Technical Requirements:

- JavaScript enabled
- XMLHttpRequest support for data fetching
- CSS3 support for styling and animations

**Supported Sports**

The Match Preview widget supports the following sports, each with sport-specific tab configurations:

| Sport             | Sport ID |
| ----------------- | -------- |
| Soccer            | 1        |
| Basketball        | 2        |
| Baseball          | 3        |
| Ice Hockey        | 4        |
| Tennis            | 5        |
| Handball          | 6        |
| Rugby             | 12       |
| Football          | 16       |
| Snooker           | 19       |
| Table Tennis      | 20       |
| Darts             | 22       |
| Volleyball        | 23       |
| Futsal            | 29       |
| Badminton         | 31       |
| Beach Volley      | 34       |
| Esport Soccer     | 137      |
| Esport Basketball | 153      |
| Esport Ice Hockey | 195      |

Tab availability varies by competition and data availability. Some tournaments may not have all tabs populated.

## Main Configurable Features

Illustrations of main layout variants and tab configurations with relevant property values below.

**Full View**

![Match Preview Full](https://apidocs.sportradar.com/resources/widgets/static/img/matchpreview/matchpreview_full.png)

- isCollapsed: `false`

Full-height immersive experience with complete tab details. Ideal for dedicated pre-match pages.

**Collapsed View**

![Match Preview Collapsed](https://apidocs.sportradar.com/resources/widgets/static/img/matchpreview/matchpreview_collapsed.png)

- isCollapsed: `true`

Compact height showing selected tab content only. Suitable for multi-widget match pages.

**Custom Tab Order**

![Match Preview Custom Tab Order](https://apidocs.sportradar.com/resources/widgets/static/img/matchpreview/matchpreview_tabs.png)

- tabs: `{1: ['standings', 'matchInfo', 'lineups']}`

Sport-based custom tab config with ability to remove or reorder tabs.

See [Match Preview widget demo](https://widgets.sir.sportradar.com/match-preview)

## API Reference

| Property                | Type      | Default                                   | Description                                                                                                                                                     |
| ----------------------- | --------- | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `matchId`               | `number`  | **Required**                              | Unique identifier for the match. See [Getting Identifiers](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md)              |
| `isCollapsed`           | `boolean` | `false`                                   | Initial collapse state. When `true`, widget displays in compact mode showing selected tab content only. When `false`, displays expanded mode with full details. |
| `disableExpandButton`   | `boolean` | `false`                                   | Hides the expand/collapse toggle button in footer. When `true`, users cannot change collapse state after initialization.                                        |
| `tabs`                  | `object`  | See [Tabs identifiers](#tabs-identifiers) | Custom tab selection/order per sport. Invalid tab IDs are automatically filtered out.                                                                           |
| `disableTabs`           | `boolean` | `false`                                   | Hides tab navigation entirely. When `true`, only the first valid tab content is rendered without tab switcher UI.                                               |
| `s5ClientAlias`         | `string`  | `undefined`                               | S5 client alias to be used for direct link to additional statistics (on S5 solution). Required for "More Stats" button to function.                             |
| `openMoreStatsInNewTab` | `boolean` | `true`                                    | Controls "More Stats" link behavior. When `true`, opens S5 in new tab. When `false`, navigates current window.                                                  |
| `disableMoreStats`      | `boolean` | `false`                                   | When `true`, "More Stats" button in footer is disabled.                                                                                                         |

### Tabs Identifiers

`tabs` property is an object with sport IDs as keys and arrays of strings (tab identifiers) as values.

```javascript
{
  1: ['matchInfo', 'standings', 'leaders', 'lineups', 'cup', 'playoffs', 'teamStats'], // soccer
  2: ['matchInfo', 'standings', 'leaders', 'lineups', 'teamStats', 'cup', 'playoffs'], // basketball
  3: ['matchInfo', 'standings', 'leaders', 'lineups', 'teamStats', 'cup', 'playoffs'], // baseball
  4: ['matchInfo', 'standings', 'leaders', 'lineups', 'teamStats', 'cup', 'playoffs'], // ice hockey
  5: ['matchInfo', 'playerProfiles', 'standings'], // tennis
  6: ['matchInfo', 'standings', 'lineups', 'teamStats', 'cup'], // handball
  12: ['matchInfo', 'standings', 'lineups', 'teamStats', 'cup'], // rugby
  16: ['matchInfo', 'standings', 'leaders', 'lineups', 'teamstats', 'playoffs'], // american football
  19: ['matchInfo', 'standings', 'ranking', 'playerStats', 'cup'], // snooker
  20: ['matchInfo', 'standings', 'teamStats', 'cup'], // table tennis
  22: ['matchInfo', 'standings', 'ranking', 'teamStats', 'cup'], // darts
  23: ['matchInfo', 'standings', 'teamStats', 'cup'], // volleyball
  29: ['matchInfo', 'standings', 'lineups', 'teamStats', 'cup'], // futsal
  31: ['matchInfo', 'standings', 'ranking', 'teamStats', 'cup'], // badminton
  34: ['matchInfo', 'standings', 'teamStats', 'cup'], // beach volleyball
}
```

For every sport you can:

- re-order tabs by changing order of strings in array,
- disable tabs by removing specific strings from array

> **Note**
>
> Invalid tab IDs are automatically filtered out.

#### Example

To only display Match Info and Standings for soccer and Lineups and Match Info (different order) for basketball, the following configuration can be set:

```javascript
tabs: {
  1: ['matchInfo', 'standings'], // soccer
  2: ['matchInfo', 'lineups'] // basketball
}
```

See [Match Preview Custom Tabs Order Guide](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/widget-specific/example-match-preview-tabs-reorder.md) for detailed examples.

## Integration Examples

### Property Name Transformations

Properties do not always transfer from the above table directly into integration code. Properties must be transformed differently for each integration method:

#### JavaScript/Programmatic Integration

- Property names remain unchanged in camelCase
- Properties become members of the 4th parameter object in `SIR()` call
- Example: `cardVariant: "compact"`

> **Info**
>
> In javascript integration, the properties go into an object which is passed as the 4th argument of the call ti `SIR()` function. Please see  [Global SIR API](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/SIR.md)

#### HTML/Declarative Integration

- Convert camelCase to lowercase with dashes, e.g. cardVariant becomes card-variant
- Add `data-sr-` prefix
- Example: `cardVariant` → `data-sr-card-variant`
- Example: `filters.sport.hidden` → Complex objects must be passed as JSON strings

> **Info**
>
> In HTML integration, the properties go into the parent HTML object as object properties, prefixed with `data-sr-` as explained above.

> **Only base property support**
>
> This method supports only simple (base) properties and does not support properties that require functions.

> **Info**
>
> In all examples replace `sportradar` in the widgetloader URL path with your clientId.
>
> Example if your clientId is `client1`:
>
> - This URL: `https://widgets.sir.sportradar.com/sportradar/widgetloader`
> - becomes: `https://widgets.sir.sportradar.com/client1/widgetloader`

**Full View**

### JavaScript (Programmatic)

Initialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.

```javascript
(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.sir.sportradar.com/sportradar/widgetloader","SIR", {
    language: 'en'
});

// Use PREMATCH match ID
SIR('addWidget', '#sr-widget', 'match.preview', {
    matchId: 61624652,
    isCollapsed: false // default value, can be omitted
});
```

```html
<div id="sr-widget"></div>
```

### HTML (Declarative)

Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.

```html
<div id="sr-widget"
        data-sr-widget="match.preview"
        data-sr-match-id="123"
        data-sr-is-collapsed="false">
</div>
<script type="application/javascript"
        src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
        async>
</script>
```

**Collapsed View**

### JavaScript (Programmatic)

Initialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.

```javascript
(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.sir.sportradar.com/sportradar/widgetloader","SIR", {
    language: 'en'
});

SIR('addWidget', '#sr-widget', 'match.preview', {
    matchId: 61624652,
    isCollapsed: true
});
```

```html
<div id="sr-widget"></div>
```

### HTML (Declarative)

Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.

```html
<div id="sr-widget"
        data-sr-widget="match.preview"
        data-sr-match-id="123"
        data-sr-is-collapsed="true">
</div>
<script type="application/javascript"
        src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
        async>
</script>
```

**Custom Tab Order**

### JavaScript (Programmatic)

Initialize the widget programmatically using the JavaScript API. The widget renders in the specified container element.

```javascript
(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.sir.sportradar.com/sportradar/widgetloader","SIR", {
    language: 'en'
});

SIR('addWidget', '#sr-widget', 'match.preview', {
    matchId: 61624652,
    tabs: {
      1: ['standings', 'matchInfo', 'lineups'] // `1` is Sportradar soccer sport ID
    }
});
```

```html
<div id="sr-widget"></div>
```

### HTML (Declarative)

Insert the following HTML code at the target widget location. Complex object properties must be passed as JSON-encoded strings.

```html
<div id="sr-widget"
        data-sr-widget="match.preview"
        data-sr-match-id="123"
        data-sr-tabs='{"1":["standings","matchInfo","lineups"]}'>
</div>
<script type="application/javascript"
        src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
        async>
</script>
```
