Embeddable widgets

Sports widgets for your site.

Standings, upcoming lines and win probability, in one script tag. No framework, no API key, light and dark. Each carries a small link to the API behind its data.

Standings

The league table: wins, losses and the columns each sport uses, grouped by conference or division.

Script tag. Set data-league to nba, nfl, nhl, mlb, soccer.

<script async src="https://sportsdatahq.com/embed/standings.js" data-league="nba"></script>

Or an iframe, with the link in your own markup.

<iframe src="https://sportsdatahq.com/embed/standings.html?league=nba" title="SportsDataHQ standings" width="100%" height="420" style="border:0;max-width:560px" loading="lazy"></iframe>
<a href="https://dunkapi.com/?utm_source=embed&utm_medium=widget&utm_campaign=standings-nba" rel="nofollow">Data: DunkAPI</a>

Lines

Upcoming games with the opening and current spread, total and moneyline, as the middle of the sportsbooks' prices. Information about the market, not a recommendation. NBA, NFL and Premier League; opening lines for the NBA and Premier League.

Script tag. Set data-league to nba, nfl, nhl, mlb, soccer.

<script async src="https://sportsdatahq.com/embed/odds.js" data-league="nba"></script>

Or an iframe, with the link in your own markup.

<iframe src="https://sportsdatahq.com/embed/odds.html?league=nba" title="SportsDataHQ odds" width="100%" height="420" style="border:0;max-width:560px" loading="lazy"></iframe>
<a href="https://dunkapi.com/?utm_source=embed&utm_medium=widget&utm_campaign=odds-nba" rel="nofollow">Data: DunkAPI</a>

Win probability

Our model's win probability for the next games, as a bar. An estimate, not a prediction of the result. NBA, NFL, NHL and Premier League.

Script tag. Set data-league to nba, nfl, nhl, mlb, soccer.

<script async src="https://sportsdatahq.com/embed/winprob.js" data-league="nhl"></script>

Or an iframe, with the link in your own markup.

<iframe src="https://sportsdatahq.com/embed/winprob.html?league=nhl" title="SportsDataHQ winprob" width="100%" height="420" style="border:0;max-width:560px" loading="lazy"></iframe>
<a href="https://puckapi.com/?utm_source=embed&utm_medium=widget&utm_campaign=winprob-nhl" rel="nofollow">Data: PuckAPI</a>

Where the data comes from

NBA
DunkAPI
DunkAPI · Free key
NFL
EndzoneAPI
EndzoneAPI · Free key
NHL
PuckAPI
PuckAPI · Free key
MLB
FastballAPI
FastballAPI · Free key
Premier League
StrikerAPI
StrikerAPI · Free key

Questions

Do I need an API key?

No. The widgets read data the site was built with, from sportsdatahq.com. No key is in the page and none is sent from your visitors' browsers.

How fresh is the data?

Each widget shows when it was last refreshed, at the foot. The data is refreshed when this site is rebuilt, not live: standings can be a day or more behind, and a lines or win probability widget says so when its games have started. For live data use the APIs.

What does the backlink do?

Each widget carries a small 'Data: <brand>' credit link to the API behind it, marked nofollow as search engines ask for widget links. Please keep it so readers can see where the data comes from.

Can I change the colors?

The widgets follow the visitor's light or dark setting. Add data-theme="light" or "dark" to the script tag, or &theme=dark to the iframe address, to force one.

Which leagues?

Standings: NBA, NFL, NHL, MLB and the Premier League. Lines and win probability: the leagues with games in the current refresh; MLB is in its off-season.

Props backtest demo · Docs · All APIs