---
title: "Win Probability"
canonical_url: "https://apidocs.sportradar.com/resources/widgets/docs/widgets/match/win-probability"
markdown_url: "https://apidocs.sportradar.com/resources/widgets/docs/widgets/match/win-probability.md"
last_updated: "2026-03-26T13:44:48Z"
---

# Win Probability

**Win Probability** widget displays statistical predictions for match outcomes based on bookmaker odds data. It provides a visual representation of the likelihood of each possible result (home win, draw, away win) using stacked bar charts that show probabilities as percentages. The widget presents two key predictions: full-time result probabilities and half-time result probabilities, allowing users to understand betting market sentiment at different match stages. For basketball matches, the widget includes an additional "Chance of Overtime" visualization showing the probability of the match requiring extra time. The probabilities are calculated from bookmaker odds feeds and displayed as intuitive horizontal stacked bars with team abbreviations and percentage values. This widget is essential for pre-match analysis, understanding market sentiment, betting insights, live probability tracking, and providing data-driven match outcome expectations based on professional betting markets.

<figure>

![Default View](https://apidocs.sportradar.com/resources/widgets/static/img/match/win-probability/default_view_carousel.png)

  <figcaption class="text-muted-foreground text-center text-sm">
    <p>Shows the default view of the Win Probability widget.</p>
  </figcaption>

</figure>

See the [Win Probability widget demo](https://widgets.sir.sportradar.com/widgets-demo#widget:\(name:match.winProbability\)).

## API Reference

### Required Parameters

- **widget-name**: `match.winProbability`
- **matchId**: The match identifier is the only required parameter. 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 Win Probability widget supports the following sports:

| Sport             | Sport ID |
| ----------------- | -------- |
| Soccer            | 1        |
| Basketball        | 2        |
| Esport Soccer     | 137      |
| Esport Basketball | 153      |
| Esport Ice Hockey | 195      |

> **Warning**
>
> This widget requires bookmaker odds data. If odds data is not available for a match, the widget will display an error message: "No data available for probabilities".

| Property              | Type      | Default      | Description                                                                                                                                                   |
| --------------------- | --------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `matchId`             | `number`  | **Required** | The unique identifier for the match.<br><br>See [Getting Identifiers](https://apidocs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md) |
| `disableWidgetHeader` | `boolean` | `false`      | When `true`, hides the match info header (match status, time, venue, etc.). Use when embedding in contexts where match information is already displayed.      |
| `disableMatchHeader`  | `boolean` | `false`      | When `true`, hides the team header with crests and names. Use for minimal display or when team information is shown elsewhere.                                |

## Main Configurable Features

Illustrations of main feature variants with relevant property values below.

**Default View**

Shows the default view of the Win Probability widget.

![Default View](https://apidocs.sportradar.com/resources/widgets/static/img/match/win-probability/default_view.png)

**Sample Configuration:**

- matchId: `string|number`

See [Win Probability widget demo](https://widgets.sir.sportradar.com/widgets-demo#widget:\(name:match.winProbability\))

## 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`

**Default View**

### JavaScript (Programmatic)

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

```js
(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.winProbability', {
    matchId: 123
});
```

```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.winProbability"
        data-sr-match-id="123">
</div>
<script type="application/javascript"
        src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
        async>
</script>
```
