ParlayAPI Docs Live demo Streaming docs Pricing Get a free key

The Live & In-Play Sports Odds API

Read in-play odds over REST or subscribe to odds updates with Server-Sent Events or WebSocket. Availability and quote age vary by sport, event, market and bookmaker.

Inspect a moneyline response Compare plan access →

Read one fictional play-by-play event

Try the SSE connection before choosing a plan. This NBA sandbox sends a named pbp_event with a match identifier and score. It uses fictional data and requires no key. The reader disconnects after one event.

Distinguish a quote update from a connected stream

The odds stream can send connection, initial-state, heartbeat and price-update frames. A heartbeat tells you that the connection is open. For a two-way moneyline, compare the same event, bookmaker, h2h market and team in two observations before calling it a price change. Keep the source time when supplied and record when your client received each message.

For a current moneyline sample, inspect the public preview. Its events can include upcoming games. The keyed REST board filters by scheduled start within a recent lookback. A game may already have ended. Use recent game-state evidence, such as the sport’s unfiltered /live/points response, when you need to establish whether play is ongoing.

The live endpoints

Use the REST endpoint for a snapshot, the odds stream for price updates, or the play-by-play stream for game-state changes. Authenticated integrations should keep their key on the server and send it in the X-API-Key header where supported.

EndpointWhat it streams / returns
GET /v1/sse/hot/{sport}Sport-scoped odds SSE, Business plan or above. Read the frame type before interpreting its contents.
GET /v1/sports/{sport}/live/ssePlay-by-play state changes over SSE. Starter plan or above, five credits at connection.
WS /v1/ws/odds/{sport}Odds updates over WebSocket, Business plan or above.
GET /v1/sports/{sport}/liveOdds snapshot for events scheduled to have started within the lookback. Confirm game state separately.
GET /v1/sports/{sport}/live/period_markets?period=Q1&market=spreadIn-game period markets (quarter/half/period lines).
GET /v1/sports/{sport}/live/pointsLive play-by-play: score, clock, game state.
GET /v1/sports/{sport}/live/book_latencyPer-book latency diagnostics. Pro plan or above.
GET /v1/sports/{sport}/live/source-healthPer-source health indicators for the sport.
GET /v1/inplay/arbsRecent cross-book player-prop scanner results can include upcoming or recently started fixtures, as well as rows without a scheduled start. Confirm event identity and game state.

The API catalogue includes 30+ sportsbooks. Which books appear in an odds stream depends on the fixture, market and plan. The basketball sandbox above returns fictional play-by-play events.

REST live odds are on every plan. The WebSocket and SSE odds feeds start with the Business plan. The separate play-by-play SSE endpoint starts with Starter. Check current plans and prices at /pricing.

Run a streaming request

// Public fictional play-by-play. Close after one named event or ten seconds.
const stream = new EventSource(
  "https://parlay-api.com/v1/sandbox/sports/basketball_nba/live/sse"
);
const stop = () => { clearTimeout(timer); stream.close(); };
const timer = setTimeout(stop, 10000);
stream.addEventListener("pbp_event", event => {
  stop();
  console.log(JSON.parse(event.data));
}, {once: true});
stream.onerror = stop;
# Business+ odds SSE. Export your own key locally. Press Ctrl-C to disconnect.
curl --fail --show-error --no-buffer \
  -H "X-API-Key: ${PARLAY_API_KEY:?Set your key locally}" \
  'https://parlay-api.com/v1/sse/odds/basketball_nba'
# Business+ odds SSE. Print one JSON frame and close the connection.
import json
import os
import httpx

url = "https://parlay-api.com/v1/sse/odds/basketball_nba"
headers = {"X-API-Key": os.environ["PARLAY_API_KEY"]}
with httpx.stream("GET", url, headers=headers, timeout=15) as response:
    response.raise_for_status()
    for line in response.iter_lines():
        if line.startswith("data:"):
            frame = json.loads(line[5:])
            print(frame.get("type"), frame)
            break

Full streaming guides: WebSocket quickstart · SSE guide · live player props · streaming overview.

Test your own integration

Start with a free key for REST. The first-request guide explains where to put the key and how to read the response.

Get a free key Read the first-request guide →