Skip to main content
Logo
Explore APIsContact Us
  • Home
  • Match Preview
  • Tournament Preview
  • Virtual Stadium
  1. Resources
  2. Widgets
  3. Bet Assist Button

Bet Assist Button

Widgets, Engagement Tools
Adapter API ReferenceStandalone
Last updated 13 days ago
Is this site helpful?
On this page
  • Supported Content and Environment
  • Required Parameters
  • Supported Markets
  • Main Configurable Features
  • API Reference
  • Integration Examples
  • Related Resources

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

See the Bet Assist Button widget demo.

#Supported Content and Environment

#Required Parameters

  • widget-name: betAssist.button
  • matchId: The Sportradar match identifier. See Getting Identifiers
  • market: The specific betting market type for which to display insights. See Supported Markets

Environment Requirements

Supported Browsers

BrowserVersionMobile Support
Chrome60+✅ Chrome Mobile 60+
Firefox55+✅ Firefox Mobile 55+
Safari12+✅ iOS Safari 12+
Edge79+✅ Edge Mobile 79+
Internet ExplorerAll versions❌ Not Supported

Technical Requirements:

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

Supported Sports

  • American Football NFL only (including NCAA)
  • Baseball & MLB
  • Basketball & NBA (including NCAA)
  • Futsal
  • Handball
  • Ice Hockey & NHL
  • Soccer
  • Tennis

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

#Main Configurable Features

The button widget offers customization options for display and positioning.

#API Reference

PropertyTypeRequiredDefaultDescription
matchIdnumberYes-Sportradar match identifier. See Getting Identifiers
marketstringYes-Betting market type for predictions. Must be one of the supported market types. See Supported Markets
positionstringNo

#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

HTML/Declarative Integration

  • Convert camelCase to lowercase with dashes, e.g. cardVariant becomes card-variant
  • Add data-sr- prefix
  • Example: cardVariant →
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

#Related Resources

Getting Identifiers

Learn how to obtain match IDs required for widget configuration.

Learn More

Widget Theming

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

Learn More

Tracking Guide

Implement analytics and monitoring for widget interactions and performance.

Learn More
Bet Assist Button

Configuration:

javascript
{
    matchId: 61591316,
    market: "bothTeamsToScore"
}

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

"right"
Popover position relative to button.
  • "right": Popover opens to the right of button
  • "left": Popover opens to the left of button
Position automatically adjusts for RTL languages
widthnumberNo320Width of popover in pixels.
labelstringNo"Bet Assist"Button text label.
iconstringNoDefault iconURL of custom icon image to display on button.
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

    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: 61591316,
        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>

    Integration Best Practices

    Performance optimization, security considerations, and deployment strategies.

    Learn More