☰

SportsBetting.ag Sportsbook API

Get access to SportsBetting.ag odds in real time: main markets, alt lines and player props, pregame and live, with sub-second latency.

wss://spro.agency/api · example line_update
{
    "timestamp": "2026-10-25T17:02:41.118302+00:00",
    "action": "line_update",
    "data": {
        "sport": "NFL",
        "sportsbook": "betonline",
        "game": "Kansas City Chiefs vs Las Vegas Raiders, 2026-10-25, 01",
        "home_team": "Kansas City Chiefs",
        "away_team": "Las Vegas Raiders",
        "info": { ... },
        "outcomes": {
            "Kansas City Chiefs Moneyline": {
                "odds": "-320",
                "outcome_name": "Moneyline",
                "outcome_line": null,
                "outcome_over_under": null,
                "outcome_target": "Kansas City Chiefs"
            }
        }
    }
}
Benefits

What you get with the SportsBetting.ag Sportsbook API

✓

Main markets.

SportsBetting.ag moneylines, spreads and totals across every sport and league they offer.

✓

Alt markets.

Alternate spreads and totals, so you get SportsBetting.ag's full line ladder, not just the main number.

✓

Player props.

SportsBetting.ag player props in the same consistent format as every other book we cover.

✓

Pregame & live.

Pregame odds hand off to live in-game odds on the same game, with no change to your integration.

✓

Sub-second latency.

No polling. SportsBetting.ag line moves are pushed to you over the WebSocket within a second.

✓

One normalized feed.

SportsBetting.ag alongside 35+ other sportsbooks, exchanges and prediction markets, all in one format.

SportsBetting.ag Sportsbook API: Try it for free

Start a 3-day free trial, no credit card required. Get SportsBetting.ag odds plus every other sportsbook we cover from day one.

Get Started
About the API

The fastest SportsBetting.ag odds, in one place

SportsBetting.ag Logo BetOnline Logo LowVig Logo DraftKings Logo FanDuel Logo Bet365 Logo BetMGM Logo Caesars Logo Fanatics Logo HardRock Logo Kalshi Logo Polymarket Logo NoVig Logo

BoltOdds + SportsBetting.ag Sports Betting API

BoltOdds streams SportsBetting.ag odds the moment they change, with no polling and sub-second latency. Line shop SportsBetting.ag against DraftKings, FanDuel, Bet365 and the rest of the market from a single connection. SportsBetting.ag runs on the BetOnline odds platform, so its odds come through our BetOnline feed: subscribe to "betonline".

See all sportsbooks
betonline-odds.py
import asyncio, json, websockets

async def run_client():
    uri = "wss://spro.agency/api?key=YOUR_TOKEN"
    async with websockets.connect(uri) as ws:
        await ws.recv()  # socket_connected

        await ws.send(json.dumps({
            "action": "subscribe",
            "filters": {"sportsbooks": ["betonline"]}
        }))

        while True:
            data = json.loads(await ws.recv())
            print(data)

asyncio.run(run_client())

Connect to the SportsBetting.ag API in under 5 minutes

Sign up, grab your API key and subscribe with "sportsbooks": ["betonline"]. Odds arrive as structured JSON over a WebSocket, so there's nothing to poll and nothing to scrape.

Read the docs

Power your models with real-time SportsBetting.ag odds

Get your API key and start streaming SportsBetting.ag in minutes.