BestBook APIv1
Get a keybestbook.app

Subscribe

WSSwss://api.bestbook.app/v1/stream

json

{ "op": "subscribe", "id": "nba", "league": "nba" }
{ "op": "subscribe", "id": "game", "event": "nba:2026-12-01-LAC-PHX", "types": ["spread", "total"], "books": ["dk", "fd"] }
{ "op": "unsubscribe", "id": "nba" }
{ "op": "ping" }

Parameters

ParameterTypeRequiredDescription
opstringYessubscribe, unsubscribe or ping.
idstringYesYour id for the subscription, up to 64 characters. Reusing it replaces the subscription.
leaguestringNoOne league.
eventstringNoOne event. Not with league. Omit both for the whole board.
typesarrayNoMarket types. Default all.
booksarrayNoBooks. Default all. Lines no listed book prices are left out.

Up to 50 subscriptions per socket. Unknown fields and values are refused with an error.

Responses

SentReceived
subscribe[snapshot](snapshot), then [update](update)s
unsubscribe{"type":"unsubscribed","sub":"nba"}
ping{"type":"pong"}