A Python sports-betting API: polling vs a Pinnacle WebSocket
Answer: pick the API by the job, then write Python against a documented contract. If you need many books on a poll, a multi-book REST API such as The Odds API (from $30/mo for 20,000 credits; no WebSocket at any published price, review of 9 November 2026) is built for that. If you need a sharp Pinnacle reference with live + prematch push, PinnFeed Builder (€99/mo, or €990/yr ≈ €82.50/mo) opens wss://pinnfeed.io/v1/stream and also serves REST plus timestamped no-vig closings. PinnFeed is Pinnacle-only. This is a chooser, not a latency test against any named vendor.
Two Python shapes#
Poll a snapshot (works on Free, 30 s delay, or Hobby real-time REST):
import os, requests
r = requests.get(
"https://pinnfeed.io/v1/odds",
params={"sport": "soccer", "main": "true", "limit": 20},
headers={"x-api-key": os.environ["PINNFEED_KEY"]}, # ps_live_...
timeout=10)
print(len(r.json().get("events", [])), "events")
Longer REST walkthrough: Pinnacle odds in Python (REST). A poller only sees a change on the next request, so on average it is half an interval late, plus round-trip — arithmetic, not a vendor race.
Push on Builder (Free and Hobby keys get 403 plan_lacks_ws):
# See the full example for auth, ping/pong and reconnect
# https://pinnfeed.io/answers/pinnacle-odds-websocket-python-example
# wss://pinnfeed.io/v1/stream — subscribe, then apply snapshot and delta frames
Worked clients: WebSocket Python example, fairProb EV screen, closing lines / CLV.
Honest contrast (9 November 2026)#
| Job | Typical fit |
|---|---|
| Many books, credit-priced REST, no push | The Odds API, from $30/mo / 20k credits, no published WebSocket |
| Pinnacle-only REST, delayed or real-time | PinnFeed Free €0 or Hobby €29/mo |
| Pinnacle live + prematch WebSocket, closings, props | Builder €99/mo (VAT incl. where applicable) |
We do not claim PinnFeed is cheaper than a $30 poller in absolute dollars, and we do not claim lower latency than any named vendor. Related: The Odds API vs PinnFeed, best sports betting data API.
Try it#
Start a 3-day Builder trial (€99/mo, VAT incl. where applicable) or get a free delayed REST key. Paid plans: 3-day trial; a card is required and it is charged after day 3 unless you cancel. Pricing.
Educational content for adults (18+). No tips, no guaranteed profit.
Questions people ask#
Can I use The Odds API and PinnFeed together in Python?#
Yes. Poll the multi-book API for the other book's decimal, and compare it to Pinnacle fair from /v1/odds or the stream. Event matching is your job.
Does the official Pinnacle API still work for this?#
Official docs say public access has been closed since 23 July 2025, with any remaining access needing a funded account (README, opened 10 November 2026). PinnFeed is self-serve and does not need a Pinnacle account.
Which plan do I need for the WebSocket example?#
Builder or Pro. Hobby is real-time REST only.