Skip to main content

Real-time Pinnacle odds & drop alerts in Python — REST snapshots and SSE drop streams from pinnapi.com, the drop-in alternative to the closed Pinnacle API.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinnapi-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pinnapi-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pinnapi-0.1.0.tar.gz.

File metadata

  • Download URL: pinnapi-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for pinnapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d80326d1c7b95caa47d9e81d38e4f39a597176bd002e750a16ded04867468e5
MD5 e68def2e5ddc660ca886908c3e1b346c
BLAKE2b-256 ce90d4571bf66c799d6352fc6116d72027baabcb281bbc1e479a54111a44bf4e

See more details on using hashes here.

File details

Details for the file pinnapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pinnapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for pinnapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dceba9af4ad7a47396c368bf5ce5efa6c8ca931b11bf101ea26a9b90f15a62d
MD5 94a8ff38eea9337ef9ee5d07b4d45005
BLAKE2b-256 ded5b0173315637611a641fc316454446c43e49e5fb6d2fdadd68a332b28bf38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page