Get your API key
Create a free account at oddsstream.io/signup, then go to Dashboard → Keys and copy your key.Your key looks like this:
os_live_a1b2c3d4e5f6... (32 hex characters after the prefix).Store it in an environment variable — never paste it directly into your code:Verify it works
Call the sports endpoint — it requires no parameters and returns a list of sports with active odds right now.You should see something like:
competition_codes— short codes for each league. You’ll use these to filter other endpoints.event_count— how many matches have active odds right now.rate_limit_remaining— how many requests you have left today (free plan: 200/day).
Fetch odds for a specific league
Get all EPL moneyline odds in one call:Each row in
data is one bookmaker’s odds for one market:Get value bets (Pro plan)
Value Bets require a Pro plan or higher.
+5% EV bet means you expect to profit 100 wagered long-run.fair_odds— Pinnacle’s price after removing their margin (the true probability).ev_pct— your edge.5.8means +5.8% over fair value.
Stream real-time changes (Free, Pro+ RT, or Pro+ Live)
WebSocket requires a Free, Pro+ RT, or Pro+ Live plan. Free plan: 30 connections/day. Pro plan does not include WebSocket.
What’s next
WebSocket Setup Guide
Build a production live odds feed with reconnection and keepalive.
Value Bets Reference
Full docs for the /api/value-bets endpoint.
Best Practices
Polling cadence, EV interpretation, production patterns.
API Reference
Full endpoint reference with all parameters.