Skip to Content
API ReferenceBest Odds

Best Odds

Get the best available odds for each selection across all sportsbooks. This endpoint compares odds from every book available on your tier and returns the most favorable line for each selection, along with per-book comparisons and edge calculations.

GET /api/v1/odds/best

AuthenticationPermalink for this section

Requires API key. Available to all tiers.

Best Odds is available on all tiers, including Free. The sportsbooks compared depend on your tier’s book access (Free compares DraftKings and FanDuel; Sharp+ includes Pinnacle).

Query ParametersPermalink for this section

ParameterTypeDefaultDescription
sportstringallFilter by sport(s), comma-separated (e.g., basketball, football)
leaguestringallFilter by league(s), comma-separated (e.g., nba, nfl)
marketstringallFilter by market type(s), comma-separated (e.g., moneyline, spread, total). Supports category aliases — see Odds: Market Category Aliases. Also accepted as market_type=.
event_idstringFilter by event ID(s), comma-separated
is_livebooleantrue = live only, false = prematch only, omit = both
is_main_linebooleantrue = main-line entries only (consensus line for each (event, market, selection) cohort plus no-line markets like moneyline); false = alt-line entries only; omit = both. This is scoped per market, so period/prop markets keep their own main line — for full-game lines only, use ?market=main (see note below). See the is_main_line response field below for the cohort semantics.
limitinteger50Max results per page (max 200)
offsetinteger0Pagination offset

Stale odds (older than 5 minutes for pre-game, 1 minute for live) are automatically excluded from best-odds comparisons to prevent misleading results.

is_main_line vs market=main. is_main_line is evaluated per (event, market_type, selection) cohort — it marks the main line within each market’s own ladder. Period and player-prop markets therefore legitimately return is_main_line=true rows (e.g. the consensus first-half total), so ?is_main_line=true is not a “main game lines only” filter. To restrict results to full-game core lines (moneyline, full-game spread, full-game total), use the ?market=main category alias instead — optionally combined with ?is_main_line=true to also drop alt lines within those markets.

Example RequestsPermalink for this section

curl -X GET "https://api.sharpapi.io/api/v1/odds/best?league=nba&market=spread" \ -H "X-API-Key: YOUR_API_KEY"

ResponsePermalink for this section

Success (200)Permalink for this section

{ "data": [ { "event_id": "mlb_athletics_marlins_2026-07-03_b3", "event_name": "Miami Marlins @ Oakland Athletics", "sport": "baseball", "league": "mlb", "market_type": "moneyline", "selection": "Miami Marlins", "line": null, "is_main_line": true, "best_odds": { "american": 110, "decimal": 2.1, "probability": 0.4762, "odds_probability": 0.4762 }, "consensus_odds": { "american": 104, "decimal": 2.0425, "probability": 0.4896, "odds_probability": 0.4896 }, "market_hold": 0.67, "best_book": "fanduel", "all_books": [ { "book": "betonline", "sportsbook": "betonline", "odds": { "american": 103, "decimal": 2.03 }, "edge": -0.61 }, { "book": "fanduel", "sportsbook": "fanduel", "odds": { "american": 110, "decimal": 2.1 }, "edge": 2.82 }, { "book": "rebet", "sportsbook": "rebet", "odds": { "american": 100, "decimal": 2 }, "edge": -2.08 } ], "timestamp": "2026-07-02T18:18:32.7421063Z" } ], "pagination": { "limit": 50, "offset": 0, "count": 1, "total": 54, "has_more": true, "next_offset": 1 }, "updated_at": "2026-07-02T18:18:35.000Z" }

Response HeadersPermalink for this section

X-RateLimit-Limit: 300 X-RateLimit-Remaining: 298 X-RateLimit-Reset: 1737853200 X-Data-Delay: 0 X-Request-Id: 1782526326424224-82519

Error ResponsesPermalink for this section

401 Unauthorized

No key supplied returns missing_api_key; a bad key returns invalid_api_key.

{ "error": { "code": "missing_api_key", "message": "API key required. Pass via X-API-Key header, api_key query parameter, or Bearer token.", "docs": "https://sharpapi.io/docs/authentication" } }

429 Rate Limited

retry_after is a Unix-millisecond timestamp of the next window (not a duration); the Retry-After header carries the equivalent seconds value.

{ "error": { "code": "rate_limited", "message": "Rate limit exceeded for pro tier (300/min)", "retry_after": 1737853260000, "tier": "pro", "limit": 300, "docs": "https://sharpapi.io/pricing" } }

Best Odds Object SchemaPermalink for this section

FieldTypeDescription
event_idstringEvent identifier
event_namestringEvent display name (e.g., “Lakers @ Celtics”)
sportstringSport slug
leaguestringLeague slug
market_typestringMarket type (e.g., moneyline, spread, total)
selectionstringSelection name (team name, Over/Under)
linenumber | nullLine value (for spreads/totals)
is_main_linebooleantrue for the consensus main line of this (event, market_type, selection) cohort and for no-line markets (moneyline, outright); false for alt-line entries and rows whose cohort hasn’t been published yet (cold start). Filterable via ?is_main_line=true. Mirrors the is_main_line field on /odds.
best_oddsobjectBest odds available across all books
best_odds.americannumberBest American odds
best_odds.decimalnumberBest decimal odds
best_odds.probabilitynumberImplied probability of best odds (also emitted as odds_probability)
consensus_oddsobjectConsensus (vig-included) line across books — probability-space average of every book’s implied probability, converted back to american / decimal / probability (also emitted as odds_probability).
market_holdnumberMarket hold (overround) %, derived from the consensus prices of the market’s two sides (sum of consensus implied probabilities − 1). 0 when the opposing side isn’t priced or the computed value falls outside the plausible range.
best_bookstringSportsbook ID with the best odds
all_booksarrayAll sportsbooks’ odds for this selection
all_books[].bookstringSportsbook ID
all_books[].sportsbookstringSportsbook ID (alias of book)
all_books[].oddsobjectOdds object (american, decimal)
all_books[].edgenumberPayout edge vs the consensus price, in percent: (book_decimal / consensus_decimal − 1) × 100. Positive = pays better than consensus; negative = worse.
timestampstringISO 8601 time SharpAPI last refreshed this odd through its pipeline — advances every ingest cycle. A feed-freshness / liveness signal (matches OpticOdds’ timestamp); it is NOT when the price last changed.
player_namestring|undefinedPlayer name (player prop markets only)
stat_categorystring|undefinedStat category, e.g. points, rebounds (player prop markets only)

Pinnacle is commonly used as the sharp reference. When Pinnacle is available in all_books, you can identify it by book: "pinnacle" and compare its odds to soft books to find +EV opportunities.

Why Best Odds MatterPermalink for this section

Finding the best available odds is the foundation of profitable sports betting:

1. Line Shopping Saves MoneyPermalink for this section

The difference between -105 and -110 may seem small, but it compounds dramatically over time:

Odds$100 Bet WinBreakeven Win Rate
-115+$8753.5%
-110+$9152.4%
-105+$9551.2%
+100+$10050.0%

2. Long-term ImpactPermalink for this section

Over 1,000 bets at a 52% win rate:

Consistent OddsNet Result
-115-$44 loss
-110+$18 profit
-105+$80 profit

3. Edge ComparisonPermalink for this section

The edge field on each book in all_books shows how much better (or worse) that book’s payout is compared to the consensus price across all books — positive means the book pays above consensus, negative below. It quantifies the value of shopping across books at a glance.

Last updated on