Stats FC

Prediction League

Here you'll find sample code and an example of our Prediction League widget. The leaderboard will be your own site by default, with a global and monthly leaderboards also available.

Full Code Example

<html>
<head>
    <title>Your Website Title</title>
</head>
<body>

    <!-- Your prediction league here -->
    <iframe id="statsfc-prediction-league"
        src="https://pl.statsfc.com/KEY/ID?lang=LANG&timezone=TIMEZONE"
        width="100%"
        height="600"
        style="border: 0;">
    </iframe>
    <script src="https://cdn.statsfc.com/js/iframeResizer.min.js"></script>
    <script>iFrameResize({}, '#statsfc-prediction-league');</script>

</body>
</html>

Settings

Setting Description Default
KEY Required. Your Stats FC account key. None
ID Required. The ID of the Prediction League you want to show. You will need to set one up in your Stats FC account. None
LANG Optional. The ISO 639-1 two-letter language code.
en
TIMEZONE Optional. The timezone you want to convert the match times to.
Europe/London