---
title: "Bet Assist Button"
canonical_url: "https://docs.sportradar.com/resources/widgets/docs/bet-assist/button"
markdown_url: "https://docs.sportradar.com/resources/widgets/docs/bet-assist/button.md"
last_updated: "2026-08-11T13:11:13Z"
---

# Bet Assist Button

**Bet Assist Button** widget displays a compact button that opens a popover containing statistics and betting suggestions depending on a selected market. The popover presents analytical data including historical trends, team performance metrics, and head-to-head statistics without consuming permanent page space. Unlike the [standalone variant](https://docs.sportradar.com/resources/widgets/docs/bet-assist/standalone.md) that is always visible, the button widget provides an unobtrusive way to access information on demand. This makes it ideal for match pages, odds displays, or betting slips where users need quick access to analytical insights for specific markets.

![Bet Assist Standalone](https://docs.sportradar.com/resources/widgets/static/img/bet-assist/button_plus_widget.png)

See the [Bet Assist Button widget demo](https://widgets.sir.sportradar.com/bet-assist#matches:\(matchId:63684665,sportId:1,uniqueTournamentId:136\)).

## Supported Content and Environment

### Required Parameters

- **widget-name**: `betAssist.button`
- **matchId**: The Sportradar match identifier. See [Getting Identifiers](https://docs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md)
- **market**: The specific betting market type for which to display insights. See [Supported Markets](#supported-markets)

**Environment Requirements**

## Technical Requirements:

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

**Supported Sports**

| Sport             | Sport ID |
| ----------------- | -------- |
| Soccer            | 1        |
| Basketball        | 2        |
| Baseball          | 3        |
| Ice Hockey        | 4        |
| Tennis            | 5        |
| Handball          | 6        |
| Football          | 16       |
| Futsal            | 29       |
| Esport Soccer     | 137      |
| Esport Basketball | 153      |
| Esport Ice Hockey | 195      |

### Supported Markets

Bet Assist provides predictions for a comprehensive range of betting markets. Market availability varies by sport.

For the complete list of supported markets per sport, see [Available Markets](https://docs.sportradar.com/resources/widgets/docs/bet-assist/available-markets.md).

## Main Configurable Features

The button widget offers customization options for display and positioning.

**Default Button**

![Bet Assist Button](https://docs.sportradar.com/resources/widgets/static/img/bet-assist/button.png)

**Configuration:**

```javascript
{
    matchId: 67681902,
    market: "bothTeamsToScore"
}
```

Standard button with default label and icon, opens popover on the right.

**Button with open widget**

![Bet Assist Open](https://docs.sportradar.com/resources/widgets/static/img/bet-assist/button_plus_widget.png)

**Configuration:**

```javascript
{
    matchId: 67681902,
    market: "3way",
    position: "right"
}
```

Popover opens to the right of the button. For left popover change position to left.

**Custom Label and Icon**

![Bet Assist Cutom](https://docs.sportradar.com/resources/widgets/static/img/bet-assist/button_custom.png)

**Configuration:**

```javascript
{
    matchId: 67681902,
    market: "bothTeamsToScore",
    label: "My Bet Assistant",
    icon: "https://example.com/icons/ai-icon.png"
}
```

Customize button text and icon to match your design language.

## API Reference

| Property   | Type     | Required | Default        | Description                                                                                                                                                                                                   |
| ---------- | -------- | -------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `matchId`  | `number` | **Yes**  | -              | Sportradar match identifier. See [Getting Identifiers](https://docs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md)                                                                   |
| `market`   | `string` | **Yes**  | -              | Betting market type for predictions. Must be one of the supported market types. See [Supported Markets](#supported-markets)                                                                                   |
| `position` | `string` | No       | `"right"`      | Popover position relative to button. <ul><li>`"right"`: Popover opens to the right of button</li><li>`"left"`: Popover opens to the left of button</li></ul> Position automatically adjusts for RTL languages |
| `width`    | `number` | No       | `320`          | Width of popover in pixels.                                                                                                                                                                                   |
| `label`    | `string` | No       | `"Bet Assist"` | Button text label.                                                                                                                                                                                            |
| `icon`     | `string` | No       | Default icon   | URL of custom icon image to display on button.                                                                                                                                                                |

## Integration Examples

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://docs.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`

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

**Basic Implementation**

### JavaScript (Programmatic)

```javascript
(function(a,b,c,d,e,f,g,h,i){a[e]||(i=a[e]=function(){(a[e].q=a[e||[]).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', '#bet-assist-button', 'betAssist.button', {
    matchId: 67681902,
    market: 'bothTeamsToScore'
});
```

### HTML (Declarative)

```html
<div
  id="bet-assist-button"
  data-sr-widget="betAssist.button"
  data-sr-match-id="63684665"
  data-sr-market="bothTeamsToScore"
></div>

<script
  type="application/javascript"
  src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
  async
></script>
```

**Custom Button**

### JavaScript (Programmatic)

```javascript
SIR('addWidget', '#bet-assist-button', 'betAssist.button', {
    matchId: 67681902,
    market: 'bothTeamsToScore',
    label: 'My Bet Assistant',
    icon: 'https://example.com/icons/insights.png',
    width: 380
});
```

### HTML (Declarative)

```html
<div
  id="bet-assist-button"
  data-sr-widget="betAssist.button"
  data-sr-match-id="63684665"
  data-sr-market="bothTeamsToScore"
  data-sr-label="My Bet Assistant"
  data-sr-width="380"
></div>

<script
  type="application/javascript"
  src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
  async
></script>
```

**Left Position**

### JavaScript (Programmatic)

```javascript
SIR("addWidget", "#bet-assist-button", "betAssist.button", {
  matchId: 67681902,
  market: "bothTeamsToScore",
  position: "left",
});
```

### HTML (Declarative)

```html
<div
  id="bet-assist-button"
  data-sr-widget="betAssist.button"
  data-sr-match-id="63684665"
  data-sr-market="bothTeamsToScore"
  data-sr-position="left"
></div>

<script
  type="application/javascript"
  src="https://widgets.sir.sportradar.com/sportradar/widgetloader"
  async
></script>
```

## Related Resources

### Getting Identifiers

Learn how to obtain match IDs required for widget configuration.

[Learn More](https://docs.sportradar.com/resources/widgets/docs/tutorials/getting-identifiers.md)

### Widget Theming

Customize widget appearance, colors, fonts, and styling to match your brand.

[Learn More](https://docs.sportradar.com/resources/widgets/docs/tutorials/theming-widgets.md)

### Tracking Guide

Implement analytics and monitoring for widget interactions and performance.

[Learn More](https://docs.sportradar.com/resources/widgets/docs/tutorials/tracking-guide.md)

### Integration Best Practices

Performance optimization, security considerations, and deployment strategies.

[Learn More](https://docs.sportradar.com/resources/widgets/docs/tutorials/integration-best-practices.md)
