Flexyscore

API 1.0 Documentation & Manual

* Important preliminary note:

The Flexyscore API and console can work simultaneously. If your source fails, simply refresh the console page to read the latest data received and continue scoring via the console itself.

 

Flexyscore API access is included in the "Pro" plans. Request a free quote detailing your needs.

How to start:

Copy API token button
In the controller footer you can find the "Copy API token" button

Build your callout:


Mandatory callout:

Name Data Type Description / Value
liveid string API Token (copied by button into console)

Optional callouts:
*when not sent Flexyscore keeps the default value

Generic scoreboard collouts

Name Data Type Description / Value
team_1 string Home team name / text
team_2 string Away team name / text
points_1 int Home team points / number
points_2 int Away team points/ number

Generic board snippet example


<!DOCTYPE html>
<html>
<head>
    <title>Test API Dispatcher GENERIC board</title>
</head>
<body>
    <h2>API testing in progress... look at the console</h2>
    <script>
        // Endpoint URL
        const endpoint = 'https://www.live.flexyscore.net/dirette/in_dispatchers/apidispatcher.php';

        // Token liveid (replace the token below with a real and valid one)
        const liveidToken = 'zzJ4+IT63Xck0cMOX8GYuw==|qD6rqwIvHRTCyhN9Ldje9g==';

        // DATA (name: 'value')
        const baseData = {
            liveid: liveidToken,
            team_1: 'Tappa',
            team_2: 'Rappa',
        };

        // In this example, for testing purposes only, random data is sent every 3 seconds.
        setInterval(() => {
            const points_1 = Math.floor(Math.random() * 100);
            const points_2 = Math.floor(Math.random() * 100);

            const payload = {
                ...baseData,
                points_1,
                points_2,
            };

            fetch(endpoint, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded',
                },
                body: new URLSearchParams(payload).toString(),
            })
            .then(response => response.json())
            .then(data => {
                console.log('API Response:', data);
            })
            .catch(error => {
                console.error('API response error:', error);
            });
        }, 3000);
    </script>
</body>
</html>  
Privacy policy