pinnapi — Pinnacle odds API for Python
Real-time Pinnacle odds and drop alerts in Python: REST snapshots of live + prematch markets, and Server-Sent-Events streams that push every odds drop to your code in ~15–40 ms.
pip install pinnapi
Does Pinnacle still have a public API? No — Pinnacle closed its public API on July 23, 2025 (only bespoke commercial/academic access remains). pinnapi.com is an independent drop-in replacement: the same familiar response shape, served from its own real-time feed. No Pinnacle account needed — your API key is your login, and a free trial key takes seconds (no card).
Quickstart
from pinnapi import Client, SPORTS
api = Client("YOUR_KEY") # free trial key at https://pinnapi.com/
# Live soccer markets (moneyline, spreads, totals, team totals — every period)
events = api.markets(sport_id=SPORTS["soccer"])
# Prematch instead of live
fixtures = api.prematch_fixtures(sport_id=SPORTS["tennis"])
# What just dropped? (queryable buffer, no open connection needed)
recent = api.drops(mode="live", min_drop_pct=5)
Real-time drop alerts (SSE)
Stream every market whose price falls past your threshold, the instant it happens — this is the feed for steam chasing, dropping-odds alerts, and arbitrage windows:
# Requires a plan with SSE (Drops / Edge / Scale)
for drop in api.stream_drops(mode="live", min_drop=5):
print(f'{drop["home"]} v {drop["away"]} · {drop["market"]} '
f'{drop["from"]} → {drop["to"]} (▼{drop["drop_pct"]}%)')
mode="prematch" streams pre-game drops (optional recheck=N holds an alert N seconds and re-verifies before sending). Reconnects automatically on network hiccups; auth/plan errors raise immediately.
Why Pinnacle's line?
Pinnacle is the market's reference price — the sharp line the rest of the market follows. When it breaks, soft books take seconds to correct; everything in between is your window. A polled aggregator hears about the move on its next cycle; this feed is push, not poll.
API surface
| Method | Endpoint | What it returns |
|---|---|---|
markets(sport_id, event_type) |
GET /kit/v1/markets |
Live (default) or prematch markets for a sport |
details(event_id) |
GET /kit/v1/details |
One live event |
prematch_fixtures(sport_id) |
GET /kit/v1/prematch/fixtures |
All prematch fixtures + markets |
prematch_markets(event_id) |
GET /kit/v1/prematch/markets |
Markets for one prematch event |
prematch_lines(event_id) |
GET /kit/v1/prematch/lines |
Compact line view |
drops(mode, ...) |
GET /api/drops |
Recent dropping-odds buffer (filterable) |
stream_drops(mode, min_drop) |
SSE /odds-drop[-prematch] |
Push stream of drop alerts |
health() / ping() |
GET /health / /ping |
Service status / liveness |
Sports (SPORTS dict): soccer=1, tennis=2, basketball=3, hockey=4, football=5, baseball=6, rugby=7, mma=8, boxing=9, other=10, esports=11, golf=12.
Errors: AuthError (bad key / plan lacks the surface), RateLimitError (with .retry_after seconds), PinnapiError (everything else, with .status and .payload).
Pricing & limits
Free trial: 100 REST requests/day, no card. Paid plans from $99/mo (SSE drop streams, 10–30 req/sec REST, raw WebSocket add-on). Full details: pinnapi.com · API docs · LLM-friendly reference.
Notes
- Real-time feed only (live + prematch) — no historical archive; buffer the stream yourself if you need history.
- One concurrent SSE connection per account per stream (live and prematch counted separately).
- pinnapi is an independent service, not affiliated with or endorsed by Pinnacle.
MIT licensed.
Metadata
Release files for pinnapi 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinnapi-0.1.1.tar.gz | 8.3 kB | Without provenance | Details for pinnapi-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinnapi-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pinnapi-0.1.1-py3-none-any.whl |
Total release size: 16.3 kB
Release files / pinnapi-0.1.1.tar.gz
| Download URL | pinnapi-0.1.1.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
387ff0999ca5e663918b42ac1ad68368b7613a36eeb7bcce90f991d4be36706a
|
|
BLAKE2b-256 checksum How to use checksums |
750bc957561d7c3214ebddaca6a8ac91067e6235add40554bd6c3000eba51895
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Release files / pinnapi-0.1.1-py3-none-any.whl
| Download URL | pinnapi-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9149eeec15f81dc29429f86909f9766fe22d4957ad99808f2fbd3f01055e0f02
|
|
BLAKE2b-256 checksum How to use checksums |
cb9236235a82cc9917828ca8a9c6f0171b1ac7476be7a5367d4c9f5b08f04e24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.6
|
Security for pinnapi 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.