Sim-Play ATP Legend / Tennis Integration Example

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>VTI Video Live Match Tracker Demo</title>
        <link rel="stylesheet" type="text/css" href="theme.css">
        <style>
            body {
                display: flex;
                justify-content: center;
            }
            .widgets {
                max-width: 620px;
                width: 100%;
            }
            .sr-widget {
                border: rgba(0, 0, 0, 0.12) solid 1px;
                margin-bottom: 24px;
            }
            .sr-widget-title {
                font-weight: bold;
                padding-bottom: 4px;
            }
        </style>
    </head>

    <body>
        <!--
        JS/Programmatic
        Provide the virtualClientId as a parameter in the addWidget call
        -->
        <div class="widgets"></div>
        <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.sir.sportradar.com/{clientstoreID}/widgetloader", "SIR", {
                theme: false, // using custom theme
                language: "en" // other languages are available like en, fr, de, pl, ...
            });
            SIR("addWidget", ".sr-widget-1", "match.lmtPlus", {
                layout: "topdown",
                matchId: "vti:match:<matchID>",
                virtualClientId: "<clientID>"
            });
        </script>
    </body>
</html>

Required Parameters

Parameter
Description

widgetLoader

Use your Live Match Tracker clientid/storeid in the widget URL, e.g. https://widgets.sir.sportradar.com/{clientstoreID}/widgetloader

matchId

Must reference a running Sim-Play Tennis / ATP match. Active matches can be retrieved via the following JSON endpoint.

Production: https://vgls.betradar.com/vti/feeds/? /{client_alias}/en/Europe:Oslo/gismo/category_currentmatches/1667/1

Staging: https://vglsstaging.betradar.com/ls/feeds/? /{client_alias}/en/Europe:Oslo/gismo/category_currentmatches/1667/1

virtualClientId

Customer virtual sports client id.

Differences between Live Tennis and Sim-Play ATP / Sim-Play Tennis

  • "Ranking" instead of "ATP Ranking".

  • Prize and surface tab currently disabled.

Last updated

Was this helpful?