Widgets

Two ready-to-use blocks: standings and a league profile. Embed with one <iframe> line, using real data. The examples below run directly on this page: what you see is the widget itself.

Working widgets, with real data

Both blocks below load from our server. Copy the line beneath a widget and replace the tournament ID to get started.

Standings

<iframe src="https://scoraline.com/widget/standings?tournament=36196"
        width="100%" height="520" frameborder="0"></iframe>

Position, played, wins, draws, losses, goals and points. Team names use the original English names.

League profile

<iframe src="https://scoraline.com/widget/trends?tournament=36196"
        width="100%" height="220" frameborder="0"></iframe>

Goals per match, over 2.5 goals, both teams to score and the distribution of results. The calculation window is shown in the widget header.

Dark theme

One URL parameter: theme=dark. The example on the right is the same working widget on a dark background.

There are no additional appearance settings for custom colours or fonts. The widget is a ready-made block in our design, available in two themes. For a fully custom appearance, request the data through the API and render it in your own layout.

<iframe src="https://scoraline.com/widget/standings?tournament=36196        &theme=dark&limit=5"
        width="100%" height="240" frameborder="0"></iframe>

Parameters

The complete list of supported widget parameters.

ParameterValuesPurposeWidget
tournamenttournament IDRequired. Selects the tournament to display.both
themelight, darkAppearance. Light by default.both
title0Hides the header containing the tournament name and season.both
limit1 … 50Number of standings rows to display. All rows by default.standings
typetotal, home, away, formOverall, home, away or form standings.standings

Find the tournament ID in the league directory or in the response to GET /v1/tournaments. The same ID is used in all other requests.

How it works

A widget is a page hosted on our server and embedded on yours using an iframe.

Your key stays private

Our server requests the data. Your page contains only the widget URL, with no API key or API request.

No CORS setup or build step

One line of markup is all you need. The widget also works where custom JavaScript is unavailable, such as article editors and website builders.

Content is ready on arrival

The markup arrives fully rendered. The widget does not show a blank space while scripts load, and its content is available to search engines.

You set the height

An iframe does not determine its own height: set height for the number of rows you need. The width fills the available space.

Limitations

There are exactly two widgets. The following features are not available.

  • Script loader. An integration such as <script src="…loader.js"> is not supported. Use iframe.
  • Live scores, match cards or schedule widgets. These widgets are not available. The data is available through the API for your own implementation.
  • Custom colours and fonts. Two themes are available.
  • Automatic height adjustment. Set the height yourself.
  • Updates without reloading. The widget shows the state at load time. For live updates, use the event stream.

Both widgets on this page load from the production server; they display real data.

Explore other sections

Add league standings to your website

One line of markup puts real data on your page.

Documentation
Payments in USD Contracts for businesses Free trial access