Skip to main content
1

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:
2

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).
Use competition codes like EPL and NBA to filter other endpoints — they’re more precise and stable than sport names.
3

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:
4

Get value bets (Pro plan)

Value Bets require a Pro plan or higher.
Value bets are pre-calculated opportunities where a bookmaker offers higher-than-fair odds vs. Pinnacle’s sharp line. A +5% EV bet means you expect to profit 5per5 per 100 wagered long-run.
  • fair_odds — Pinnacle’s price after removing their margin (the true probability).
  • ev_pct — your edge. 5.8 means +5.8% over fair value.
Always verify the current price on the bookmaker’s site before placing. Odds can move between detection and placement.
5

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.
WebSocket requires a two-step flow: first get a short-lived token, then connect.
Each message is one selection’s new price — typically 1–3 seconds after the scraper detects a change.See the WebSocket Setup Guide for keepalive, reconnection, and a complete production-ready client.

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.