Contents
Introduction
Base URL for this deployment: https://pinnodds.com. Every endpoint below is relative to that host. All responses are JSON.
All requests are authenticated with an API key — your key is your login; there's no username or password. Get a free trial key in one click from the landing page.
/kit/v1/* endpoints mirror the shape of common third-party Pinnacle API formats. Swap the base URL + key in your existing client and it should just work.
/llms-full.txt — full API reference in one plain-text fetch, optimized for LLM context windows. The shorter /llms.txt index is auto-discovered by tools that probe the root.
Authentication
Pass your API key in one of three ways, in priority order:
x-portal-apikeyheader (recommended — matches legacy third-party APIs)x-api-keyheader?key=query parameter (useful for browsers / one-offs)
# Header (recommended) curl -H "x-portal-apikey: YOUR_KEY" \ "https://pinnodds.com/kit/v1/markets?sport_id=2&event_type=live" # Query string curl "https://pinnodds.com/kit/v1/markets?sport_id=2&event_type=live&key=YOUR_KEY"
Rate limits
Limits are enforced per-key across fixed windows. When you exceed one, you get 429 with a Retry-After header.
| Plan | Price | Second | Minute | Hour | Day | Total | SSE drops |
|---|---|---|---|---|---|---|---|
| Trial | $0 | — | 20 | 100 | 100 | Unlimited | — |
| Stream | $99/mo | — | 20 | 100 | 100 | Unlimited | ✓ Included |
| Pro | $99/mo | 10 req/sec | — | — | — | Unlimited | — |
| Pro + SSE | $149/mo | 10 req/sec | — | — | — | Unlimited | ✓ Included |
| Scale | $229/mo | 30 req/sec | — | — | — | Unlimited | ✓ Included |
Trial is capped at 100 requests per day total — once you exceed it you'll get 429 with window=day until UTC midnight rolls over. Stream ($99/mo) gives you push SSE drops only. Pro ($99/mo) gives you REST 10 req/sec only. Pro + SSE ($149/mo) bundles both — saves $49 vs buying separately.
# 429 response when you hit a limit HTTP/1.1 429 Too Many Requests Retry-After: 41 Content-Type: application/json { "error": "rate_limited", "window": "minute", "limit": 20, "retry_after_ms": 41052 }
Errors
| Status | Error code | When it happens |
|---|---|---|
| 400 | — | Malformed or missing required parameter |
| 401 | missing_key | No API key was sent |
| 401 | invalid_key | Key not in our DB (typo, deleted, or regenerated) |
| 401 | missing_key · invalid_key · expired · invalid_token | On the /odds-drop* streams the body says why the request was refused: {"type":"error","error":"missing_key"} (no key sent), "invalid_key" (key not recognised), "expired" (the key has expired) or "invalid_token" (the retired ?token= parameter was sent without an API key — send your API key instead, in the x-api-key header or as ?key=). Retrying without changing the key gives the same answer. See SSE control frames and connection answers |
| 401 | unauthorized | On the WebSocket handshake: the key is missing or not recognised. Retrying without changing the key gives the same answer |
| 403 | plan_lacks_sse | Key is valid but the plan doesn't include SSE streams (Stream, Pro + SSE, Scale only). Sent as an ordinary HTTP 403 with the JSON body {"type":"error","error":"plan_lacks_sse"}; no stream is opened. This is the expected answer on a new free key: the 3-day full demo is switched on by hand when you ask for it, not at signup |
| 403 | plan_lacks_ws | Key is valid but the WebSocket add-on isn't active on the account. Also the expected answer on a new free key until a 3-day full demo has been switched on for it (on request) |
| 403 | error code: 1010 | Not from us: a plain-text answer from Cloudflare, which rejected the request because of the client's User-Agent before it reached our servers. It affects HTTP clients that send a default library name such as Python-urllib or libwww-perl. The API paths (/kit/, /api/, /odds-drop*, /ping, /health) are exempt, but /ws/feed, /openapi.json and the HTML pages are not. Set an explicit User-Agent header (any descriptive name for your client), and if you still see it on an API path send us the URL, your client library and the cf-ray response header |
| 404 | not_found | On /kit/v1/closing?event_id=: we have no closing for that event (it has not started yet — add status=all for its opening prices —, it started before 18 November 2026, or it had no regular market at the start) |
| 413 | payload_too_large | Request body over 64 KB (POST endpoints) |
| 429 | rate_limited | Key exceeded its rate limit — honor the Retry-After header. The WebSocket handshake answers 429 as well, after more than 5 connection attempts in 60 s, and so do the /odds-drop* streams, after more than 5 connection attempts per API key in 60 s (the body is shown under SSE control frames and connection answers) |
| 500 | internal | Unexpected server error — safe to retry with backoff |
| 503 | prematch_disabled | Prematch endpoint hit while the prematch ingester is off |
Live odds
Snapshot of every event currently in-play. Updates arrive via the upstream MQTT WebSocket so each call returns fresh prices (typical lag <200 ms).
Returns every event for a sport, with all markets (moneyline, spreads, totals, team totals) across every period (match, 1st half, 2nd half, etc.). Live by default; pass event_type=prematch to switch feeds.
Query parameters
| Name | Type | Description |
|---|---|---|
| sport_id required | integer | Dropping-odds sport id. See Sport IDs. |
| event_type | "live" | "prematch" | Defaults to live. Pass prematch to receive prematch fixtures with the same response envelope. Both flavors return identical event shape — only event_type on each event differs. Equivalent to /kit/v1/prematch/fixtures with that param set. |
| since | integer | Return only events that changed since this last value (incremental polling). |
| include_specials | 1 | nested | Include special-market events (Player Props, Team Props, Exact Scores, futures). 1 = flat extra rows linked by parent_id (delta-friendly); nested = grouped under each parent event's specials array (one row per match). Off by default. See Player props & specials. |
| is_have_odds | 0 | 1 | Legacy compat — accepted and ignored. We always return events with odds. |
/kit/v1/markets always returns the whole board for a sport. It has no event_id or event_ids filter, and it ignores parameters it does not know instead of rejecting them, so a filter that is not in the table above silently returns the full board. Per-event access is on these:
- Live, REST:
GET /kit/v1/details?event_id= - Prematch, REST:
GET /kit/v1/prematch/markets?event_id=, orGET /kit/v1/prematch/lines?event_id=&market_type=for one market type - WebSocket:
event_idsin the subscribe message (up to 200 per stream)
line_meta=1 to get Pinnacle’s version, the main/alternate flag and the market key on every line.
event_type on each event differs. Existing client code that iterates events[*].periods.num_0 works for both feeds without branching.
curl -H "x-portal-apikey: $KEY" \
"https://pinnodds.com/kit/v1/markets?sport_id=2&event_type=live"
const res = await fetch( `${BASE}/kit/v1/markets?sport_id=2&event_type=live`, { headers: { "x-portal-apikey": KEY } } ); const { events, last } = await res.json();
import requests r = requests.get( f"{BASE}/kit/v1/markets", params={"sport_id": 2, "event_type": "live"}, headers={"x-portal-apikey": KEY}, ) data = r.json()
package main import ( "encoding/json" "net/http" ) req, _ := http.NewRequest("GET", BASE+"/kit/v1/markets?sport_id=2&event_type=live", nil) req.Header.Set("x-portal-apikey", KEY) resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() var out struct { Events []map[string]interface{} `json:"events"`; Last int64 `json:"last"` } json.NewDecoder(resp.Body).Decode(&out)
<?php $ch = curl_init(BASE . "/kit/v1/markets?sport_id=2&event_type=live"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["x-portal-apikey: $KEY"], ]); $body = curl_exec($ch); curl_close($ch); $data = json_decode($body, true);
Response — see Event object
{
"sport_id": 2,
"sport_name": "Tennis",
"last": 141,
"last_call": 141,
"events": [
{ /* see Event object below */ }
]
}
Fetch a single event by ID. Same event shape as /kit/v1/markets.
| Name | Type | Description |
|---|---|---|
| event_id required | integer | Arcadia matchup ID from a previous /markets response. |
| line_meta | 1 | Optional. Adds version, is_alternate and key to every line, and a money_line_meta object to each period. See below. |
curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/details?event_id=1628594960"
Optional: line_meta=1 — version, main/alternate flag and market key on each line
Add line_meta=1 to one of the three per-event endpoints and every line object gains three fields. The moneyline’s values are in a separate money_line_meta object next to money_line inside the period.
# live curl -H "x-portal-apikey: $KEY" "https://pinnodds.com/kit/v1/details?event_id=1628594960&line_meta=1" # prematch curl -H "x-portal-apikey: $KEY" "https://pinnodds.com/kit/v1/prematch/markets?event_id=1629513753&line_meta=1" curl -H "x-portal-apikey: $KEY" "https://pinnodds.com/kit/v1/prematch/lines?event_id=1629513753&line_meta=1"
Part of one period with line_meta=1 (the other fields of the period are unchanged and left out here):
{
"money_line_meta": { "version": 3800718797, "is_alternate": false, "key": "s;0;m" },
"spreads": {
"-1.5": { "hdp": -1.5, "home": 1.341, "away": 3.31, "max": 550, "version": 3800718797, "is_alternate": false, "key": "s;0;s;-1.5" }
},
"totals": {
"2.5": { "points": 2.5, "over": 3.31, "under": 1.341, "max": 550, "version": 3800718797, "is_alternate": false, "key": "s;0;ou;2.5" }
}
}
| Field | Type | Meaning |
|---|---|---|
| version | integer | null | Pinnacle’s change stamp for the line. It changes when that line’s prices change, and Pinnacle shares one value across the markets it reprices together, so the same number on several lines is normal. It is not a PS3838 lineId and must not be sent as one: we do not provide lineId or altLineId, they do not exist in the feed. |
| is_alternate | boolean | null | false on the main line, true on an alternate line. |
| key | string | null | Pinnacle’s market key, in the form period;type;line: s;0;m is the period 0 moneyline, s;0;s;-1.5 the period 0 spread at −1.5, s;0;ou;2.5 the period 0 total at 2.5. |
- Only the literal value
1turns it on. Without the parameter, or with any other value, the response is exactly what it was before. - Per-event endpoints only:
/kit/v1/details,/kit/v1/prematch/marketsand/kit/v1/prematch/lines. The full boards (/kit/v1/markets,/kit/v1/prematch/fixtures) ignore the parameter. - A value can be
nullwhen Pinnacle did not send it for that line.
Prematch odds
Pinnacle's prematch lines for upcoming fixtures. Prices are pushed as Pinnacle publishes them (MQTT /pre), and a separate REST poller re-reads the full board every 25–45 s for fixtures that appear or disappear (the cycle waits for Pinnacle to build its soccer board, which takes 10–45 s on their side). A fixture leaves this board as soon as it has kicked off and its live listing exists — its prices from then on, including later maps in esports, are on event_type=live. A fixture whose scheduled start time has passed but which Pinnacle is still trading as prematch stays on the prematch endpoints until it really starts; this is typical for esports matches that start late and for parent matches with later maps. For such events starts can be in the past, so do not drop a prematch fixture only because its start time has gone by. Stored independently from the live feed — querying it never starves the live snapshot.
/kit/v1/markets for in-play prices, /kit/v1/prematch/fixtures for upcoming-event lines. The two surfaces share the same sport IDs and event-object shape so client code can branch on a single field.
Every prematch fixture for a sport, with its current full markets/periods structure. Mirrors the shape of /kit/v1/markets — only the event_type field differs.
Query parameters
| Name | Type | Description |
|---|---|---|
| sport_id required | integer | Dropping-odds sport id. See Sport IDs. |
| since | integer | Return only events that changed since this last value (incremental polling). |
| include_specials | 1 | nested | Include special-market events (Player Props, Team Props, Exact Scores, futures). 1 = flat extra rows linked by parent_id (delta-friendly); nested = grouped under each parent event's specials array (one row per match). Off by default. See Player props & specials. |
curl -H "x-portal-apikey: $KEY" \
"https://pinnodds.com/kit/v1/prematch/fixtures?sport_id=1"
const r = await fetch( `${BASE}/kit/v1/prematch/fixtures?sport_id=1`, { headers: { "x-portal-apikey": KEY } } ); const { events } = await r.json(); const withOdds = events.filter(e => e.is_have_odds && e.periods?.num_0);
import requests r = requests.get( f"{BASE}/kit/v1/prematch/fixtures", params={"sport_id": 1}, headers={"x-portal-apikey": KEY}, ) events = r.json()["events"] with_odds = [e for e in events if e.get("is_have_odds") and e.get("periods", {}).get("num_0")]
req, _ := http.NewRequest("GET", BASE+"/kit/v1/prematch/fixtures?sport_id=1", nil) req.Header.Set("x-portal-apikey", KEY) resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() var out struct { Events []map[string]interface{} `json:"events"` } json.NewDecoder(resp.Body).Decode(&out) // out.Events[i] has periods, money_line, spreads, totals, team_total, etc.
<?php $ch = curl_init(BASE . "/kit/v1/prematch/fixtures?sport_id=1"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["x-portal-apikey: $KEY"], ]); $data = json_decode(curl_exec($ch), true); curl_close($ch); $with_odds = array_filter($data["events"], fn($e) => ($e["is_have_odds"] ?? false) && isset($e["periods"]["num_0"]));
Response — same shape as /kit/v1/markets with event_type: "prematch" on each event:
# → 200 OK — same envelope as /kit/v1/markets, only event_type differs { "sport_id": 1, "sport_name": "Soccer", "last": 523864, "last_call": 523864, "events": [ { "event_id": 1629513753, "sport_id": 1, "league_id": 5488, "league_name": "Italy - Serie A", "home": "Cremonese", "away": "Lazio", "starts": "2026-05-04T16:30:00Z", "start_ts": "2026-05-04T16:30:00Z", // alias of starts (back-compat) "event_type": "prematch", "is_have_odds": true, "is_have_periods": true, "periods": { "num_0": { "number": 0, "description": "Game", "money_line": { "home": 2.45, "draw": 3.30, "away": 2.90 }, "spreads": { "-0.5": { "hdp": -0.5, "home": 2.06, "away": 1.82, "max": 500 } }, "totals": { "2.5": { "points": 2.5, "over": 1.90, "under": 1.98, "max": 500 } }, "team_total": { "home": { "points": 1.5, "over": 1.86, "under": 2.00 } }, "meta": { "number": 0, "max_total": 500, "home_score": 0, "away_score": 0 } } // num_1 (1st half), num_2 (2nd half), etc. when offered }, "status": "pending" } ] }
Full markets payload for a single prematch event — every period, money line, spread, total, team total. Use this once you've picked an event from /prematch/fixtures.
| Name | Type | Description |
|---|---|---|
| event_id required | integer | Pinnacle matchup ID. |
| line_meta | 1 | Optional. Adds version, is_alternate and key to every line, and a money_line_meta object to each period. See line_meta=1. |
curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/markets?event_id=1629513753"
Line view for a single prematch event, optionally narrowed to one market type. Returns the same periods structure (num_0, num_1, …) as /markets; with market_type set, each period carries only that market — a lighter payload, ideal for tickers.
| Name | Type | Description |
|---|---|---|
| event_id required | integer | Pinnacle matchup ID. |
| market_type | string | Filter to one market: money_line | spreads | totals | team_total. Omit for all markets. |
| line_meta | 1 | Optional. Adds version, is_alternate and key to every line, and a money_line_meta object to each period. See line_meta=1. |
curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/lines?event_id=1629513753&market_type=totals"
Player props & specials
Beyond the main match markets, we carry Pinnacle's special markets: Player Props (anytime/first goalscorer, "player X to score", player to be booked), Team Props (HT/FT, winning margin, exact total goals, odd/even, 3-way handicaps, "team to score" …), Exact Scores (correct score), and tournament futures (to reach the final, outrights). Each special is its own event row with its own event_id, linked to the main match by parent_id.
Specials are excluded by default so existing integrations keep their payload size — opt in with include_specials=1 (flat rows, cheapest with ?since polling) or include_specials=nested (specials grouped under each parent event's specials array — one row per match) on /kit/v1/prematch/fixtures or /kit/v1/markets. To fetch a single special's prices, pass its event_id to /kit/v1/prematch/markets — no flag needed there.
Special-row fields (on top of the standard event fields):
| Field | Type | Description |
|---|---|---|
| special | string | Market description, e.g. "Anytime Goalscorer", "Mohamed Salah To Score", "Winning Margin". |
| special_category | string | "Player Props" | "Team Props" | "Exact Scores" | "Futures" | … |
| special_units | string | Units the outcomes are counted in (e.g. "Regular", "Corners", "Runs"). |
| parent_id | integer | The main match's event_id — group a fixture's specials by this. |
| special_markets | object | Named-outcome prices per period: {"num_0": [{type, key, side, max_risk, prices: [{name, participant_id, points, price}]}]}. price is decimal odds; name is the outcome ("Mohamed Salah", "Yes", "2-1", "4+"); max_risk is Pinnacle's max stake for the market. |
Example — player props for Australia vs Egypt (main event 1632164518):
curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/fixtures?sport_id=1&include_specials=1" # → rows with parent_id 1632164518 include: # 1632190502 "Anytime Goalscorer" (Player Props) # 1632190468 "First Goalscorer" (Player Props) # 1632278803 "Mohamed Salah To Score" (Player Props) # 1632181240 "Winning Margin" (Team Props) … ~50 more curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/markets?event_id=1632278803"
{
"events": [{
"event_id": 1632278803,
"home": "Australia", "away": "Egypt",
"parent_id": 1632164518,
"special": "Mohamed Salah To Score",
"special_category": "Player Props",
"special_markets": {
"num_0": [{
"type": "moneyline", "max_risk": 1000,
"prices": [
{ "name": "No", "price": 1.33 },
{ "name": "Yes", "price": 3.43 }
]
}]
}
}]
}
/api/drops with participant_name set. Specials are thin markets — check max_risk before sizing. Like all prematch rows, a special's ID dies at kickoff.
Closing lines
From 18 November 2026 we record the opening and the closing prematch price of every regular market of every event and keep them after the event has started. The closing price is the last price before the event started: the real last change, not a periodic snapshot. Each closing price also comes with Pinnacle’s margin removed (close_fair), which is the number closing line value (CLV) is measured against. The endpoint is included in every plan at no extra cost and counts against the normal REST rate limit of your plan.
Opening and closing prices of started events, and with status=upcoming the opening prices of events that have not started yet. Two ways to call it: with event_id for one event, or with sport_id and a time range for a page of events ordered by start time. Authentication is the same as on the other /kit/v1/* endpoints (see Authentication).
Query parameters
| Name | Type | Description |
|---|---|---|
| event_id | integer | One event. Returns that event’s document, or 404 with {"error":"not_found"} when we have no closing for it. Send either event_id or sport_id. |
| sport_id | integer | All events of one sport in a time range. See Sport IDs. |
| from | ISO date/time | epoch ms | With sport_id. Start of the range, compared with the event start time. Default: 24 hours ago. |
| to | ISO date/time | epoch ms | With sport_id. End of the range, compared with the event start time. Default: now. |
| limit | integer | With sport_id. Events per page, at most 500. |
| cursor | string | With sport_id. The next value of the previous page. Keep the other parameters the same while you page. |
| status | closed | upcoming | all | Default closed: events that have started. upcoming: events still listed before their start, with open and opened_at filled and close, close_fair, move_pct set to null. all: both, in one start-ordered list with one cursor. Works with event_id too. |
Every document carries "status":"closed" or "status":"upcoming"; an upcoming one has "closed_at":null and becomes its closing document once the event starts. Example: tomorrow’s soccer opening prices with ?sport_id=1&status=upcoming&from=2026-11-27T00:00:00Z&to=2026-11-28T00:00:00Z.
# One event curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/closing?event_id=1640545659" # Soccer events that started on 18 November 2026 (UTC) curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/closing?sport_id=1&from=2026-11-18T00:00:00Z&to=2026-11-19T00:00:00Z&limit=500"
// Every soccer closing of one day, page by page const events = []; let cursor = null; do { const q = new URLSearchParams({ sport_id: "1", from: "2026-11-18T00:00:00Z", to: "2026-11-19T00:00:00Z", limit: "500", }); if (cursor) q.set("cursor", cursor); const r = await fetch(`${BASE}/kit/v1/closing?${q}`, { headers: { "x-portal-apikey": KEY }, }); const page = await r.json(); events.push(...page.events); cursor = page.next; // null on the last page } while (cursor);
import requests # Closing line value of one bet: Over 2.75 taken at 2.05 r = requests.get( f"{BASE}/kit/v1/closing", params={"event_id": 1640545659}, headers={"x-portal-apikey": KEY}, ) if r.status_code == 404: raise SystemExit("no closing recorded for this event") over = r.json()["periods"]["num_0"]["totals"]["2.75"]["over"] clv_pct = (2.05 / over["close_fair"] - 1) * 100 # +5.7 with close_fair 1.94
req, _ := http.NewRequest("GET", BASE+"/kit/v1/closing?event_id=1640545659", nil) req.Header.Set("x-portal-apikey", KEY) resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() if resp.StatusCode == http.StatusNotFound { // no closing recorded for this event } var doc struct { EventID int64 `json:"event_id"` ClosedAt string `json:"closed_at"` Periods map[string]map[string]json.RawMessage `json:"periods"` } json.NewDecoder(resp.Body).Decode(&doc) // doc.Periods["num_0"]["money_line"], ["totals"], ["spreads"], ["team_total"]
<?php $ch = curl_init(BASE . "/kit/v1/closing?event_id=1640545659"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["x-portal-apikey: $KEY"], ]); $doc = json_decode(curl_exec($ch), true); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); // 404 = no closing recorded for this event curl_close($ch); $home = $doc["periods"]["num_0"]["money_line"]["home"] ?? null;
Response for one event (?event_id=). Decimal odds and the same field names as the other REST endpoints:
# → 200 OK { "event_id": 1640545659, "sport_id": 1, "league_name": "UEFA - Nations League C", "home": "Iceland", "away": "Luxembourg", "starts": "2026-11-22T17:00:00Z", "closed_at": "2026-11-22T17:00:02Z", "periods": { "num_0": { "money_line": { "home": { "open": 1.62, "close": 1.55, "close_fair": 1.60, "move_pct": -4.3 }, "draw": { "open": 4.10, "close": 4.35, "close_fair": 4.52, "move_pct": 6.1 }, "away": { "open": 5.80, "close": 6.40, "close_fair": 6.68, "move_pct": 10.3 }, "opened_at": "2026-11-18T09:14:31Z", "last_change_at": "2026-11-22T16:58:47Z" }, "totals": { "2.75": { "points": 2.75, "over": { "open": 1.95, "close": 1.89, "close_fair": 1.94, "move_pct": -3.1 }, "under": { "open": 1.93, "close": 1.99, "close_fair": 2.06, "move_pct": 3.1 }, "opened_at": "…", "last_change_at": "…" } }, "spreads": { "-1.0": { "hdp": -1.0, "home": { … }, "away": { … }, "opened_at": "…", "last_change_at": "…" } }, "team_total": { … } } // num_1 (1st half), num_2 (2nd half), etc. when offered } }
Response for a range (?sport_id=). The same documents in events, ordered by start time:
# → 200 OK { "sport_id": 1, "count": 500, "next": "…", // pass back as cursor= for the next page; null on the last page "events": [ { "event_id": 1640545659, "closed_at": "2026-11-22T17:00:02Z", "periods": { … } } ] }
Response fields
| Field | Type | Description |
|---|---|---|
| event_id … starts | as on REST | event_id, sport_id, league_name, home, away and starts: the same fields as on /kit/v1/prematch/fixtures. |
| closed_at | ISO time | When the record was closed: the moment the event first appeared in play, or the moment it left prematch if that came first. Prices are taken from before the start either way; for sports where Pinnacle keeps the prematch listing open after the start (hockey, volleyball) closed_at is the in-play moment, not the later removal. |
| provisional | true | absent | Present and true when we had no in-play signal and no removal 30 minutes after the scheduled start, so the record was closed on the last price before the start. A provisional record is replaced by the final one when the signal arrives; golf rounds usually stay provisional. |
| periods | object | num_0 (full match), num_1, … as on the other endpoints. Each period holds money_line, spreads, totals and team_total. Spreads and totals are keyed by line. |
| open | number | null | The first price we saw for that selection. null when the event was already listed before we started recording it. |
| close | number | The last price before the event started: the real last change, not a periodic snapshot. |
| close_fair | number | The closing price with Pinnacle’s margin removed. Power method, the same calculation as nvp on drop alerts. |
| move_pct | number | null | Change from open to close in percent: (close / open − 1) × 100. Negative means the price shortened. null when open is null. |
| opened_at | ISO time | Per market: when we first saw it. |
| last_change_at | ISO time | Per market: the time of the last change before the start, the one that set close. |
| count, next, events | range only | count is the number of events in this page, next the cursor of the next page or null, events the documents. |
Closing line value (CLV)
We do not compute CLV for you, because it depends on the price you took. Compare your price with close_fair of the same selection on the same line:
CLV % = (your_odds / close_fair − 1) × 100 # Over 2.75 taken at 2.05, close_fair 1.94 (2.05 / 1.94 − 1) × 100 = +5.7 %
A positive number means you took a better price than the fair closing price. Comparing with close instead of close_fair leaves Pinnacle’s margin in the result.
Limits
- History starts on 18 November 2026. There is no backfill of earlier events.
- Opening prices can be
null. An event that was already listed when recording began has noopen, and so nomove_pct. - Regular markets only in this version: moneyline, spread, total and team total. No specials or player props.
- Prematch only. The closing line is the last prematch price. Live prices are not part of it.
- Withdrawn markets have no entry. A market Pinnacle took down before the start has no closing price.
- Start times can move. In tennis and esports Pinnacle moves the start to the real one; the close is the last price before the event actually went in play.
- Not a tick history. You get the first and the last price of each market, not every change in between.
Dropping odds
Detect price movements ("drops") in real time across both live and prematch feeds. A drop fires when an outcome's decimal odds fall by ≥ a threshold in a configured window. Each drop carries the from and to price plus full event context.
Pull-style queryable buffer of recent drops. Apply filters and read the full result set — useful for batch jobs, dashboards, or polling clients.
Each drop carries nvp — the vig-removed ("no-vig") fair price for that outcome, the same value emitted on the SSE streams. Use it to gauge edge, e.g. edge = to / nvp - 1.
Query parameters
| Name | Type | Description |
|---|---|---|
| mode | "live" | "prematch" | Which feed to query. Defaults to live. |
| sport_id | integer | Filter to a single sport. Omit for all. |
| min_drop_pct | number | Minimum drop percentage (default 5). Fractional allowed. |
| max_drop_pct | number | Optional cap. |
| max_age_sec | integer | Only return drops fresher than this. Up to ~3 h. |
| markets | csv | Subset of moneyline,spread,total,team_total. |
| periods | csv | Period numbers (0=full match, 1=1st half, etc.). |
| live | 0 | 1 | Live-mode only. 1 = exclude any drops on events not yet started. |
| limit | integer | Max drops to return (default 500). |
# Live drops, soccer only, ≥7%, last 10 min curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/api/drops?mode=live&sport_id=1&min_drop_pct=7&max_age_sec=600" # Prematch drops, all sports, last hour curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/api/drops?mode=prematch&min_drop_pct=2&max_age_sec=3600"
const qs = new URLSearchParams({ mode: "live", sport_id: 1, min_drop_pct: 7, max_age_sec: 600, }); const r = await fetch(`${BASE}/api/drops?${qs}`, { headers: { "x-portal-apikey": KEY }, }); const { total, drops } = await r.json(); for (const d of drops) { const ev = (d.to / d.nvp) - 1; // edge vs no-vig price if (ev > 0.02) console.log("+EV", d.home, d.market, d.from, "→", d.to); }
import requests r = requests.get( f"{BASE}/api/drops", params={ "mode": "live", "sport_id": 1, "min_drop_pct": 7, "max_age_sec": 600, }, headers={"x-portal-apikey": KEY}, ) for d in r.json()["drops"]: ev = (d["to"] / d["nvp"]) - 1 if ev > 0.02: print("+EV", d["home"], d["market"], d["from"], "→", d["to"])
q := url.Values{}
q.Set("mode", "live"); q.Set("sport_id", "1")
q.Set("min_drop_pct", "7"); q.Set("max_age_sec", "600")
req, _ := http.NewRequest("GET", BASE+"/api/drops?"+q.Encode(), nil)
req.Header.Set("x-portal-apikey", KEY)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var out struct {
Total int `json:"total"`
Drops []struct {
Home, Market string; From, To, NVP float64
} `json:"drops"`
}
json.NewDecoder(resp.Body).Decode(&out)
<?php $qs = http_build_query([ "mode" => "live", "sport_id" => 1, "min_drop_pct" => 7, "max_age_sec" => 600, ]); $ch = curl_init(BASE . "/api/drops?$qs"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["x-portal-apikey: $KEY"], ]); $data = json_decode(curl_exec($ch), true); curl_close($ch); foreach ($data["drops"] as $d) { $ev = ($d["to"] / $d["nvp"]) - 1; if ($ev > 0.02) echo "+EV {$d['home']} {$d['from']} → {$d['to']}\n"; }
# Response { "total": 42, "drops": [ { "event_id": 1629725918, "sport_name": "Soccer", "league": "Australia - NPL Victoria", "home": "Bentleigh Greens", "away": "St Albans Saints", "market": "spread", "period": 0, "side": "home", "points": -0.5, "from": 2.37, "to": 2.25, "nvp": 2.34, "drop_pct": 5.06, "age_s": 12, "is_live": false } ], "meta": { "mode": "live", "events_in_store": 2552, "tracked_outcomes": 122035, "drops_buffered": 968, "source": "ws", "ts": 1783079852368 } }
Note. Drops on special markets (player/team props) carry participant_name — the named outcome that moved (e.g. "Mohamed Salah") — and a participant_id, with nvp: null (no two-way devig exists for multi-outcome ladders). nvp is always null on a row that has a participant_id; to keep only rows that carry a fair price, filter on nvp != null.
Server-Sent Events stream of live drops as they happen. One TCP connection, push-based — no polling. Available on the Stream, Pro + SSE, and Scale plans. Free trial keys and Pro (REST-only) cannot connect, except during a 3-day full demo, which is available on request and also includes the WebSocket feed.
{"type": "evicted", ...}, before it is closed, and the first frame of the newer stream carries "replaced": true (both are shown under control frames and connection answers). /odds-drop and /odds-drop-prematch are separate slots, and the WebSocket is a third, so one of each can run side by side.Why this matters.
EventSource and most SSE libraries reconnect on their own after a close. Two consumers on one key therefore keep replacing each other, each holding the stream for a few seconds, and neither receives a complete feed. A reconnect after a network blip is fine: it replaces only your own dead connection.What to do. Run one consumer per key per endpoint and fan out inside your own process. When you receive
evicted, do not reconnect automatically: another client is using the same key, and two clients that reconnect against each other only keep evicting each other. Find the second process first. After any other close, reconnect with a growing delay (1 s, 2 s, 4 s, up to 30 s) rather than instantly, and close the old connection before opening a new one when you redeploy. Connection attempts are limited to 5 per key per 60 s, so a tight reconnect loop is answered with 429. There is no replay after a reconnect: drops emitted while you were disconnected are not re-sent on the stream (read /api/drops to fill the gap). The same holds after a restart on our side: the stream starts at the live head and older drops are not replayed.If you genuinely need two or more independent connections — e.g. prod + staging, or fan-out across multiple servers — each one needs its own account on its own paid plan: one account, one key. The cap stays at one connection per key — it's how we detect keys being shared or resold — and second keys are never issued free.
Authentication and options. The stream takes your API key, the same one as REST:
| Name | Type | Description |
|---|---|---|
| key | string | Your SaaS API key, in the x-portal-apikey / x-api-key header or as ?key=. Plan must include SSE (Stream / Pro + SSE / Scale). |
| token | string | No longer accepted. Separate SSE tokens (?token=) were retired; a request that sends one without an API key gets 401 with {"type":"error","error":"invalid_token"} every time. Use your API key in the x-api-key header or as ?key=. |
| min_drop | number | Optional. Drop-percent threshold for THIS subscriber. ?min_drop=7 = only alerts where price fell ≥7%. ?min_drop=1 = receive every drop, including small ones. If omitted you receive every drop the engine detects (the smallest it emits is about 1%). Values below 1 are raised to 1. No upper cap. |
# With your API key (a plan that includes SSE) curl -N "https://pinnodds.com/odds-drop?key=$API_KEY" # Same thing with the key in a header curl -N -H "x-api-key: $API_KEY" "https://pinnodds.com/odds-drop"
// npm i eventsource import EventSource from "eventsource"; const es = new EventSource(`${BASE}/odds-drop?key=${API_KEY}`); es.onmessage = (e) => { const payload = JSON.parse(e.data); if (payload.type === "connected") return; // Another client took the slot of this key: stop, do not auto-reconnect. if (payload.type === "evicted") { es.close(); console.error("evicted:", payload.reason); return; } if (payload.type === "error") { console.error(payload.error, payload.message); return; } for (const drop of payload) { const ev = (drop.to_price / drop.nvp) - 1; if (ev > 0.02) console.log("+EV", drop.sport, drop.home, drop.from_price, "→", drop.to_price); } }; es.onerror = (err) => console.error("sse closed", err);
# pip install sseclient-py requests import json, requests from sseclient import SSEClient resp = requests.get(f"{BASE}/odds-drop?key={API_KEY}", stream=True) for ev in SSEClient(resp).events(): if not ev.data: continue payload = json.loads(ev.data) if isinstance(payload, dict) and payload.get("type") == "evicted": break # another client took the slot of this key: do not auto-reconnect if isinstance(payload, dict) and payload.get("type") in ("connected", "error"): continue for drop in payload: ev_pct = (drop["to_price"] / drop["nvp"]) - 1 if ev_pct > 0.02: print("+EV", drop["sport"], drop["home"], drop["from_price"], "→", drop["to_price"])
package main import ( "bufio"; "encoding/json"; "net/http"; "strings"; "fmt" ) type Drop struct { Home, Sport string; FromPrice, ToPrice, NVP float64 } req, _ := http.NewRequest("GET", BASE+"/odds-drop?key="+API_KEY, nil) req.Header.Set("Accept", "text/event-stream") resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() scanner := bufio.NewScanner(resp.Body) scanner.Buffer(make([]byte, 1024*1024), 10*1024*1024) for scanner.Scan() { line := scanner.Text() if !strings.HasPrefix(line, "data: ") { continue } body := strings.TrimPrefix(line, "data: ") var drops []Drop if err := json.Unmarshal([]byte(body), &drops); err != nil { continue } for _, d := range drops { if ev := d.ToPrice/d.NVP - 1; ev > 0.02 { fmt.Println("+EV", d.Sport, d.Home, d.FromPrice, "→", d.ToPrice) } } }
<?php $ch = curl_init(BASE . "/odds-drop?key=$API_KEY"); curl_setopt_array($ch, [ CURLOPT_HTTPHEADER => ["Accept: text/event-stream"], CURLOPT_TIMEOUT => 0, CURLOPT_WRITEFUNCTION => function($ch, $chunk) { static $buf = ""; $buf .= $chunk; while (($pos = strpos($buf, "\n\n")) !== false) { $line = substr($buf, 0, $pos); $buf = substr($buf, $pos + 2); if (strpos($line, "data: ") !== 0) continue; $payload = json_decode(substr($line, 6), true); if (!is_array($payload) || isset($payload["type"])) continue; foreach ($payload as $d) { $ev = ($d["to_price"] / $d["nvp"]) - 1; if ($ev > 0.02) echo "+EV {$d['sport']} {$d['home']} → {$d['to_price']}\n"; } } return strlen($chunk); }, ]); curl_exec($ch);
# Stream framing (what arrives over the wire)
data: {"type": "connected", "id": "d648beb8-bde8-..."}
data: [{"home": "Sunshine Coast Phoenix", "away": "Cairns Dolphins",
"league": "Australia - NBL1 Women", "from_price": 2.86,
"to_price": 2.7, "outcome": "Home", "period": 4,
"sect": "Moneyline", "id": 1629729400, "sport": "Basketball",
"interval": 25, "alerted": 1777625196, "sport_id": 3,
"nvp": 3.04, "starts": 1777624200, ...}]
Control frames and connection answers
Besides arrays of drops, a stream can send two JSON objects. Everything in this section applies to /odds-drop and to /odds-drop-prematch.
| Frame | When it is sent | What to do |
|---|---|---|
| connected | The first frame of every stream. It carries "replaced": true when this connection took the slot of an older one on the same key; the field is present only when true. | Nothing. If you see replaced and did not expect it, another client of yours was just disconnected. |
| evicted | The last frame of a stream that we close to free its slot. cap says which limit applied: "user" (a newer connection on the same key), "ip" (too many connections from one IP address) or "global" (the connection limit of the server). | On "cap":"user" do not reconnect automatically: another client is using the same key. Two clients reconnecting against each other just keep evicting each other. |
# First frame of a stream that replaced an older one data: {"type": "connected", "id": "d648beb8-bde8-...", "replaced": true} # Last frame of the stream that was replaced data: {"type": "evicted", "reason": "evicted by newer connection", "cap": "user", "limit": 1}
The other two caps use the same frame with "cap":"ip" and reason "too many connections from this IP", or "cap":"global" and reason "server connection limit reached".
Connect limit: 5 attempts per API key per 60 seconds. Further attempts in that window get HTTP 429 with a Retry-After header (seconds) and the same number as retry_after_s in the body. A browser EventSource treats a 429 as fatal and stops retrying by itself, so wait retry_after_s seconds and open a new connection yourself.
HTTP/1.1 429 Too Many Requests
Retry-After: 42
Content-Type: application/json
{"type":"error","error":"rate_limited","message":"Too many connection attempts: max 5 per 60s per API key. Retry in 42s. Hold ONE long-lived connection rather than reconnecting — note that only one concurrent connection per key is allowed, so a second client will evict the first and both will keep reconnecting.","retry_after_s":42}
Refused keys. A 401 says why in its body. A 403 means the key is valid but its plan has no SSE.
# HTTP 401 {"type":"error","error":"missing_key"} {"type":"error","error":"invalid_key"} {"type":"error","error":"expired"} {"type":"error","error":"invalid_token"} # HTTP 403 {"type":"error","error":"plan_lacks_sse"}
missing_key: no key was sent. invalid_key: the key is not recognised (a typo, or an old key after it was regenerated). expired: the key has expired. invalid_token: the retired ?token= parameter was sent without an API key. All of these are ordinary HTTP responses sent before any stream opens, not events on a stream.
After a restart on our side the stream starts at the live head. Drops from before the restart are not replayed; read /api/drops if you need them.
Match state on every drop: the live object
Each live drop ends with a live object: the state of the match at the moment of the drop — score, soccer minute and half, red/yellow cards and corners, basketball quarter and clock, tennis sets/games/points and who is serving, plus the current moneyline favorite. It is the same in-play state as the REST state field, normalised to one shape so you can use it straight from the stream. It is absent only when Pinnacle publishes no state for the event (e.g. most esports). Keys and their meaning: SSE live object reference.
# A soccer drop (abridged) — live is always the last key data: [{"home": "Sagan Tosu", "away": "Kawasaki Frontale", "league": "Japan - League Cup", "from_price": 1.729, "to_price": 1.709, "outcome": "Under", "period": 0, "sect": "Total", "point": 2.0, "id": 1639382748, "sport": "Soccer", "sport_id": 1, "nvp": 1.771, "home_score": 0, "away_score": 0, ..., "live": {"status": "1st Half - 16'", "period": null, "clock": null, "minute": 16, "score": {"home": 0, "away": 0}, "red_cards": {"home": 0, "away": 0}, "yellow_cards": {"home": 0, "away": 0}, "corners": {"home": 0, "away": 1}, "favorite": "away", "updated_ms": 1793182776098, "source_ms": 1793182776964}}] # Basketball: "live": {"status": "4th Quarter - 7'", "period": "Q4", "clock": "7'", "minute": null, # "score": {"home": 75, "away": 76}, "favorite": "away", ...} # Tennis: "live": {"status": "Live Now", ..., "current_set": 3, "sets": {"home": 1, "away": 1}, # "games": {"home": [3, 6, 2], "away": [6, 1, 2]}, # "game_points": {"home": "40", "away": "Ad"}, "server": "away", ...}
{"type":"error","error":"plan_lacks_sse"}. It is a normal HTTP response, not an event on an open stream, and the connection closes. This is expected on a new key: the 3-day full demo is switched on by hand when you ask for it (reply to your welcome email, or message @ArbitrageXpro on Telegram with the email registered on your key). Otherwise upgrade to Stream, Pro + SSE, or Scale. A missing, unknown or expired key gets HTTP 401 with the reason in the body, for example {"type":"error","error":"invalid_key"} (all values are listed above).
Do not retry a 401 or 403 in a loop. Neither answer changes until the key or the plan changes, so a client that reconnects every second only produces thousands of identical rejections. Retry those slowly (once a minute is plenty) and reconnect a dropped stream with a growing delay. On a 429, wait the retry_after_s seconds it names. A stream that answers 200, sends connected and then stays quiet is usually just a quiet market: with ?min_drop= set high there may be no qualifying drop for minutes. The keepalive comment every 8 s shows the connection is open.
Same shape and auth as /odds-drop, but emits drops on the prematch feed only. Useful when you want to trade upcoming-fixture line moves and not be flooded with in-play noise.
Optional query parameter: ?min_drop=N sets the drop threshold for this subscriber, exactly as on /odds-drop: omitted means every detected drop, and values below 1 are raised to 1.
Prematch drops have no live object — the match has not started, so there is no score or clock to report.
One connection per account — see the same warning on /odds-drop. Live and prematch each count as one SSE slot, so you can run one of each in parallel under the default cap. The evicted frame, the connect limit and the 401 / 429 bodies are the same on both streams: see control frames and connection answers.
curl -N "https://pinnodds.com/odds-drop-prematch?key=$API_KEY"
// Identical to /odds-drop integration — only the URL changes. import EventSource from "eventsource"; const es = new EventSource(`${BASE}/odds-drop-prematch?key=${API_KEY}`); es.onmessage = (e) => { const p = JSON.parse(e.data); if (Array.isArray(p)) for (const d of p) console.log(d.sport, d.home, d.from_price, "→", d.to_price); };
import json, requests from sseclient import SSEClient resp = requests.get(f"{BASE}/odds-drop-prematch?key={API_KEY}", stream=True) for ev in SSEClient(resp).events(): p = json.loads(ev.data) if ev.data else None if isinstance(p, list): for d in p: print(d["sport"], d["home"], d["from_price"], "→", d["to_price"])
req, _ := http.NewRequest("GET", BASE+"/odds-drop-prematch?key="+API_KEY, nil) resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() scanner := bufio.NewScanner(resp.Body) scanner.Buffer(make([]byte, 1024*1024), 10*1024*1024) for scanner.Scan() { line := scanner.Text() if !strings.HasPrefix(line, "data: ") { continue } // parse JSON array of drops, same shape as /odds-drop }
<?php // Same WRITEFUNCTION pattern as /odds-drop, just change the URL: $ch = curl_init(BASE . "/odds-drop-prematch?key=$API_KEY"); // ... see the /odds-drop PHP example for the full streaming reader ...
?recheck=N is not supported
The recheck parameter is not supported: the stream ignores it, so every drop is delivered immediately and no rechecked_ms field is added. If you need a stable-price filter, hold each drop on your side and compare it with the current price from /kit/v1/prematch/lines before acting.
WebSocket Feed (Add-on)
Forwards raw Pinnacle frames to your client — not drops, not derived metrics. Live MQTT messages and prematch REST responses delivered byte-identical to what we receive ourselves, wrapped in a thin envelope. Power-user feature for customers who want to rebuild Pinnacle's full state machine on their side.
Latency. Each frame leaves our servers about 5 ms after it reaches us (median 2 ms on the last production run); the ts field on every frame is our publish time, so you can measure the rest yourself. Method, numbers and caveats: how we measure latency.
This is NOT the same as /odds-drop SSE. SSE delivers our filtered drop alerts (every detected drop by default — the engine floor is ~0.99%; narrow it with ?min_drop=). This WS delivers every Pinnacle push frame, including the per-period status (open, closed, settled) on each record. That status tells you a period has stopped trading; it is not a results or settlement feed (see what we don’t provide). Output volume is much higher.
Pricing
- $99/month add-on on top of any REST-bearing plan (Pro, Pro + SSE, Scale).
- Stream and Trial plans are not eligible — they have no REST quota.
- New / renewal checkout: $99 (30d), $297 (90d), $594 (180d) bundled with your base plan.
- Mid-cycle upgrade: prorated to your renewal date — pay only for the days remaining. Quote via your dashboard.
Subscribe protocol
Client must send a subscribe message within 5s of connecting. You can subscribe by sport (firehose) or by specific event_ids (narrow filter), or both in one message:
{ "type": "subscribe",
"streams": ["live", "prematch"],
"sport_ids": [1, 2], // 1=Soccer, 2=Tennis — full firehose for the sport
"event_ids": [1631005165] // Pinnacle matchup IDs — narrow filter, just these events
}
Filter rule: a frame is delivered if its sport_id matches a sport-level sub or its event_id matches an event-level sub. So sport_ids:[2], event_ids:[12345] means "all of Tennis plus this one specific event in any sport". Either field can be omitted but at least one is required.
Discovery pattern: customers don't usually know matchup IDs upfront. Subscribe to a sport first → grep the snapshot for the events you care about (by team name, league, start time) → unsubscribe from the sport, subscribe to those specific event_ids. This narrows bandwidth to exactly the matches you're trading.
Live only (optional): the live stream also carries Pinnacle’s prematch pushes (topic ending in /pre) for the sports you subscribe to. Pinnacle re-sends a large batch of these about every 2 minutes (several MB for US football). Add "live_only": true to your subscribe message to leave them out and receive in-play updates only. The last subscribe that sets it applies to the whole connection; "live_only": false turns it off again. Without it nothing changes.
Per-stream cap: 200 event_ids per connection per stream. Subscribing past the cap returns {type:"error", code:"event_id_cap", ...} and the request is rejected wholesale. The hub auto-clears event_ids from your sub when Pinnacle removes the event (op:"del"), so you don't need to send unsubscribe yourself.
Server-sent messages
Immediately after each subscribe, one snapshot per subscription group:
// Sport-level subscribe → one snapshot per (stream, sport_id) with every // event currently in our store for that sport. { "type": "snapshot", "stream": "live", "sport_id": 1, "events": [ /* full Pinnacle records, untouched */ ], "ts": 1779200000000 } // Event-level subscribe → one snapshot per batch of event_ids, with just // the records we currently have. Missing IDs appear in the stream once // Pinnacle pushes them. { "type": "snapshot", "stream": "live", "event_ids": [1631005165], "events": [ /* full Pinnacle records, untouched (one per matched id) */ ], "ts": 1779200000000 }
Large snapshots arrive in multiple frames. A big baseline (e.g. prematch soccer, thousands of events) is split across several snapshot frames so no single message overruns your client's max-message limit. The split frames carry "seq" (0, 1, 2, …) and "final" (true only on the last); a small baseline that fits in one frame is sent as a single snapshot with no seq/final. Merge each frame's events into your book by event id (the same way you apply the deltas that follow) and you need no special handling. If instead you rebuild your book from the snapshot wholesale, wait for final: true before treating the baseline as complete.
// A split (chunked) snapshot — merge events from every frame until final:true. { "type": "snapshot", "stream": "prematch", "sport_id": 1, "seq": 0, "final": false, "events": [ /* first chunk */ ], "ts": 1779200000000 } { "type": "snapshot", "stream": "prematch", "sport_id": 1, "seq": 1, "final": true, "events": [ /* last chunk */ ], "ts": 1779200000000 }
Then continuous frames as Pinnacle pushes / we poll:
// Live MQTT — `topic`, `op`, `rec` exactly as we received from Pinnacle. { "type": "live", "sport_id": 1, "topic": "matchups/reg/sp/29/live/ld", "op": "upd", "rec": { /* Pinnacle record verbatim */ }, "ts": 1779200000123, // when we published the frame to you "recv_ts": 1779200000122 } // when we received it from Pinnacle // Prematch REST poll responses — `data` is the response array verbatim. { "type": "prematch_matchups", "sport_id": 1, "arcadia_sid": 29, "data": [ /* /sports/29/matchups response verbatim */ ], "ts": 1779200005000, "recv_ts": 1779200004998 } { "type": "prematch_markets", "sport_id": 1, "arcadia_sid": 29, "matchup_id": 1631005165, "data": [ /* /matchups/.../markets/related/straight verbatim */ ], "ts": 1779200005230, "recv_ts": 1779200005228 } // Membership delta — what JOINED or LEFT the prematch set this cycle. // MQTT never announces this: /pre carries prices for matchups you already // track, and is blind to the set itself. Measured over 10 min across all 13 // sports: 34 membership changes, 0 announced by MQTT. This frame is the only // timely signal — including when a matchup leaves prematch for warmup/live. { "type": "prematch_membership", "sport_id": 1, "arcadia_sid": 29, "added": [ 1634753718, 1634753879 ], "removed": [ 1634713508 ], "ts": 1779200005010, "recv_ts": 1779200005008 } // Heartbeat every 30s — reply with {"type":"pong"} or socket closes after ~75s. // buffered_max_bytes = the highest server-side send backlog for YOUR socket // since the previous ping, then reset. Steady-state 0 means you are draining // as fast as we send; a number that climbs across pings means your read loop // is falling behind, and at 128 MB you are evicted with // 1011 "deregistered: slow_consumer". Track it to see headroom, not just breaches. // The ping also reports the health of the feed (feed_age_ms, feed_status, // per-sport ages, upstream): the full frame and its fields are described below. { "type": "ping", "ts": 1779200030000, "buffered_max_bytes": 0, "feed_age_ms": 460, "feed_status": "ok", /* ...more feed-health fields */ }
Fidelity contract. events, rec, and data are never transformed. We only add envelope fields (type, stream, sport_id, topic, op, ts, recv_ts). Your code can reuse a Pinnacle parser unchanged.
Two times on every forwarded frame. live, prematch_ws, prematch_markets, prematch_membership and prematch_matchups frames carry recv_ts right after ts, both in epoch milliseconds. recv_ts is when we received the message from Pinnacle; ts is when our WebSocket server published it to you. ts - recv_ts is the delay inside our system. Neither is a Pinnacle-side time: none exists (see every time field).
Corrections: "source":"rest". Most live frames are Pinnacle pushes. When our REST check finds markets where Pinnacle's REST is ahead of what its push delivered, we send those markets as an ordinary live frame with one extra field at the end, "source":"rest". It has the same shape as a push frame and carries whole market groups (type, period, side), so apply it exactly like any other live frame. Frames without the field came from the push. If your parser rejects unknown fields, allow this one.
ping we send every 30 seconds now says how long ago Pinnacle last pushed anything to us, for the whole feed and for each sport you are subscribed to, and how our connection to Pinnacle is doing. A real frame:
{"type":"ping","ts":1794272148169,"buffered_max_bytes":0,"feed_age_ms":460,"feed_status":"ok","sport_age_ms":{"1":2947,"2":63480,"3":3443},"prematch_age_ms":460,"prematch_sport_age_ms":{},"prematch_poll_age_ms":5540,"upstream":{"status":"degraded","reason":"rest_ahead","ts":1794272147156,"sports":{"1":"ok","2":"rest_ahead","3":"ok"}}}
| Field | Type | Meaning |
|---|---|---|
| feed_age_ms | int | null | The ts of the ping minus the time we received the last push of any kind from Pinnacle. null until the first push after a restart of our WebSocket server. |
| feed_status | string | "ok", "silent" (no push of any kind for 90 seconds) or "unknown". |
| sport_age_ms | object | The same age for each sport, keyed by our sport id. Only the sports this socket is subscribed to are listed. null means no push for that sport since our WebSocket server started. |
| prematch_age_ms | int | null | Age of the last prematch push. |
| prematch_sport_age_ms | object | Age of the last prematch push for each sport you are subscribed to, with the same keys and the same null rule as sport_age_ms. |
| prematch_poll_age_ms | int | null | Age of the last record from our poll of the prematch board. |
| upstream | object | null | How our connection to Pinnacle is doing. Can be null right after a restart of our WebSocket server. |
| upstream.status | string | "ok", "degraded" or "reconnecting". |
| upstream.reason | string | null | null, or one of mqtt_reconnecting, sport_reconnecting, rest_ahead, maintenance, booting, source_unavailable. |
| upstream.sports | object | Our sport id → "ok", "reconnecting" or "rest_ahead". rest_ahead means the REST side of Pinnacle shows newer prices than its push stream for that sport; we then resync that sport from REST and reconnect its stream. |
feed_statusis"silent";upstream.statusis anything other than"ok";sport_age_msis large for a sport that has live events right now.
Ignore fields you do not know. More fields may be added to the ping later; a client must not fail on an unknown one.
prematch_membership — use this to track the set.
MQTT /pre is a price channel. It carries updates for matchups already in your set and is
structurally blind to the set’s boundaries — it never says “this fixture now exists” or
“this one is gone”. Measured on production over 10 minutes across all 13 sports:
34 membership changes, 0 announced by MQTT.
A client relying on prematch_ws alone therefore misses new fixtures entirely and
holds removed ones as live odds forever. It is also why push goes quiet for a matchup that has moved to
warmup/live: that transition is a membership change, and MQTT does not report it.
prematch_membership answers the same question as the full board at roughly
1/50,000th the bytes, every cycle (~25 s) instead of every 10 minutes.
Recommended consumption: take the snapshot chunks as your baseline → apply
prematch_ws for prices → apply prematch_membership (fetch details for
added, drop removed) → ignore prematch_matchups unless you
specifically want the periodic full resync. Complete, and never transfers a ~19 MB board.
Frame flow on firehose subs. live, prematch_matchups and prematch_markets frames all flow on sport_ids subscriptions exactly the same way they do on event_ids subscriptions. There's no event-id-only mode — the filter is identical, only the criterion (whole sport vs. specific ids) changes.
ld, dz and both. Which channel a live frame came from is the last segment of its topic — e.g. matchups/reg/sp/29/live/ld. The channel is the matchup's liveMode in Pinnacle's own feed, and every channel arrives on your one WebSocket.
ld— live_delay. Every sport except soccer is live onldonly: nodzand nobothframes exist for basketball, tennis, American football, hockey, esports and the rest. That is how Pinnacle publishes them, on every plan.dz— danger_zone, andboth: soccer only. A live soccer match is usually published as two or three child matchups with the sameparentId, one per channel (ld,dz,both), and some matches are live ondzalone. In soccer these channels carry most of the live traffic:dz+bothwere 67–80% of soccer's live frames on 14–16 Nov 2026. Their prices are often the same asld's at the same moment, but not always.pre— a prematch price update that arrives withtype:"live"because it comes down the same push connection. It is not live state. Ignore every frame whosetopicends in/prewhen you build your live book. (The same updates reach prematch subscribers asprematch_wsframes.) At busy times these are a large share of the frames a live subscriber receives, and merging them leaves entries in your book for events that are not in play.
const channel = msg.topic.split("/").pop(); ("ld" | "dz" | "pre").
Keep the channels apart: key your book on event_id + channel, and for soccer read ld where the match has it (dz where it is the only one). Merging the channels into one book makes the price appear to “spike and revert” — that’s the channels interleaving, not a line move and not out-of-order delivery (each single market’s stream is strictly ordered; verify with rec.version per event_id+channel). This split is live only — prematch has no danger_zone.
event_id, not by teams. Pinnacle issues a live match as a parent matchup plus re-issued/related child matchups, all sharing the same rec.parentId and the same team names. The same market (identical market key, e.g. s;0;s;-1.5) can therefore appear under two different event_ids at the same time — one live, one stale/closing — with different prices.
- Key your book by
rec.id(the matchup/event id) + marketkey— never by team names orparentId. If you merge markets across matchup ids, the two ids’ prices interleave and the market appears to “spike and revert” even though each individual matchup’s stream is perfectly stable and strictly ordered. That’s an assembly artifact, not a line move — pinnacle.com and our REST/kitendpoints don’t show it because they collapse to one canonical matchup per fixture. - Dedupe on the market
version. We forward every upstream frame verbatim, and Pinnacle re-sends unchanged markets frequently (samemarkets[i].version, same price — often >50% of updates). Skip a market whoseversionyou’ve already applied for that same event, market key and channel to drop that noise. Do not compare versions across events or markets: the number is shared (see the next box).
/kit/v1/markets) which already do this.
markets[i].version for change-detection, NOT rec.version. A live record carries a top-level rec.version AND a version on each market, and they behave differently:
rec.versionis a coarse record/board stamp. Pinnacle freezes it for the whole match once a fixture is in-play — it does not change when a price changes. Keying dedup or ordering on it will make live prices look like they “change under a frozen version” and cause you to drop real price updates.markets[i].versionis a change stamp that Pinnacle shares across many markets. It is not a counter that belongs to one market: when Pinnacle reprices, it stamps the same number on every market it touched, often across several events (in one measured hour, 45% of the version values appeared on more than one event). What you can rely on: within one event, one marketkeyand one channel, a higher number is newer, and the same number with the same price is a repeat. That makes it right for dedup and ordering inside that scope, and wrong as an identifier.- It is not a line id.
markets[i].versionis not thelineIdthat the PS3838 / Pinnacle betting API asks for when you place a bet, and it must not be sent as one. We do not providelineIdoraltLineId: those fields do not exist in this feed, on the WebSocket or on REST. If you place bets through a betting API, fetch the line id from that API with your own account immediately before you bet.
rec.version stays constant, that is not a re-published/stale frame — check markets[i].version, which will have advanced. A spike-then-revert whose intermediate frame has a higher market version is a genuine transient Pinnacle reprice (relayed verbatim), not a replay.
Two more fields on each raw market object.
isAlternate (boolean) is false on the main line of a spread or total and true on the alternate lines; moneylines carry false, and it is absent on special markets, so treat a missing value as unknown. key is Pinnacle’s own identifier for the market within the event, e.g. s;0;s;-1.5 (straight, period 0, spread, home −1.5) or s;0;ou;4.5; use it together with rec.id as your book key. By default the REST /kit responses do not carry version or isAlternate: every spread and total line is listed under its points value without a main/alternate flag. Add line_meta=1 to a per-event REST call (/kit/v1/details, /kit/v1/prematch/markets, /kit/v1/prematch/lines) and each line carries version, is_alternate and key there too. That version is the same change stamp, and it is not a line id either.
Need a second connection? The extra WebSocket connection add-on in your panel adds one more live and one more prematch connection on the same key, for example for a second server. $99 per 30 days for each extra connection, prorated to the end of your current term, up to 3 extra per account. It needs the WebSocket add-on.
Opening a second connection does not fail the new connection — the newer connection replaces the older one, which is closed with
close code 1001, reason "evicted by newer connection".
The new connection is not told that it displaced another one, and there is no endpoint that shows how
many connections your account holds, so log close codes on every socket you open.
This is the most common cause of “the socket goes silent for long stretches while REST stays healthy”. The trigger is usually not a deliberate second consumer, but a monitoring or logging process sharing the key, a deploy where the new instance connects before the old one closes, or a retry loop that reconnects without closing the previous socket. Two consumers on one account kick each other continuously, and whichever socket lost the race receives nothing.
Supported pattern: open one connection and fan out to your components inside your own process — this also guarantees your components share an identical view of the book. If you need transport-level separation, contact us about a second credential.
Reconnecting. On
1001 "evicted by newer connection" do not reconnect
automatically: another consumer on your account now holds the slot, and reconnecting takes it back and
starts a loop. Find the second consumer first. On any other close, reconnect with a growing delay
(1 s, 2 s, 4 s, up to 30 s) and close the old socket before opening a new one. More
than 5 connection attempts in 60 s are answered with HTTP 429 at the handshake, so
a tight reconnect loop locks itself out for up to a minute.
Close codes:
1001 "evicted by newer connection" ·
1001 "stale" (no pong for 75 s) ·
1001 "server shutdown" ·
1011 "deregistered: <cause>" ·
1006 with no reason (abnormal close — historically an oversized frame exceeding your
client's max-message limit).
On
1011 "deregistered: …". This means a server-side fault dropped you out of the
fan-out — a failed write, or backpressure eviction. Causes seen today are
deregistered: send_err, deregistered: send_threw and
deregistered: slow_consumer. Match on the deregistered: prefix, not on
the full string, so any cause added later is still caught. It is deliberately outside the 1001
lifecycle family so you can distinguish "we closed you on purpose" from "something broke". Treat it
as retryable: reconnect immediately, no cooldown needed.
permessage-deflate is negotiated per connection, so your client decides.
What it costs. Compression uses context takeover, which makes it a strictly serial per-connection pipeline: every message waits for the previous message's zlib job. Pinnacle pushes in mass-update cycles, and during those bursts the compression queue backs up — frames already carrying their
ts get compressed and flushed together, so you receive a burst of frames
whose timestamps span more than a second. Measured back-to-back on the same subscription
(soccer + tennis live, ~62 frames/s, from a client with ample bandwidth),
local_recv − ts:
| deflate on | deflate off | |
|---|---|---|
| p50 | 43 ms | −46 ms |
| p95 | 748 ms | 136 ms |
| p99 | 1241 ms | 187 ms |
| max | 1527 ms | 228 ms |
| frames > 1 s | 2.14 % | 0.00 % |
How to choose. Stable connection, bandwidth not your limit → turn it off, the tail disappears. Far from the server, thin link, or many sports at high volume → leave it on. Don't guess — measure
local_recv − ts percentiles both ways on your own path.
Defaults differ by language: Python's
websockets is on by default
(compression=None to disable); Node's ws ({ perMessageDeflate: true })
and Go's gorilla/websocket (EnableCompression: true) are off by default.
Same URL, same JSON either way — decompression is transparent.
prematch_matchups 512 KB and snapshot 512 KB (both chunked, bounded
by construction); prematch_markets 32 KB and live 13 KB (not
chunked, scoped to a single event).
Before 2026-07-22 19:48 UTC these frames were not chunked — the soccer snapshot reached ~19 MB and the bulk
prematch_matchups frame ~10 MB, so any client whose
limit sat below that had the socket dropped with 1006 and no close frame.
Example clients
# npm i -g wscat — quick CLI client for ad-hoc inspection wscat -c "wss://pinnodds.com/ws/feed?key=$API_KEY" # then paste a subscribe frame at the prompt: {"type":"subscribe","streams":["live"],"sport_ids":[1,2]}
// npm i ws import WebSocket from "ws"; // Compression adds a ~1.2s p99 tail during mass-update bursts — leave it OFF // unless bandwidth is your bottleneck. maxPayload 8 MB clears the 512 KB chunk ceiling. const ws = new WebSocket(`wss://pinnodds.com/ws/feed?key=${API_KEY}`, { perMessageDeflate: false, maxPayload: 8 * 1024 * 1024 }); ws.on("open", () => { ws.send(JSON.stringify({ type: "subscribe", streams: ["live", "prematch"], sport_ids: [1, 2], // firehose Soccer + Tennis event_ids: [1631005165], // plus this specific matchup })); }); ws.on("message", (raw) => { const msg = JSON.parse(raw); switch (msg.type) { case "ping": ws.send(JSON.stringify({type:"pong"})); break; case "snapshot": console.log(`snapshot ${msg.stream}: ${msg.events.length} events`); break; case "live": console.log(`live event=${msg.rec.id} op=${msg.op}`); break; case "prematch_matchups": console.log(`matchups sport=${msg.sport_id} n=${msg.data.length}`); break; case "prematch_markets": console.log(`markets event=${msg.matchup_id} n=${msg.data.length}`); break; case "error": console.error(msg.code, msg.message); break; } }); ws.on("close", (code) => console.error("closed", code));
# pip install websockets import asyncio, json, os, websockets async def main(): url = f"wss://pinnodds.com/ws/feed?key={os.environ['API_KEY']}" # websockets enables compression BY DEFAULT — it serializes sends and adds a # ~1.2s p99 tail during mass-update bursts. Pass compression=None unless your # link (not our server) is the bottleneck. max_size clears the 512 KB chunk ceiling. async with websockets.connect(url, compression=None, max_size=8 * 1024 * 1024) as ws: await ws.send(json.dumps({ "type": "subscribe", "streams": ["live", "prematch"], "sport_ids": [1, 2], "event_ids": [1631005165], })) async for raw in ws: msg = json.loads(raw) t = msg["type"] if t == "ping": await ws.send(json.dumps({"type": "pong"})) elif t == "snapshot": print(f"snapshot {msg['stream']}: {len(msg['events'])} events") elif t == "live": print(f"live event={msg['rec']['id']} op={msg['op']}") elif t == "prematch_matchups": print(f"matchups sport={msg['sport_id']} n={len(msg['data'])}") elif t == "prematch_markets": print(f"markets event={msg['matchup_id']} n={len(msg['data'])}") elif t == "error": print("error", msg["code"], msg.get("message")) asyncio.run(main())
// go get github.com/gorilla/websocket package main import ( "encoding/json"; "fmt"; "log"; "os" "github.com/gorilla/websocket" ) func main() { url := "wss://pinnodds.com/ws/feed?key=" + os.Getenv("API_KEY") // EnableCompression stays false: it serializes sends and adds a ~1.2s p99 tail. // Turn it on only if your link (not our server) is the bottleneck. dialer := websocket.Dialer{EnableCompression: false} ws, _, err := dialer.Dial(url, nil) if err != nil { log.Fatal(err) } defer ws.Close() sub := map[string]any{ "type": "subscribe", "streams": []string{"live", "prematch"}, "sport_ids": []int{1, 2}, "event_ids": []int64{1631005165}, } if err := ws.WriteJSON(sub); err != nil { log.Fatal(err) } for { _, raw, err := ws.ReadMessage() if err != nil { log.Fatal(err) } var msg map[string]json.RawMessage if err := json.Unmarshal(raw, &msg); err != nil { continue } var t string; json.Unmarshal(msg["type"], &t) switch t { case "ping": ws.WriteJSON(map[string]any{"type":"pong"}) case "snapshot": fmt.Println("snapshot", string(msg["stream"])) case "live": fmt.Println("live", string(msg["rec"])[:60]) case "error": fmt.Println("error", string(msg["code"])) } } }
// composer require textalk/websocket <?php use WebSocket\Client; $ws = new Client("wss://pinnodds.com/ws/feed?key=" . $_ENV["API_KEY"]); $ws->send(json_encode([ "type" => "subscribe", "streams" => ["live", "prematch"], "sport_ids" => [1, 2], "event_ids" => [1631005165], ])); while (true) { $raw = $ws->receive(); $msg = json_decode($raw, true); switch ($msg["type"]) { case "ping": $ws->send(json_encode(["type"=>"pong"])); break; case "snapshot": echo "snapshot {$msg['stream']}: " . count($msg["events"]) . " events\n"; break; case "live": echo "live event={$msg['rec']['id']} op={$msg['op']}\n"; break; case "error": fwrite(STDERR, "error: {$msg['code']} {$msg['message']}\n"); break; } }
Frame semantics — how to read what we forward
Pinnacle pushes incremental updates over MQTT. Once you start receiving frames, the op, topic, and inner rec/data shape determines how to merge into your local state.
Live frames — type:"live"
| Field | Type | Meaning |
|---|---|---|
| op | string | add = new event or new markets appeared. upd = incremental change: the frame carries only the market groups that changed (see rec.markets), so replace those groups and keep the rest. del = event removed by Pinnacle (it has finished, been cancelled or been withdrawn) — drop your local copy. Pinnacle does not send del for every event that ends, and a del carries no result. |
| topic | string | Source topic. Format: matchups/reg/sp/{arcadia_sid}/live/{ld|dz|both} for live, matchups/.../pre for prematch.ld = live_delay: the live channel of every sport, and the only one outside soccer.dz = danger_zone and both: soccer only. Each is a separate child matchup of the same match (same parentId), not a list of alternative lines; some soccer matches are live on dz alone.pre = a prematch update. Ignore frames whose topic ends in /pre when building live state.matchups/spc/... instead of reg means a "special" matchup (props, futures). See Live channels: ld vs dz above for how to use the two channels. |
| rec.id | int | Pinnacle matchup ID. Stable across the event's lifetime. |
| rec.markets | array | A SUBSET on op:"upd": Pinnacle sends only what changed, and it sends it one whole group at a time. A group is every market with the same type, period and side (for example all full-match spread lines, or all first-half totals). Group-replace: for every group that appears in the frame, drop all of your local markets of that group and insert the ones in the frame that are open (status absent or "open"). Leave groups that are not in the frame untouched. Do not merge line by line: a line that is missing from a group that is in the frame has been withdrawn, and a per-line merge keeps it forever. A market object with a non-open status practically never arrives on live, so do not wait for one as a close signal; withdrawn lines are simply absent. |
| rec.periods | array | Per-period status. periods[n].status === "closed" or "settled" closes ALL markets for that period — drop those locally too, even if they weren't listed in markets. "settled" here means Pinnacle has stopped trading the period; the frame carries no result and no grading, so this is not a settlement feed. |
| rec.parentId | int? | If present, this is a CHILD matchup (alt periods, props derived from a parent event). Its full metadata (participants, league) lives on the parent record. |
| rec.startTime, status | string | Event-level metadata. Tennis / Golf / Fights frequently see startTime updates without any market change (reschedules) — track these to surface to your users. |
Prematch frames — prematch_matchups + prematch_markets
| Field | Type | Meaning |
|---|---|---|
| type | string | prematch_matchups = response from /sports/{sid}/matchups. The full per-sport matchup list, sent once per board poll cycle (currently every 25–45 s). Prematch price changes arrive sooner, the moment Pinnacle pushes them, as prematch_ws frames. Includes both prematch and live entries — filter by data[i].isLive === false if you want strict prematch.prematch_markets = response from /matchups/{id}/markets/related/straight. Fired only when Pinnacle bumped matchup.version, so roughly the events that had market activity in the last cycle. |
| data | array | For prematch_matchups: array of full matchup records (event metadata). For prematch_markets: array of market objects scoped to one matchup.This is the authoritative current snapshot from Pinnacle — any market in your local store that's NOT in this list has been closed by Pinnacle. Drop it. For a large sport (e.g. soccer) this frame is split into several chunks tagged seq/final (same as the subscribe snapshot); when chunked, the authoritative set is the union across the whole chunk group — accumulate until final: true before dropping anything. |
| matchup_id | int | (prematch_markets only) The matchup this markets array belongs to. |
| mode | string? | Present only when MQTT is down and we fell back to live REST polling. Value: "rest_fallback". Frame shape is otherwise identical, so customers usually ignore this field. |
Merge recipe (pseudocode)
// Maintain a Map<matchupId, MatchupState>. For each incoming frame: if (msg.type === "snapshot") { for (const ev of msg.events) state.set(ev.id, ev); } if (msg.type === "live") { // 1. Prematch pushes also arrive as type "live". They are NOT live state. if (msg.topic.endsWith("/pre")) return; // 2. Event removed. if (msg.op === "del") { state.delete(msg.rec.id); return; } const existing = state.get(msg.rec.id) ?? {}; const merged = { ...existing, ...msg.rec }; let markets = existing.markets ?? []; // 3. GROUP-REPLACE. For every group (type|period|side) present in the frame, // drop all local markets of that group, then insert the frame's open ones. // Groups the frame does not mention stay exactly as they were. if (msg.rec.markets) { const touched = new Set(msg.rec.markets.map(groupKey)); markets = markets.filter(m => !touched.has(groupKey(m))); for (const m of msg.rec.markets) if (isOpen(m)) markets.push(m); } // 4. Periods the frame reports as closed or settled lose all their markets. if (msg.rec.periods) { const closed = new Set(msg.rec.periods .filter(p => p.status === "closed" || p.status === "settled").map(p => p.period)); if (closed.size) markets = markets.filter(m => !closed.has(m.period ?? 0)); } merged.markets = markets; state.set(msg.rec.id, merged); } if (msg.type === "prematch_markets") { // AUTHORITATIVE snapshot for one matchup — replace, don't merge. const existing = state.get(msg.matchup_id) ?? {}; state.set(msg.matchup_id, { ...existing, markets: msg.data }); } function groupKey(m) { return `${m.type}|${m.period ?? 0}|${m.side ?? ""}`; } function isOpen(m) { return !m.status || m.status === "open"; } }
- Withdrawn and suspended lines. Pinnacle does not push a close for a single line or a whole group that it takes down. On REST the line disappears at the next re-read; on the WebSocket nothing arrives. Most of these are short suspensions: the line is usually back within 15–30 seconds, often at the same price.
- Skipped repricings. At busy times Pinnacle’s push leaves out some intermediate price changes for an event and catches up later. REST can show a newer price for that market for some seconds, occasionally longer. When we detect this for a sport, the ping reports
rest_aheadfor it. - Events that end without a
del. Pinnacle sendsdelfor only some finished events. Do not expire events on a timer of your own: a quiet or suspended live event is still in play and still served on REST.
- From REST:
GET /kit/v1/markets?sport_id=<id>&event_type=live(or/kit/v1/details?event_id=for a few events). Remove the events and lines REST no longer lists, and take its price wherever it differs from yours. - On the WebSocket itself: send
unsubscribefor the sport and thensubscribeagain. The newsnapshotis the same reconciled state REST serves, in the raw record shape; replace your copy of that sport with it. Sendingsubscribeagain for a sport you are already subscribed to does nothing, so the unsubscribe is required.
Reconnect strategy. Re-subscribe on reconnect. Server-side state is not preserved — the snapshot at the start of every connection is your sync point. Exponential backoff (1s → 2s → 4s → 30s cap) recommended. One connection per account on this endpoint (separate slot from SSE — you can run both; a second WS connection replaces the first, which is closed with code 1001 "evicted by newer connection"; do not auto-reconnect on that reason).
Limits & error frames
| Error / behavior | Trigger | What to do |
|---|---|---|
| sport_id_cap | More than 32 sport_ids in one subscribe | Split into batches (there are ~14 real sports — you'll rarely hit this) |
| event_id_cap | More than 200 tracked event_ids per stream | Unsubscribe finished events; slots auto-free on op:"del" |
| subscribe_rate_limited | More than 30 subscribe messages per 10 s | Batch sports/events into fewer subscribe messages |
| backpressure | Subscribe while your connection is backlogged (>32 MB unsent) | The sport was NOT subscribed — drain, then resubscribe |
| snapshot_failed | We could not build the baseline snapshot for one stream and sport in time | That sport was NOT subscribed (your other subscriptions are unaffected). Send the subscribe for it again after a short pause, with a growing delay if it repeats |
| slow_consumer (close) | Unsent buffer exceeds 128 MB — you're reading too slowly | Connection is closed; reconnect and read faster / subscribe narrower |
| rate_limited (HTTP 429) | More than 5 connection attempts in 60 s | Back off per Retry-After; don't reconnect in a tight loop |
| plan_lacks_ws (HTTP 403) | WS add-on not active on the account | Purchase the add-on in the dashboard. On a new free key this is expected until a 3-day full demo is switched on for it (on request). Retrying does not change the answer |
| invalid_json / invalid_message / unknown_message_type | Malformed client message | Fix the message shape — see subscribe example above |
| unauthorized (HTTP 401) | Key missing or not recognised (for example after it was rotated) | Fix the key. Retrying does not change the answer |
403 error code: 1010 (plain text) | Cloudflare rejected the handshake because of the client's User-Agent (default Python-urllib and similar) | Set an explicit User-Agent on the handshake. Common WebSocket libraries already send one that passes |
| No answer at all (request hangs) | The request stalls after the TLS handshake and never gets a status | This happens before the request reaches us. From the affected machine run curl -v https://pinnodds.com/ping and curl -v https://ws.pinnodds.com/ping, and send us both outputs with the time (UTC) and the cf-ray header if one is returned |
You can also send {"type":"unsubscribe", "streams":[…], "sport_ids":[…]}; every subscribe/unsubscribe is acknowledged with a {"type":"subscribed"|"unsubscribed", "stream", "sport_id"} frame — treat the ack (plus the snapshot) as confirmation, not the send itself.
SportsMeld — team & event matching Free 30-day trial
SportsMeld is our separate entity-resolution service: it decides whether two team/player names refer to the same real-world entity ("Man Utd" = "Manchester United" ≠ "Man City"), and clusters the same fixture across bookmaker feeds. Use it to join this API's Pinnacle names to any other book you consume — no hand-maintained alias tables. 8 sports, high-precision hybrid ML pipeline, cached lookups in sub-millisecond time.
It runs on its own base URL with its own key (not your pinnodds key):
Authorization: Bearer sportsmeld_... against
https://sportsmeld.arbitragex.pro. Full reference:
sportsmeld.arbitragex.pro/docs.
Name matching — one reference vs candidate names:
POST https://sportsmeld.arbitragex.pro/api/match { "reference": "Manchester United", "names": ["Man Utd", "Man City", "MUFC"], "sport": "soccer" } // → details[]: { name, match: true|false, confidence, ambiguous, method }
Fixture matching — cluster the same game across 2+ books:
POST https://sportsmeld.arbitragex.pro/api/match-events { "sport": "soccer", "sources": [ { "name": "pinnodds", "events": [{ "id": "1632373638", "left": "Manchester United", "right": "Liverpool FC", "timestamp": 1720008000 }] }, { "name": "bet365", "events": [{ "id": "b77", "left": "Man Utd", "right": "Liverpool", "timestamp": 1720008000 }] } ] } // → matched[] clusters (ids echoed back), partial[], unmatched{}, stats // timestamps optional; when both sides have one, matches only within ±12h
Launch offer: every pinnodds user gets a free 30-day trial on the scout tier —
15 req/s, 25 names per /api/match call, 5 sources & 500 events/source on
/api/match-events. Free during launch; paid plans later.
Claim it yourself in your panel (Subscription card → "Get your free key")
— the key is shown once and emailed to your account address, and you can rotate it from the
panel any time (rotation never changes your expiry).
Questions? Telegram @ArbitrageXpro.
MCP server Claude · Cursor · Codex · VS Code
pinnodds ships a remote Model Context Protocol server so an AI assistant can query Pinnacle odds with your existing API key. Add one URL to your client and ask in plain language: “which Premier League games are live and what are the totals?”, “show me the biggest odds drops in tennis in the last 10 minutes”, “how much of my daily quota is left?”
Streamable HTTP, stateless, POST only. Two ways to authenticate, both backed by your ordinary pinnodds API key — calls count against the same plan limits and appear in your panel like any other request:
- OAuth 2.1 (claude.ai, and any client that supports it): the client discovers
/.well-known/oauth-protected-resource, you approve once on the pinnodds authorization page by entering your key, and the client receives a short-lived token with automatic refresh. - Bearer API key (Claude Code, Cursor, VS Code, Codex, the Claude API): send the key directly.
Authorization: Bearer YOUR_PINNODDS_KEY # or the OAuth access token
Connect your client
claude mcp add --transport http pinnodds https://mcp.pinnodds.com/mcp \
--header "Authorization: Bearer $PINNODDS_KEY"
Then /mcp inside Claude Code shows pinnodds connected with 8 tools. Team-wide: put the same entry in .mcp.json with "Authorization": "Bearer ${PINNODDS_KEY}" so the key stays in the environment.
Settings → Connectors → Add custom connector
Name: pinnodds
URL: https://mcp.pinnodds.com/mcp
Leave the OAuth client fields empty → Add → Connect
claude.ai opens the pinnodds authorization page; enter your API key once and approve. The connector then holds a short-lived token (refreshed automatically) — your key itself never leaves pinnodds. Revoke by removing the connector.
{
"mcpServers": {
"pinnodds": {
"type": "http",
"url": "https://mcp.pinnodds.com/mcp",
"headers": { "Authorization": "Bearer YOUR_PINNODDS_KEY" }
}
}
}
Claude Desktop → Settings → Developer → Edit Config.
// ~/.cursor/mcp.json (or .cursor/mcp.json in a project) { "mcpServers": { "pinnodds": { "url": "https://mcp.pinnodds.com/mcp", "headers": { "Authorization": "Bearer YOUR_PINNODDS_KEY" } } } }
// .vscode/mcp.json { "servers": { "pinnodds": { "type": "http", "url": "https://mcp.pinnodds.com/mcp", "headers": { "Authorization": "Bearer ${input:pinnodds-key}" } } }, "inputs": [{ "id": "pinnodds-key", "type": "promptString", "password": true, "description": "pinnodds API key" }] }
# ~/.codex/config.toml [mcp_servers.pinnodds] url = "https://mcp.pinnodds.com/mcp" bearer_token_env_var = "PINNODDS_KEY"
# Messages API — attach the server to a request (MCP connector) "mcp_servers": [{ "type": "url", "url": "https://mcp.pinnodds.com/mcp", "name": "pinnodds", "authorization_token": "YOUR_PINNODDS_KEY" }]
Tools
| Tool | What it does | Quota |
|---|---|---|
list_sports | Sport ids and names. | free |
get_events | Live or prematch events for one sport; filter with query (team/league words), capped rows. | 1 call |
get_event_odds | Moneyline, spreads, totals, team totals for one event and chosen periods. Concise = 5 lines around the main line. | 1 call |
get_prematch_lines | Every alternate line of one market for a prematch event. | 1 call |
get_odds_drops | Recent sharp price drops (steam), filter by sport, market, period, size and age. | 1 call |
get_feed_status | Feed health and freshness. | 1 call |
get_account_usage | Your plan, limits, expiry and requests used today. | 1 call |
search_pinnodds_docs | Search this reference. | free |
rate_limited, it also stops calling upstream until the window resets.
Streams (SSE, WebSocket) are not exposed over MCP — use them directly.
Also listed in the official MCP registry as com.pinnodds/odds. Questions: info@pinnodds.com.
Status
Operational status of both feeds. Useful for dashboards and alerts.
The top-level fields describe the live feed. The nested prematch object describes the prematch feed, which runs as an independent service — one can be degraded while the other is fine, so check both.
{
"status": "healthy", // healthy | degraded — LIVE feed only
"degraded_reason": null,
"live_write_age_ms": 546, // ms since the last live write
"source": "ws", // ws | rest | none
"events_in_store": 145,
"version": 50352678, // same cursor as /kit `last`
"ws_messages": 1768510,
"rest_polls": 149010,
"uptime_s": 138836,
"prematch": {
"enabled": true,
"status": "healthy", // healthy | degraded | unreachable
"degraded_reason": null,
"events_in_store": 15891,
"write_age_ms": 71, // ms since the last prematch write
"version": 50352723,
"source": "ws",
"rest_polls": 104828,
"checked_age_ms": 1204 // age of this prematch reading
}
}
Alerting on this endpoint
statuscovers the live feed only. A prematch problem never changes it — watchprematch.statusseparately.live_write_age_msandprematch.write_age_msare the freshness numbers to alert on. Both normally sit well under a second.prematch.status: "unreachable"means the health check itself could not reach the prematch service. Prematch data may still be fine; treat it as "unknown", not "down".- Deployments without a prematch service report
"prematch": {"enabled": false}and nothing else.
Public liveness probe. Returns ok in plain text. Useful for load balancers and uptime monitors that can't send an auth header.
curl https://pinnodds.com/ping
# ok
Sport IDs
Sport IDs are stable integers — once you've coded against an ID it stays valid. Mapped to Pinnacle's internal sport IDs (e.g. dropping-odds 1 = Pinnacle 29 = Soccer).
| ID | Sport | Pinnacle internal ID |
|---|---|---|
| 1 | Soccer | 29 |
| 2 | Tennis | 33 |
| 3 | Basketball | 4 |
| 4 | Hockey | 19 |
| 5 | Football | 15 |
| 6 | Baseball | 3 |
| 7 | Rugby (Union + League) | 27, 26 |
| 8 | MMA (UFC, Bellator, ONE, etc.) | 22 |
| 9 | Boxing | 6 |
| 10 | Other (Volleyball + Handball, combined) | 34, 18 |
| 11 | Esports (Dota 2, CS2, LoL, etc.) | 12 |
| 12 | Golf (PGA, DP World Tour, LIV — head-to-heads) | 17 |
| 13 | Cricket (T20, ODI, Test — added July 2026) | 8 |
| 14 | Volleyball (the volleyball half of 10) | 34 |
| 15 | Handball (the handball half of 10) | 18 |
Volleyball & Handball (IDs 14 / 15): ID 10 has always returned both sports in one board, and it still does — nothing about sport_id=10 has changed. IDs 14 and 15 are narrower views of that same data, so you can request volleyball without handball. The two overlap ID 10: if you poll 10, 14 and 15 you receive every volleyball and handball event twice. Available on the REST endpoints (/kit/v1/markets, /kit/v1/prematch/*, /api/drops); the WebSocket feed still routes these events under ID 10, and a subscribe for 14 or 15 is rejected rather than silently delivering nothing.
Golf note: Pinnacle exposes Golf as moneyline-only (head-to-head matchups, outright winners). Spreads, totals, and team totals are not provided for Golf — your client should expect spreads, totals, and team_total to be empty objects on Golf events. Drops on Golf will only fire from the Moneyline section.
Market types
Returned inside each event's periods[<num_N>] object.
| Field | Shape | Description |
|---|---|---|
| money_line | { home, away, draw } | 3-way (or 2-way for no-draw sports) match result. Decimal odds. |
| spreads | { "<hdp>": { hdp, home, away, max } } | Handicap markets keyed by the point spread. |
| totals | { "<points>": { points, over, under, max } } | Over/under markets keyed by the total. |
| team_total | { home: {...}, away: {...} } | Primary per-team total line per side. Backward-compatible — only ONE line per side. For all alt lines, use team_totals below. |
| team_totals | { home: { "<points>": {points, over, under, max} }, away: {...} } | ALL alternate team-total lines, keyed by points per side. Use this when Pinnacle exposes multiple lines (e.g. home Over 0.5 / 1.5 / 2.5). |
| meta | object | Per-period meta: current scores, max stakes. |
Event object
{
"event_id": 1628594960,
"sport_id": 1,
"league_id": 2037,
"league_name": "China - Super League",
"starts": "2026-04-17T12:00:00Z",
"last": 1776430365, // serve time, NOT last update — see below
"home": "Yunnan Yukun",
"away": "Tianjin Jinmen Tiger",
"event_type": "live",
"live_status_id": 1,
"parent_id": 1628594613,
"is_have_odds": true,
"is_have_periods": true,
"periods": {
"num_0": {
"number": 0,
"description": "Game",
"money_line": { "home": 2.450, "draw": 3.300, "away": 2.900 },
"spreads": { "-0.5": { "hdp": -0.5, "home": 2.060, "away": 1.820, "max": 500 } },
"totals": { "2.5": { "points": 2.5, "over": 1.900, "under": 1.980, "max": 500 } },
"team_total": { "home": { "points": 1.5, "over": 1.860, "under": 2.000 } },
"team_totals": {
"home": {
"0.5": { "points": 0.5, "over": 1.200, "under": 4.500, "max": 100 },
"1.5": { "points": 1.5, "over": 1.860, "under": 2.000, "max": 100 },
"2.5": { "points": 2.5, "over": 3.200, "under": 1.400, "max": 100 }
},
"away": { /* same shape */ }
},
"meta": { "number": 0, "max_total": 500, "home_score": 0, "away_score": 1 }
},
"num_1": { /* first half */ }
},
"state": {
"match": { "state": 1, "minutes": 23 },
"home": { "score": 1, "redCards": 0 },
"away": { "score": 0, "redCards": 0 },
"home_stats": [{ "period": 0 }, { "period": 1 }],
"away_stats": [{ "period": 0 }, { "period": 1 }]
}
}
Special-market rows (returned only with include_specials=1, or when fetched by their own event_id) additionally carry special, special_category, special_units and special_markets, with an empty periods object — see Player props & specials for the shape. BTTS / Draw No Bet rows keep their historical shape (special + special_outcomes with prices in the money_line slots) and appear regardless of the flag.
last fields are different things.
- Top level (
last/last_call, next tosport_id) is our store's sequence number. It only moves forward, and it is the value you pass tosince=. - Inside each event,
lastis the Unix second at which we rendered the response. It is the same value for every event in the payload and says nothing about when that event's odds moved. Don't compute freshness from it. updated_at(inside each event, on the boards and on the single-event endpoints/kit/v1/details(live) and/kit/v1/prematch/markets) is what you want for freshness: epoch milliseconds of the moment we received the last real change to that event's markets — a price, a line added or removed, or a status. It is our receive time, not a Pinnacle timestamp (none exists), and it is on REST only, not on WebSocket records. Pinnacle re-sending the same prices does not move it. After one of our restarts it starts from the moment we first saw the event again, so treat it as “unchanged since at least”.
Detecting stale prices
Every REST response carries three headers telling you how old the data behind it is. This is the direct answer — read these before anything else.
| Header | Value | Meaning |
|---|---|---|
| X-Data-Status | fresh | Data is current — act on it |
| X-Data-Status | stale | Upstream has gone quiet past our threshold. The board is withheld — you get the ordinary empty shape, not an error, so your client keeps parsing. This is how you tell "no fresh data" apart from "no matches right now" |
| X-Data-Status | unknown | Nothing has been written yet (cold start). Not an outage |
| X-Data-Age-Ms | integer | Age of the newest data on that board, in ms, rounded down to whole seconds. Absent when the age is unknown — never a sentinel like -1 |
| X-Data-Board | live · prematch | Which board the two values above describe, so a client polling both can keep them apart |
curl -sD - -o /dev/null -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/markets?sport_id=29" | grep -i x-data # -> x-data-board: live # -> x-data-status: fresh # -> x-data-age-ms: 0
- These headers describe the whole board, not one event.
X-Data-Age-Msis the time since the newest write anywhere on that board, for any sport. A busy board reads0even if the one match you care about has not moved for minutes. For one event, use itsupdated_at. - They cannot show a stall of the push stream alone. (The WebSocket ping can: see feed health in every ping.) The live board is fed by Pinnacle’s push stream and, about every 15 seconds, by a full re-read of Pinnacle’s live board. Each successful re-read refreshes the age, so
X-Data-Age-Mson the live board normally stays under about 15–20 seconds even while the push stream is silent. It grows only when both have stopped. Treat an age above 60 seconds on the live board as suspect and stop acting on those prices until it recovers; do not wait forstale, which is the point where we withhold the board, minutes later. On the prematch board the full re-read runs every 25–30 seconds (longer when Pinnacle is slow to build its boards), so an age of some tens of seconds is normal there. - Set your own tolerance. Below the withholding threshold you still receive the last known prices, which is usually what you want — a quiet market is not a broken one. If your strategy needs tighter limits, compare
X-Data-Age-Msagainst your own number and skip the cycle yourself. - The
lastfield in the body is NOT a data age. It is our serve cursor and is identical for every event in a response. Use the headers for freshness andlastfor deltas — they answer different questions. - These headers are on REST only; the WebSocket has its own signal. The WebSocket
pingframe, every 30 seconds, carries the age of the last push from Pinnacle for the whole feed and for each sport you subscribe to, afeed_statusthat turns"silent"after 90 seconds without any push, and the state of our connection to Pinnacle. That is what tells a quiet market from a stalled push stream: see feed health in every ping. - The SSE streams carry no data-age signal. The keepalive comment shows that the connection is open, not that prices are flowing. Poll a REST endpoint or
/healthalongside an SSE stream;/healthturnsdegradedwith a reason such asno live write for 900s, and it is driven by the same board-level age, with the same limits. - No signal here can detect prices that are arriving but not moving. If Pinnacle keeps sending while its own prices are frozen, every age above reads fresh. If that matters to you, compare against the live score or a second source.
Every time field, in one table
There is no Pinnacle-side timestamp. Pinnacle’s data carries a version stamp, the scheduled start and a betting cut-off, and nothing that says when a price changed on their side. Every time value we give you is therefore measured on our servers, and nobody outside Pinnacle can give you the other one.
| Field | Where | What it is |
|---|---|---|
| ts | every WebSocket frame | The time our WebSocket server published the frame (epoch ms). It is taken when the frame is sent, so it is normally a few milliseconds after we received the update and can be later when our server is busy. It is not the time Pinnacle changed the price; the time we received it is recv_ts. |
| recv_ts | forwarded WebSocket frames: live, prematch_ws, prematch_markets, prematch_membership, prematch_matchups | The time we received the message from Pinnacle (epoch ms). ts - recv_ts is the delay inside our system. Still our clock, not a Pinnacle-side time. |
| feed_age_ms, sport_age_ms, prematch_age_ms, prematch_sport_age_ms, prematch_poll_age_ms | WebSocket ping | Ages in ms, measured at the ts of the ping: time since we last received a push from Pinnacle (of any kind, per sport, prematch, prematch per sport) and since the last prematch board poll record. |
| last, last_call (top level) | REST board responses | Our store cursor, a sequence number that only moves forward. Pass it back as since=. It is not a time. |
| last (inside each event) | REST events | The Unix second at which we served the response. Identical for every event in the payload. Says nothing about the event. |
| updated_at | REST events only | Epoch ms: the time we received the last real change to that event’s markets (a price, a line added or removed, a status). Repeats of the same prices do not move it. After one of our restarts it starts again from the moment we first saw the event, so read it as “unchanged since at least”. This is the per-event freshness field, returned by the boards and by the single-event endpoints /kit/v1/details (live) and /kit/v1/prematch/markets. |
| X-Data-Age-Ms, X-Data-Status, X-Data-Board | REST response headers | Board-level, as described above: time since the newest write anywhere on that board, rounded down to whole seconds (so 0 is normal), refreshed by the full re-read as well as by pushes. |
| ts, age_s | /api/drops rows | The time we detected the drop, and its age in seconds when served. |
| live.updated_ms, live.source_ms | /odds-drop drops | Our receive time of the last change to the match state, and of the last frame of any kind for that event. |
| starts, starts_ms, cutoffAt | events / raw records | Scheduled start and betting cut-off from Pinnacle. Schedule values, not update times. |
- For ordering, use the market
versionon the WebSocket, within one event, market key and channel (see the version note). It needs no clock.
For deltas and bandwidth, use the top-level last cursor — it is exact, and a full board is large while the change set is usually a handful of events.
curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/fixtures?sport_id=1" # -> { "last": 50352786, "events": [ ...1522 events... ] } curl -H "x-portal-apikey: $KEY" \ "https://pinnodds.com/kit/v1/prematch/fixtures?sport_id=1&since=50352786" # -> { "last": 50353005, "events": [ ...7 events that changed... ] }
- Feed quiet —
lastdoes not advance between polls.X-Data-Age-Msabove answers this directly; if you want a second source,/healthcarrieslive_write_age_msandprematch.write_age_ms, which tell you which feed is quiet. - Event unchanged —
lastadvances but the event is absent from thesince=response. Its prices genuinely have not moved. Keep your cached copy. - Event gone — it stops appearing in a full (no
since=) response. Pinnacle has pulled it, or it has kicked off and moved to the live feed. - Always carry the
lastfrom the response you just received. Don't reuse an older one or substitute a wall-clock timestamp.
If you need a timestamp for each detected move, use /api/drops. Every drop carries its own ts (epoch ms, the time we detected it) and age_s.
Live state object
Live events include a state object with in-game state passed through from Pinnacle. Field names are sport-specific and are NOT renamed by us. state is null on prematch events.
Three top-level fields make up the object:
state.match— overall match-level state (clock / current period). Sport-dependent.state.home/state.away— current state for each participant.state.home_stats/state.away_stats— array indexed by period. Currently only theperiodindex is present; per-period stat values are not populated.
| Sport | Match-level fields | Per-participant fields |
|---|---|---|
| Soccer (1) | state (period code: 1 = 1st half, 2 = half-time, 3 = 2nd half, 9 = finished; 4 can appear briefly between 3 and 9), minutes (minute within the current half — it restarts at 0 for the 2nd half; during half-time it counts the break) |
score, redCards |
| Basketball (3) | quarter (1-4 + OT), timeRemainingInQtr (string "MM:SS") |
score |
| Tennis (2) | set (current set number) |
setsWon, gamesBySet (array), points (string: "0"/"15"/"30"/"40"/"Adv"), serving (boolean) |
| Other sports | Varies. Common: period / state |
Always score. Sport-specific extras may appear. |
Note: Per-participant live state covers score and redCards (plus the match-level clock/period), and on soccer also corners and yellowCards, which come from the parent fixture, so their timing can differ from the record's own score by a few seconds. Not every match has them. Fields appear only when there is a non-default value to publish, so treat every field as optional and code defensively.
Where it lives: the raw state field is returned by GET /kit/v1/markets?event_type=live. Prematch endpoints (/kit/v1/prematch/*) do not return state — none of these fields exist before kickoff. The /odds-drop SSE stream carries the same information as a normalised live object on each drop — see below.
The live object on /odds-drop drops
Every live drop carries a live object with the match state at the moment of the drop (the latest state we had for that event, even when the frame that moved the price did not repeat it). It is the last key of the drop. It is absent only when Pinnacle publishes no state for the event (most sports other than soccer, tennis, basketball and hockey). The keys always appear in this order; values not available for a sport are null.
| Key | Type | Description |
|---|---|---|
| status | string | Human-readable state. Soccer "1st Half - 16'", "Half Time", "2nd Half - 22'"; basketball "4th Quarter - 7'"; otherwise "Live Now". |
| period | string | null | Basketball only: "Q1"…"Q4" ("Q5"+ = overtime, "Q-1" = unknown). |
| clock | string | null | Basketball only: whole minutes remaining in the quarter, e.g. "7'". |
| minute | int | null | Soccer only: minute within the current half (restarts at 0 for the 2nd half; 0 at half-time). |
| score | {home, away} | null | Current score (soccer, basketball, hockey). null for tennis — use sets/games. |
| red_cards, yellow_cards, corners | {home, away} | Soccer only, each present when known. Yellow cards and corners come from the parent fixture and can lag the score by a few seconds. |
| current_set, sets, games, game_points, server | mixed | Tennis only. current_set int; sets {home, away} sets won; games {home: [..], away: [..]} games per set; game_points {home, away} strings ("0"/"15"/"30"/"40"/"Ad", tiebreak points as numbers-in-strings); server "home"/"away". |
| favorite | "home" | "away" | null | The side with the shorter full-game moneyline price at that moment; null when level or no moneyline is open. |
| updated_ms | int | When this state last changed (our receive time, UNIX ms). |
| source_ms | int | When we last received any frame for this event (UNIX ms). |
"live": {"status": "1st Half - 43'", "period": null, "clock": null, "minute": 43,
"score": {"home": 1, "away": 0}, "red_cards": {"home": 0, "away": 0},
"yellow_cards": {"home": 1, "away": 0}, "corners": {"home": 1, "away": 4},
"favorite": "away", "updated_ms": 1793886283461, "source_ms": 1793886286990}
The drop's own home_score / away_score fields are filled from the same state (previously they were null on basketball and hockey). Basketball drops also keep the older quarter / time_remaining_in_qtr fields.
Affiliate program
Every account gets a unique referral link. Anyone who signs up via your link and becomes a paying customer earns you 30% of every payment they make, for as long as their subscription stays active — first payment, renewals, upgrades, all of it.
| Topic | Detail |
|---|---|
| Your link | Shown in your dashboard. Format: https://pinnodds.com/?ref=<8-char-code>. Copy + share anywhere. |
| Commission | 30% of every USD payment your referrals make. Compounds across renewals and upgrades — not a one-time bounty. |
| Attribution | A signup is attributed if the visitor lands on pinnodds.com with your ?ref= parameter and then signs up + verifies email in the same browser session. We don't use cross-device cookies — straight session-based attribution. |
| Tracking | Your panel shows a live list of every signup attributed to you, whether they're on a paid plan, and how much you've earned (unpaid + paid out). |
| Payouts | Processed manually. Once your unpaid balance reaches $50+ we'll reach out to arrange transfer (crypto, bank transfer, or PayPal — whichever you prefer). Faster payouts are available on request — email info@pinnodds.com. |
| Self-referral | Blocked. You can't sign up via your own link. |
| Refunds | If a referred customer's payment is refunded by us (rare), the corresponding commission is voided. We don't claw back already-paid commissions for routine churn — only for actual refunds. |
Privacy: in your panel, referred users' emails are masked (e.g. j***@gmail.com) so you can recognize friends you invited without exposing full addresses if you screenshot the dashboard. Admins see unmasked emails in our internal tooling.
What we don’t provide
pinnodds is a real-time odds feed. These are the things customers ask for most often that it does not contain, so you can plan around them before you build.
| Not provided | What exists instead |
|---|---|
| Results, settlement, bet grading | There is no results or settlement endpoint, and no won/lost/push outcome anywhere in the feed. Pinnacle retired its own settled-fixtures endpoint on 1 November 2026. While an event is in play the live feed carries the score (state and home_score / away_score on REST, the raw record on the WebSocket) and, on the WebSocket, each period’s status (open / closed / settled), so you can record the last score you saw before the event leaves the feed. That is the last score we observed, not an official result. For how a bet is settled, see Pinnacle’s betting rules. |
| Opening price on the live and prematch feeds | The boards, the drop streams and the WebSocket carry no opening price. from_price on a drop is the previous price inside the drop window, not the opener, and the WebSocket snapshot you get on (re)connect is the current state only. The opening price we recorded is served once the event has started, as open and opened_at on /kit/v1/closing, for events from 18 November 2026 on. It is null for an event that was already listed when recording began. |
| Full price history, earlier seasons | We serve the opening and the closing prematch price of each regular market on /kit/v1/closing, for events from 18 November 2026 on. We do not serve every price change in between, there is no history of live prices, and there is no backfill of events before that date. If you need a full tick history, record the stream from the day you subscribe. |
lineId / altLineId | Not in the feed. The version on a raw market, and the one returned on REST with line_meta=1, is a change stamp, not a line id (see the version note). |
| Pinnacle’s own change time | Does not exist upstream. See every time field, in one table. |