MoneyLine Sports API for Python
The official Python SDK for MoneyLine Sports API. Use it to get live odds, player props, hit rates, +EV and arbitrage signals, and scores for NFL, NBA, MLB, NHL, college football, college basketball, EPL, MLS and the World Cup, all through one API.
See what's covered right now, including leagues, sportsbooks, DFS apps and exchanges, at moneylineapp.com/coverage.
Install
pip install moneyline-sports-api
The SDK needs Python 3.9 or later and has no dependencies.
Get an API key
Sign up for a free key. The SDK reads it from the MONEYLINE_API_KEY environment variable, or you can pass it in yourself:
from moneyline_sports_api import MoneyLine
ml = MoneyLine(api_key="your-key")
Examples
# Today's NFL odds across every book
odds = ml.odds(league="nfl")
# Player props for one player
props = ml.player_props(league="nba", player="Jayson Tatum")
# Positive expected-value bets and arbitrage
ev = ml.ev_bets(league="nfl", limit=10)
arbs = ml.arbitrage(league="mlb")
# Hit rates over the last 5, 10 and 25 games and the season
# for one prop. Take the player ID and line from a player-prop record.
rates = ml.hit_rates("nba-p-3934672", market="player_points", line=24.5)
# Ask MoneyLine AI a question grounded in live data
answer = ml.ask("Best NBA player props tonight?")
# Live coverage counts (no key needed)
coverage = ml.coverage()
Every other endpoint is reachable through ml.get(path, **query), which returns the response data. To get data and meta together, use ml.request("GET", path, query).
Errors
A failed call raises MoneyLineError with the HTTP status, a stable code such as ERR_API_KEY_INVALID or ERR_CREDIT_LIMIT, and a request_id to include when you contact support.
from moneyline_sports_api import MoneyLineError
try:
ml.odds(league="nfl")
except MoneyLineError as err:
if err.status == 429:
pass # You hit the rate limit. Wait, then try again.
Each request times out after 15 seconds. To change that, pass timeout.
Links
MIT licensed.
Metadata
Release files for moneyline-sports-api 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 |
|---|---|---|---|---|
| moneyline_sports_api-0.1.1.tar.gz | 5.3 kB | With provenance | Details for moneyline_sports_api-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moneyline_sports_api-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for moneyline_sports_api-0.1.1-py3-none-any.whl |
Total release size: 10.5 kB
Release files / moneyline_sports_api-0.1.1.tar.gz
| Download URL | moneyline_sports_api-0.1.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d34f4b58db3b1f1c6edcb2659b02a3b300db1a2e01ed7165561da828c57e53fa
|
|
BLAKE2b-256 checksum How to use checksums |
a07148488949ef738c406710b721baa92c216289d9c72a0e3d4edb9c9ba1ede3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency logRelease files / moneyline_sports_api-0.1.1-py3-none-any.whl
| Download URL | moneyline_sports_api-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81e8209afb6e9d3623d8def12beedf7144d406c137a94cd1f9bc2497b6dfd0fd
|
|
BLAKE2b-256 checksum How to use checksums |
6b8603526fc7b9a39aa1e4b71165a6752c2d09a912ae6d16e1e997d1893134c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency logSecurity for moneyline-sports-api 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for moneyline_sports_api-0.1.1.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 Sep 24, 2026.
Transparency logA 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.