Login (minimum)
To authenticate with the WebSocket gateway, send alogin message including your apiKey.
Login with Subscriptions and Filters
In addition to authenticating, you can define what data you want to receive by specifying channels and filters. The server will subscribe you to the intersection of:- The
channelsyou request - The channels your
apiKeyis allowed to access
channels, you are automatically subscribed to all channels permitted for your apiKey.
Subscribing to Channels
You can control which data channels youβre subscribed to using thechannels field. If excluded, the server will subscribe you to all available channels for your apiKey.
Available Channels
fixturesfuturesbookmakersbookmakersFuturesoddsoddsFuturesscorescurrencies(global)statseventsinjurieslineups
Note: Global channels such ascurrenciesignore filters likesportIdsortournamentIds.
Filters
You can further refine your subscription using filters:| Field | Description |
|---|---|
sportIds | Filter by sport ID |
tournamentIds | Filter by tournament ID |
fixtureIds | Filter by specific fixtures (per-channel) |
futureIds | Filter by specific futures (per-channel) |
bookmakers | Required for bookmaker-gated channels (odds, oddsFutures, bookmakers, bookmakersFutures) |
lang | Language for translated fields (en, de, es, fr, pt, it, ru, zh) |
receiveType | Format of incoming messages: json or binary |
pregame | If false, excludes pregame data |
live | If false, excludes live data |
Example: Bookmaker-Gated Channels
Bookmaker-gated channels require specifying which bookmakers you want access to.π Python Example: Basic Auth & Subscription
This minimal Python example connects, authenticates, and subscribes with filters.This script connects to the test gateway, logs in using your config, subscribes to selected channels, and prints real-time updates.