On the wire · 23:42:02 UTC Live 18 · Prematch 2,128 · Markets 46,420 Vol. I · No. 26 · Friday 4 December 2026 wss://pinnfeed.io/v1/stream
PinnFeed

Pinnacle odds API quickstart

Get a free key (no card) →

Answer: these are the docs for PinnFeed, an independent API for Pinnacle odds: REST snapshots plus a WebSocket that pushes live and prematch price changes, with no-vig fair odds on every outcome. A free key (no card, REST 30 seconds delayed, 2 sports) covers steps 1 and 2. Step 3, the WebSocket, needs Builder or its 3-day trial. This page takes you from zero to live prices in about five minutes.

PinnFeed streams Pinnacle odds to your code over one WebSocket and a REST API. Prefer the 60-second path? See the public quickstart and the vibe coding hub (Cursor, Claude, ChatGPT, Lovable, Replit, Bolt prompts + MCP).

Looking for Pinnacle's own API documentation?#

Pinnacle publishes its API docs on GitHub. That README, re-read on 1 December 2026, says the API is "a RESTful service for betting", that access "has been closed for the general public since July 23rd, 2025", that it uses HTTP Basic auth, and that you "must have a funded account". PinnFeed is not affiliated with Pinnacle, needs no Pinnacle account and places no bets: it is an odds-data API with its own key. What the official API covers, and who can still apply: Pinnacle API access closed.

1. Get an API key#

  1. Enter your email on the sign-up page and click the link we send (valid for 20 minutes). No password, no card. Want the live WebSocket from the start? Start the 3-day Builder trial instead: $0 today, then $139/mo (tax incl. where applicable), card required, charged after day 3 unless you cancel.
  2. Your key is on screen: copy it now. It is shown once and starts with ps_live_. Need another key later? Dashboard → Create key.
  3. Store it in an environment variable:
export PINNFEED_KEY="ps_live_..."

The Free plan works with REST (30-second delay). Realtime REST ($49/mo) removes the delay on REST (main lines, no WebSocket); the WebSocket starts at Pre + Live WebSocket (Builder, $139/mo, 3 days free), every market on offer — see pricing.

2. Make a REST call#

The full REST surface is also published as OpenAPI 3.1. Agent discovery: AI Catalog, SKILL.md, llms-api.txt, AGENTS.md, Postman collection (also linked from llms.txt).

curl -H "x-api-key: $PINNFEED_KEY" "https://pinnfeed.io/v1/odds?sport=soccer&main=true&limit=5"

Free = delayed REST (30 s). 3-day free trial = live WebSocket, $0 today, cancel anytime. Start the Builder trial → Builder $139/mo (tax incl. where applicable) after day 3 unless you cancel · card required.

You get live events first, then the next kick-offs (prematch events that already started are left out), each with its open markets. Every outcome has an American price, a decimal price and a no-vig fair price; every market has updatedAt (last price change) and the response has asOf. The full field list is in the schema reference.

3. Open the WebSocket#

The WebSocket needs Builder or the 3-day trial. This prints one line per Pinnacle price move on the main soccer moneylines, with the no-vig fair price:

Home FC v Away United | home: 1.78 -> 1.72 (fair 1.84)

Python

# pip install websockets   (WebSocket: Builder plan)
import asyncio, json, os, sys, websockets
from websockets.exceptions import InvalidStatus

async def main():
    events, prices = {}, {}
    try:
        ws = await websockets.connect(
            "wss://pinnfeed.io/v1/stream",
            additional_headers={"x-api-key": os.environ["PINNFEED_KEY"]},
        )
    except InvalidStatus as e:
        # 401 = unknown key (get a new one at https://pinnfeed.io/recover), 403 = plan without WebSocket (Free).
        try:
            err = json.loads(e.response.body)["error"]
            sys.exit(f"HTTP {e.response.status_code} {err['code']}: {err['message']}")
        except (ValueError, KeyError, TypeError):
            sys.exit(f"HTTP {e.response.status_code}: the WebSocket needs a Builder key")
    async with ws:
        await ws.send(json.dumps({"type": "subscribe", "sports": ["soccer"],
                                  "markets": ["moneyline"], "main": True}))
        async for raw in ws:
            msg = json.loads(raw)
            if msg["type"] == "ping":
                await ws.send('{"type":"pong"}')
            elif msg["type"] == "snapshot":
                events.update({e["id"]: e for e in msg["events"]})
                for m in msg["markets"]:
                    for o in m["outcomes"]:
                        prices[(m["id"], o["name"])] = o["decimal"]
                if msg["final"]:
                    print(f"Watching {len(events)} matches. Price moves appear below as they happen:")
            elif msg["type"] == "delta":
                for c in msg["changes"]:
                    if c["kind"] == "event" and c["op"] == "upsert":
                        events[c["event"]["id"]] = c["event"]
                    if c["kind"] != "market" or c["op"] != "upsert":
                        continue
                    m, e = c["market"], events.get(c["market"]["eventId"], {})
                    for o in m["outcomes"]:
                        old = prices.get((m["id"], o["name"]))
                        prices[(m["id"], o["name"])] = o["decimal"]
                        if old and old != o["decimal"]:
                            print(f'{e.get("home")} v {e.get("away")} | {o["name"]}: {old} -> {o["decimal"]} (fair {o.get("fair")})')

asyncio.run(main())

Node.js

// npm i ws   ·   node stream.js
const WebSocket = require('ws');

const ws = new WebSocket('wss://pinnfeed.io/v1/stream', {
  headers: { 'x-api-key': process.env.PINNFEED_KEY }, perMessageDeflate: true,
});
const events = new Map(), prices = new Map();

ws.on('open', () => ws.send(JSON.stringify({ type: 'subscribe', sports: ['soccer'], markets: ['moneyline'], main: true })));
ws.on('unexpected-response', (_req, res) => console.error(`HTTP ${res.statusCode}: the WebSocket needs a Builder key in PINNFEED_KEY.`));
ws.on('message', (raw) => {
  const msg = JSON.parse(raw);
  if (msg.type === 'ping') return ws.send('{"type":"pong"}');
  if (msg.type === 'snapshot') {
    for (const e of msg.events) events.set(e.id, e);
    for (const m of msg.markets) for (const o of m.outcomes) prices.set(`${m.id}|${o.name}`, o.decimal);
    if (msg.final) console.log(`Watching ${events.size} matches. Price moves appear below as they happen:`);
  }
  if (msg.type === 'delta') for (const c of msg.changes) {
    if (c.kind === 'event' && c.op === 'upsert') events.set(c.event.id, c.event);
    if (c.kind !== 'market' || c.op !== 'upsert') continue;
    const m = c.market, e = events.get(m.eventId) || {};
    for (const o of m.outcomes) {
      const k = `${m.id}|${o.name}`, old = prices.get(k);
      prices.set(k, o.decimal);
      if (old && old !== o.decimal) console.log(`${e.home} v ${e.away} | ${o.name}: ${old} -> ${o.decimal} (fair ${o.fair})`);
    }
  }
});

No Builder key yet? The same code runs against the public demo when it is on: use wss://pinnfeed.io/v1/demo/stream and drop the subscribe line.

You first receive a welcome message, then a chunked snapshot of everything that matches your filters, then a stream of delta batches. See the WebSocket protocol for every message type.

Free REST shows the same move 30 seconds later, and only when you poll. Widen the filters (sports, markets, "main": false) once you know what you need: the full book carries far more updates than the main lines.

4. Keep a local book#

Apply each change to a dictionary keyed by market.id (and event.id for events):

  • op: "upsert" — replace the object.
  • op: "remove" — delete it (the market was suspended or settled, or the event ended).

That is the whole client-side state machine. More languages are in examples.

Form K-1 · Free API key

Get your free API key.

One field. No password, no card: enter your email, click the link we send, and your key is on screen.

By continuing you agree to the Terms and Privacy Policy.

One free key per email. Link valid for 20 minutes.