Skip to main content

prizepicksapi (Python)

Python client for prizepicksapi.com: live PrizePicks player-prop lines, goblin and demon tiers on each selection, recorded line history, the change feed, graded results and game logs. Standard library only, Python 3.9+.

prizepicksapi.com is an independent service operated by Stunning Couches LLC. It is not affiliated with or endorsed by PrizePicks.

pip install prizepicksapi

Try it with no key

The demo_* methods call the keyless demo endpoints. They return fictional rows (is_demo: true) with the same fields as the live board, so you can write your parser first.

from prizepicksapi import PrizePicksAPI

api = PrizePicksAPI(api_key="")
for p in api.demo_projections(league="NBA", limit=3)["data"]:
    print(p["player"]["name"], p["market"]["stat"], p["line"], p["selections"][0]["tier"], "opened", p["line_context"]["opening_line"])

for row in api.demo_payouts()["data"][:2]:
    print(row["entry_type"], row["picks"], "break-even", row["derived"]["break_even_probability"])

print(api.credit_cost("/api/v1/projections?league=NBA&limit=200")["quoted_credits"])

Output on 15 Nov 2026:

Jordan Ellis Points 27.5 standard opened 26.5
Marcus Cole Rebounds 8.5 standard opened 7.5
Devin Brooks Assists 6.5 standard opened 5.5
power 2 break-even 0.57735
power 3 break-even 0.55032
6

Live data

Get a free key (100 credits a month, no card) at https://prizepicksapi.com/sign-up and export it:

export PRIZEPICKS_API_KEY=...
from prizepicksapi import PrizePicksAPI

api = PrizePicksAPI(user_request="NBA points model: pull today's board")  # optional X-User-Request header

# Every current NBA points line, following cursors for you
for p in api.iter_projections(league="NBA", stat="Points", limit=200):
    tiers = {s["side"]: s["tier"] for s in p["selections"]}
    print(p["player"]["name"], p["line"], tiers)

# Only goblin lines, compact rows (up to 1,000 per page)
goblins = api.projections(league="NBA", tier="goblin", view="compact", limit=1000)

# Recorded moves for one projection
history = api.history(goblins["data"][0]["id"])

# Change feed: new, moved, pulled and restored lines. Store meta.next_cursor and resume from it.
feed = api.changes(league="NBA", limit=200)

# Graded results and hit rates
graded = api.results(league="NBA", date="2026-11-14")
rates = api.hit_rates(player="Victor Wembanyama", stat="Points")

# The board as it stood at a past moment
past = api.board(as_of="2026-11-10T23:00:00Z", league="NBA")

# CSV page for a spreadsheet
csv_text = api.export_csv(league="NBA", limit=200)

Errors and limits

Non-2xx responses raise APIError with the API's stable code (for example INVALID_API_KEY). HTTP 429 raises RateLimitError. Per-minute limits (RATE_LIMIT_EXCEEDED) and 503s are retried up to max_retries times using the Retry-After header; a monthly quota (MONTHLY_QUOTA_EXCEEDED) is raised at once.

from prizepicksapi import APIError, RateLimitError

try:
    api.projections(league="NBA")
except RateLimitError as e:
    print("limited:", e.code, e.retry_after)
except APIError as e:
    print(e.status, e.code, e.message)

Methods

Method Endpoint Key
demo_projections, demo_history, demo_changes, demo_payouts, demo_coverage, demo_export_csv /api/v1/demo/* no
credit_cost(path) /api/v1/credit-costs no
projections, iter_projections /api/v1/projections yes
history(id) /api/v1/projections/{id}/history yes
trending /api/v1/projections/trending yes
changes /api/v1/changes yes
board(as_of) /api/v1/board yes
results, hit_rates, game_logs, training_set /api/v1/results etc. yes
coverage, payouts, compare, players, fixtures /api/v1/* yes
export_csv /api/v1/export yes
request(path, params), paginate(path, params) any GET endpoint

Full reference: https://prizepicksapi.com/docs and https://prizepicksapi.com/openapi.json. Plans: https://prizepicksapi.com/pricing.

Tests

python3 -m unittest discover -s tests            # mocked transport
PRIZEPICKS_LIVE_TEST=1 python3 -m unittest discover -s tests   # also calls the keyless demo endpoint

License

MIT.

Metadata

Release files for prizepicksapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prizepicksapi 0.1.0
File Size Uploaded Provenance Actions
prizepicksapi-0.1.0.tar.gz 10.3 kB With provenance Details for prizepicksapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prizepicksapi 0.1.0
File Interpreter ABI Platform Actions
prizepicksapi-0.1.0-py3-none-any.whl Python 3 none any Details for prizepicksapi-0.1.0-py3-none-any.whl

Total release size: 18.8 kB

Release files / prizepicksapi-0.1.0.tar.gz

Download URL prizepicksapi-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ad345174f151dc8cd80198a05e5686e2510a9b8ccb14e2462db45bbcbee1c326
BLAKE2b-256 checksum
How to use checksums
e21c5812ccf53afcc1d09bef23e82a364a36dd7197d2f7e5cd490683e61f62e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / prizepicksapi-0.1.0-py3-none-any.whl

Download URL prizepicksapi-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a97b6e2cf303e02da1aba31aeef566f60926a0faa232f7d6f4a7140b1bae9b2
BLAKE2b-256 checksum
How to use checksums
66650ba552f554fc30be8fa2adae7032ce48949f454d847dc9f37b78d46a603e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for prizepicksapi 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prizepicksapi-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page