Soccer odds API: Premier League, La Liga and Champions League odds
OddsPush is paused. The feed is offline and we are not taking new sign-ups or payments. No new key, trial or plan can be obtained now. The documentation stays online and describes the service as it works when it is running.
OddsPush is a soccer odds API with Pinnacle's prices: the Premier League, La Liga, the Champions League and
180 leagues in all, with the 1X2, Asian handicap, goal totals and team totals, for the full match and the
first half. Soccer is sport 1. Subscribe to it on one WebSocket and every price change arrives as
Pinnacle publishes it, live on ld and both and pre-match on pre, or
read the same board over REST with /v1/events?sport_id=1.
This guide covers what the soccer feed holds today, how each market comes, which channel to ask for, how to
keep only the leagues you want, a Python program built on pip install oddspush, the REST index,
and a worked example of a three-way 1X2 priced without the bookmaker's margin.
1. What the soccer odds API covers
A measurement on Friday, November 13, 2026 at 13:26 UTC: 1,000 soccer matches had open prices, in 180 leagues, with 37,821 open markets between them. 25 were in play at that moment, 997 had pre-match prices, and 545 were due to start in the next 72 hours. Soccer was about half of the whole board: 1,000 of the 2,024 matches with prices across 12 sports, and 62 % of the 61,162 open markets.
The leagues with the most priced matches at that moment:
League, as it comes in league.name |
Matches with prices |
|---|---|
| Spain - Segunda Federacion | 41 |
| England - Premier League | 20 |
| Italy - Serie A | 20 |
| Spain - La Liga | 20 |
| Spain - Primera Federacion | 20 |
| France - Ligue 1 | 18 |
| Germany - Bundesliga | 18 |
| UEFA - Champions League | 18 |
| UEFA - Europa League | 18 |
| Czech Republic - 3. Liga | 18 |
| UEFA - U19 Euro Championship Qualifiers | 18 |
| CAF - Africa Cup of Nations Qualifiers | 15 |
The 20 Premier League, 20 La Liga and 18 Champions League matches are matches already priced, not necessarily that weekend's: a league is often priced a round or more ahead. The numbers move with the calendar, so read them as the shape of the feed on that date. Every sport and its markets are on coverage.
2. The weekend of November 13, 2026: national teams
In the 72 hours from Friday, November 13, 545 soccer matches were due to start. On the Friday, most of the featured matches with prices were national teams, in the UEFA Nations League and international friendlies, with a few French Cup ties among them. A selection of Friday's matches with prices, from featured competitions, in UTC:
| Kick-off (UTC) | Match | Competition |
|---|---|---|
| 14:30 | Saudi Arabia v South Korea | International - Friendlies |
| 14:45 | Qatar v Australia | International - Friendlies |
| 19:45 | Netherlands v Greece | UEFA - Nations League A |
| 19:45 | Serbia v Germany | UEFA - Nations League A |
| 19:45 | Slovenia v Switzerland | UEFA - Nations League B |
| 19:45 | Scotland v North Macedonia | UEFA - Nations League B |
The competition names in the table are copied as they come in league.name, so they can go
straight into a filter (section 5). The top leagues already carry prices for their next round, which is what
pre-match is for: the line from the moment Pinnacle opens it until kick-off.
3. Soccer markets as they arrive
Every market has a key that is unique within its event, a type, a
period and its prices in American odds, each leg with a
designation and, on lines, its points. From real soccer frames:
| key | type | Legs | What it is |
|---|---|---|---|
| s;0;m | moneyline | home, away, draw | The 1X2 on the full match: three prices. |
| s;1;m | moneyline | home, away, draw | The 1X2 on the first half. |
| s;0;s;-0.25 | spread | home, away | Asian handicap. The line in the key is the home side’s: home −0.25, away +0.25. |
| s;0;s;0.0 | spread | home, away | Handicap 0: a draw returns the stake (draw no bet). |
| s;0;ou;2.25 | total | over, under | Goals over/under, quarter lines included (2.25, 2.75). |
| s;0;tt;1.5;home | team_total | over, under | Goals by one team; the team is the last part of the key. |
-
The 1X2 is a three-way moneyline. Its legs come as
home,away,draw, in that order, not 1-X-2: look each leg up bydesignation, never by position. -
Periods.
0is the full match and1the first half. Period1turnssettledafter half-time and every market on it goes. Other numbers can appear: a capture from October 20, 2026 had a two-ways;8;m, with no draw, on a cup tie. Read the period from the market rather than from a fixed list. - Asian lines. Handicaps and totals come in quarter steps. A quarter line such as −0.25 or 2.25 splits the stake between the two lines either side of it (0 and −0.5, or 2.0 and 2.5).
-
Main and alternate lines. Several handicaps and totals are open at once;
isAlternate: falsemarks the main one.
{
"key": "s;0;s;-0.25", "period": 0, "status": "open", "type": "spread",
"isAlternate": true, "version": 3772905191,
"prices": [
{"designation": "home", "price": 142, "points": -0.25},
{"designation": "away", "price": -196, "points": 0.25}
]
}
Every field is described in A market, and the event around it (league, teams, score, the match clock) in The event.
4. Live and pre-match soccer odds: which channel
The channel is the last segment of an update's topic. Soccer uses three of them for prices:
-
pre: before kick-off. The pre-match board: the next round of each league, alternate lines included. This is where the weekend's matches are, and the 20 Premier League matches priced on November 13. -
ldandboth: in play. The price Pinnacle displays once a match is live. Always ask for the two together: some matches never appear onld. -
The live match is another event. Its
rec.parentIdis the pre-match event id, and its market keys are the same, sos;0;min play compares directly with the pre-matchs;0;m.
{"type": "subscribe", "sports": [1], "channels": ["pre"], "fair": true}
{"type": "subscribe", "sports": [1], "channels": ["ld", "both"], "fair": true}
Keep the two in separate books: pre-match prices freeze at kick-off but keep arriving through the match. A
snapshot only carries events with markets on the channels you ask for, so a match priced only on
pre is left out of an ld and both snapshot. How to follow both on one
connection, and what happens at kick-off, is in Pinnacle pre-match
odds by API; the channel table is in Channels. Leave dz out of
a price book.
5. Filter by sport, then keep the leagues you want
Soccer's sport id is 1, in sports on the stream and in sport_id over
REST (the full list is in the sports table). There is no league filter on the
wire: subscribe to the sport and keep the leagues you want by the name in rec.league.name, an
object with id and name.
-
Use the names as they come:
England - Premier League,Spain - La Liga,UEFA - Champions League. Country first, then the competition. -
Keep the matches, skip the props. A
rec.typeof"matchup"is the match itself;"special"records (team and game props) hang from it with their ownparentId, and their markets arrive withoutstatus. To keep them, see Specials and player props. -
Narrow it further with
events. Once you know the ids of the matches you follow, asubscribewithevents(up to 1,000) makes later snapshots smaller. New matches in those leagues will not arrive until you add them.
6. Python: subscribe to soccer and keep the book
pip install oddspush (Python 3.10 or newer) logs in, subscribes, keeps a book of open markets
by version, removes closed markets and periods, reconnects with backoff and asks for a snapshot when it falls
behind. This program follows soccer on pre with fair on, and prints the 1X2 of
every Premier League, La Liga and Champions League match with its fair price, first for the whole board and
then on each change.
"""Soccer odds from Pinnacle, by league: the 1X2 with its fair price.
pip install oddspush
ODDSPUSH_KEY=opk_... python soccer.py
"""
import asyncio
import os
from oddspush import Stream, american_to_decimal
LEAGUES = {"England - Premier League", "Spain - La Liga", "UEFA - Champions League"}
CHANNELS = ["pre"] # upcoming matches; ["ld", "both"] for matches in play
LEGS = ("home", "draw", "away")
def league(event: dict) -> str:
return (event.get("league") or {}).get("name", "")
def teams(event: dict) -> str:
side = {p.get("alignment"): p.get("name") for p in event.get("participants") or []}
return f"{side.get('home', '?')} v {side.get('away', '?')}"
def show_1x2(stream: Stream, event_id: int) -> None:
event = stream.book.event(event_id)
if not event or event.get("type") != "matchup" or league(event) not in LEAGUES:
return
ml = stream.book.market(event_id, "s;0;m") # full-match 1X2
if ml is None:
return
odds = {x["designation"]: american_to_decimal(x["price"]) for x in ml["prices"]}
fair = stream.book.fair(event_id, "s;0;m") # None until it matches this version
fair_odds = {x["designation"]: x["fair_decimal"] for x in (fair or {}).get("prices", [])}
legs = []
for leg in LEGS:
if leg in odds:
legs.append(f"{leg} {odds[leg]:.3f}" + (f" (fair {fair_odds[leg]:.3f})" if leg in fair_odds else ""))
print(league(event), "|", event.get("startTime"), "|", teams(event), "|", " ".join(legs))
async def main() -> None:
async with Stream(os.environ["ODDSPUSH_KEY"], sports=[1], channels=CHANNELS, fair=True) as stream:
async for msg in stream:
kind = msg["type"]
if kind == "snapshot" and msg.get("final"):
for event_id in stream.book.event_ids(): # the board as it stands
show_1x2(stream, event_id)
elif kind == "fair": # follows each odds update, same markets
if any(m["key"] == "s;0;m" for m in msg["data"]["markets"]):
show_1x2(stream, msg["data"]["event_id"])
elif kind == "disconnected":
print("reconnecting in", msg["retry_in_s"], "s:", msg["reason"])
asyncio.run(main())
-
The book is
stream.book.event(id)gives the league, teams, state andstartTime;market(id, key)a market;fair(id, key)its fair price, only for the very version the book holds. -
In play instead: set
CHANNELS = ["ld", "both"]. The same code then prints the live 1X2 of each match under way, keyed by the live event id. -
Prices are American.
american_to_decimal(130)is 2.30;american_to_decimal(-155)is 1.645.
The same program without the library, step by step, is in Live Pinnacle odds in Python; the library is described in the docs.
7. The soccer index over REST
Same key, in the x-token header. /v1/events?sport_id=1 lists every soccer event
with its number of open markets per channel (ld, dz, pre,
both, other); with channel=pre, markets counts the
pre-match ones.
curl -s -H "x-token: $ODDSPUSH_KEY" "https://feed.oddspush.com/v1/events?sport_id=1&channel=pre"
The index has no league or team names, so read the event for them:
/v1/events/{event_id}?channel=pre&fair=true returns its meta (the
rec without markets, league included), its markets in merged and their no-vig and
fair prices in fair. Without channel=pre, merged holds only
ld and both, so a match that has not kicked off comes back with nothing in it.
"""The soccer index over REST, then the 1X2 of a few matches, by league."""
import os
from oddspush import Client, american_to_decimal
LEAGUES = {"England - Premier League", "Spain - La Liga", "UEFA - Champions League"}
with Client(os.environ["ODDSPUSH_KEY"]) as api:
index = api.events(sport_id=1, channel="pre") # every soccer event, markets per channel
rows = [r for r in index["events"] if r["pre"] > 0]
print(len(rows), "soccer events with pre-match markets")
shown = 0
for row in sorted(rows, key=lambda r: r["pre"], reverse=True)[:40]: # 40 requests
ev = api.event(row["event_id"], channel="pre", fair=True)
meta = ev["meta"]
name = (meta.get("league") or {}).get("name", "")
if meta.get("type") != "matchup" or name not in LEAGUES:
continue
ml = ev["merged"].get("s;0;m")
fair = {x["designation"]: x["fair_decimal"] for x in ev.get("fair", {}).get("s;0;m", {}).get("prices", [])}
print(name, meta.get("startTime"), row["pre"], "markets")
for x in (ml or {}).get("prices", []):
f = fair.get(x["designation"]) # None if this leg has no fair price
print(f" {x['designation']:<5} {american_to_decimal(x['price']):.3f}" + (f" fair {f:.3f}" if f is not None else ""))
shown += 1
print(shown, "matches in", ", ".join(sorted(LEAGUES)))
-
Rate limits per account: up to 120 requests at once, then 300 a minute. The client
retries a
429afterretry-after. Reading a thousand events one by one takes a few minutes: for the whole board, the stream's snapshot is the better tool. - One IP per connection. Your key works from as many IPs at a time as your connections (one included, plus any extras on your account). A request from a new IP beyond that takes over from the oldest one and closes a stream open from it (4107): with one connection, run your REST calls and your stream on the same machine.
Parameters and responses: /v1/events and /v1/events/{event_id}.
8. The 1X2 without the margin: a worked example
A three-way market spreads the margin over three legs. Take a 1X2 at 2.30 home, 3.60 draw and 3.25
away (+130, +260, +225 in American odds). Each implied
probability is 1 / decimal: 1 / 2.30 = 43.48 %, 1 / 3.60 = 27.78 %, 1 / 3.25 = 30.77 %. They
add up to 102.03 %, so the margin is 2.03 %.
- No-vig (multiplicative): divide each by 1.020253. Home 0.434783 / 1.020253 = 0.426152, or 42.62 %, which is 1 / 0.426152 = 2.3466 in decimal odds.
-
Fair (power method): raise each to the power
kthat makes them add up to 1, here k = 1.0189. Home 0.4347831.0189 = 42.80 %, or 2.3366. Compared with no-vig, the power method gives the favourite more (42.80 % against 42.62 %) and the draw, the longest price, less (27.11 % against 27.23 %): it takes more of the margin from the long shots in proportion to their price.
| Leg | American | Decimal | Implied | No-vig · odds | Fair · odds |
|---|---|---|---|---|---|
| Home | +130 | 2.30 | 43.48 % | 42.62 % · 2.3466 | 42.80 % · 2.3366 |
| Draw | +260 | 3.60 | 27.78 % | 27.23 % · 3.6729 | 27.11 % · 3.6884 |
| Away | +225 | 3.25 | 30.77 % | 30.16 % · 3.3158 | 30.09 % · 3.3234 |
To check it yourself, with the standard library only:
import math
def implied(decimals):
return [1 / d for d in decimals]
def no_vig(decimals):
q = implied(decimals)
return [x / sum(q) for x in q]
def fair(decimals):
"""Power method: the k that makes the implied probabilities, raised to k, add up to 1."""
lq = [math.log(x) for x in implied(decimals)]
k = 1.0
for _ in range(50): # Newton's method
terms = [math.exp(k * l) for l in lq]
f = sum(terms) - 1
if abs(f) < 1e-12:
break
k -= f / sum(t * l for t, l in zip(terms, lq))
return [math.exp(k * l) for l in lq]
odds = {"home": 2.30, "draw": 3.60, "away": 3.25} # +130, +260, +225
print(f"margin {sum(implied(odds.values())) - 1:.2%}")
for leg, a, b in zip(odds, no_vig(odds.values()), fair(odds.values())):
print(f"{leg:5} no-vig {a:.2%} {1 / a:.4f} fair {b:.2%} {1 / b:.4f}")
margin 2.03%
home no-vig 42.62% 2.3466 fair 42.80% 2.3366
draw no-vig 27.23% 3.6729 fair 27.11% 3.6884
away no-vig 30.16% 3.3158 fair 30.09% 3.3234
With fair on, you never compute it: every update with open markets is followed by a
fair message with both methods. For this market it would read (ids illustrative):
{"type": "fair", "data": {"event_id": 1639824805, "sport_id": 1, "channel": "pre",
"ts": 1794576360000, "markets": [
{"key": "s;0;m", "version": 3790112204, "margin": 0.020253, "prices": [
{"designation": "home", "price": 130, "no_vig": 0.426152, "fair": 0.427979,
"no_vig_decimal": 2.3466, "fair_decimal": 2.3366},
{"designation": "away", "price": 225, "no_vig": 0.301584, "fair": 0.300901,
"no_vig_decimal": 3.3158, "fair_decimal": 3.3234},
{"designation": "draw", "price": 260, "no_vig": 0.272264, "fair": 0.271121,
"no_vig_decimal": 3.6729, "fair_decimal": 3.6884}]}]}}
One use: a price elsewhere set against the fair one. 3.40 on the away side against a fair 30.09 % gives 3.40 × 0.300901 − 1 = +2.31 % expected value by the power method, +2.54 % by the multiplicative one. It is an estimate, not a result: the value betting calculator works through it, and Pinnacle no-vig odds compares the two methods on a lopsided match. Field by field, the message is in fair.
At kick-off the last pre-match price becomes the closing line, which OddsPush keeps for 90 days: see closing line value.
OddsPush is not affiliated with, endorsed by or sponsored by Pinnacle. This page explains how to read and record prices; it is not betting or investment advice.