Examples
Worked examples across languages and use cases
Full end-to-end snippets — not just single calls — for the integrations developers build most often.
Example
Live Scoreboard
Poll live matches and render a scrolling scoreboard.
Example
Odds Comparison
Pull odds across books and compute the best line.
Example
Historical Backtest
Pull multi-season data into a Python notebook.
Example
Webhook Listener
Receive match events as they happen, no polling.
Example — Live Scoreboard
Poll live matches every few seconds
A minimal loop that keeps a scoreboard in sync with in-play matches.
const client = new orbistats.Client('YOUR_API_KEY');
setInterval(async () => {
const live = await client.football.matchesLive();
renderScoreboard(live);
}, 5000);
setInterval(async () => {
const live = await client.football.matchesLive();
renderScoreboard(live);
}, 5000);
Example — Odds Comparison
Find the best available line
Normalized odds make it trivial to compare books directly.
odds = client.football.odds(match_id=884213)
best = max(odds["markets"]["1X2"], key=lambda m: m["home"])
best = max(odds["markets"]["1X2"], key=lambda m: m["home"])
Example — Historical Backtest
Pull multi-season data into pandas
Historical Data returns the same schema as live fixtures, so backtests reuse the same parsing code.
results = client.football.historical(season="2019-2025")
df = pd.DataFrame(results["matches"])
df = pd.DataFrame(results["matches"])
See Also
Related pages
Explore more of the developer platform.
Get Started
Start free. Upgrade when you need enterprise SLAs.
Self-serve API keys for developers today — dedicated infrastructure, custom feeds and SLAs when you're ready.