# MoneyLine Sports API — LLM Reference > Base URL: `https://mlapi.bet/v1` > Docs: https://www.moneylineapp.com/docs > Dashboard: https://www.moneylineapp.com/dashboard > OpenAPI: https://mlapi.bet/openapi.json > Live coverage: https://www.moneylineapp.com/coverage --- ## When to Use MoneyLine Use MoneyLine when an application needs normalized sports events, teams, players, scores, sportsbook odds, DFS props, exchange markets, best available prices, positive expected-value signals, arbitrage, historical hit rates, or data-grounded betting analysis through one REST API. MoneyLine is designed for software products, analytics workflows, trading tools, and AI experiences that need structured records rather than scraped narrative text. MoneyLine is a data and analysis provider. It is not a sportsbook and does not accept or place wagers. Preserve event, market, selection, line, price, source, and timestamp fields together, and do not invent unavailable values. For machine-readable discovery, use the [OpenAPI 3.1 contract](https://mlapi.bet/openapi.json). For a concise site index, use [moneylineapp.com/llms.txt](https://www.moneylineapp.com/llms.txt). --- ## Authentication All API requests require an API key passed via the `x-api-key` header. ``` x-api-key: ml_live_ ``` Keys are created in the dashboard at https://www.moneylineapp.com/dashboard/keys (max 5 active keys per account). --- ## Tiers & Credits | Tier | Price | Credits/mo | Req/min | Public API Access | |------|-------|-----------|---------|-------------------| | Free | $0 | 1,000 | 10 | All public endpoints | | Starter | $29 | 150,000 | 60 | All public endpoints | | Pro | $149 | 4,000,000 | 200 | All public endpoints | | Business | $299 | 12,000,000 | 1,000 | All public endpoints | | Enterprise | Custom | Unlimited | Unlimited | All public endpoints | Odds coverage includes sportsbooks from the `us` and `us2` regions, DFS pick'em platforms from the `us_dfs` region (e.g. PrizePicks, Underdog, DraftKings Pick6, Betr Picks, Dabble), plus exchanges (Novig, ProphetX, BetOpenly) and prediction markets (Kalshi, Polymarket) from the `us_ex` region. `GET /v1/odds/bookmakers` lists every book with prices in the last 30 days, with its `venueKind`, fee model (and the fee schedule it came from) and what it is used for (`eligibility`). The default `sourceType=all` on odds endpoints returns all venue types, and on edge endpoints it returns all supported edge venues. **Arbitrage calculations exclude DFS operators entirely** — DFS prices are normalized into American odds for display but are indicative (not tradeable lines), so including them produces false arbitrage signals. Value and EV calculations score sportsbook and exchange prices only: DFS pick'em lines are shown on odds endpoints but are never scored, so `sourceType=dfs` on edge endpoints returns no value or EV bets. Exchange and prediction-market prices are scored after the venue's published fee (a commission on winnings or on the whole payout, or a per-contract fee), and a venue whose fee can't be documented is never scored. All plans can access every public API endpoint. Plans differ by credit allowance, overage policy, and per-minute rate limits rather than feature access. - **Credits are account-level**, shared across all keys. Each response carries `x-credits-cost` (what that call cost) and, on plans with a monthly limit, `x-credits-remaining` - **Data endpoints cost 1 credit/request**, except odds, player props and the per-game history routes: | Endpoint | Credits | |----------|---------| | `GET /v1/odds` | 6 | | `GET /v1/player-props` | 8 | | `GET /v1/events/:eventId/odds` | 3 | | `GET /v1/events/:eventId/player-props` | 4 | | `GET /v1/history/games` | 4 | | `GET /v1/trends/systems/:systemId/bets` | 4 | | `GET /v1/leagues/:leagueId/rankings/history` | 1 | - **`POST /v1/ai/chat` uses fixed AI credit bands** based on scope, response format, and workflow type - **Business tier** supports overage billing at $0.00015/credit beyond the limit - **Free tier** is restricted to NFL, NBA, MLB, NHL, NCAAB, NCAAF, EPL, MLS, World Cup --- ## Response Format ### Success ```json { "success": true, "data": { ... }, "meta": { "count": 10, "page": 1, "pages": 5, "total": 50, "requestId": "ml_req_ab12cd34ef56" }, "error": null } ``` ### Error ```json { "success": false, "data": null, "meta": { "requestId": "ml_req_ab12cd34ef56" }, "error": { "message": "Invalid or revoked API key.", "statusCode": 401, "code": "ERR_API_KEY_INVALID" } } ``` ### Error Codes HTTP status codes: | Code | Meaning | |------|---------| | 400 | Bad request / invalid parameters | | 401 | Missing or invalid API key | | 403 | Tier too low for this endpoint | | 404 | Resource not found | | 429 | Rate limit or credit limit exceeded | | 500 | Server error | Every error response also includes a machine-readable `error.code` string: | error.code | Meaning | |------------|---------| | ERR_VALIDATION | Invalid request parameters or body | | ERR_API_KEY_MISSING | No x-api-key header was sent | | ERR_API_KEY_INVALID | The API key is invalid or revoked | | ERR_UNAUTHORIZED | Other authentication failure | | ERR_FORBIDDEN | Access not allowed | | ERR_NOT_FOUND | Resource not found | | ERR_RATE_LIMITED | Per-minute rate limit exceeded | | ERR_CREDIT_LIMIT | Monthly credit limit exceeded | | ERR_AI_UPSTREAM | The AI model provider failed or timed out | | ERR_UPSTREAM | A dependency failed (502/503) | | ERR_SYSTEM_BETS_PENDING | A published system's bets have not been computed yet (503); retry later | | ERR_INTERNAL | Unexpected server error | --- ## MoneyLine AI ### POST /v1/ai/chat Generate a MoneyLine-grounded AI response from a stateless chat request. This endpoint is for sports betting workflows powered by MoneyLine data, not for general-purpose chat. **Tier:** All tiers **Request body:** | Field | Type | Required | Description | |------|------|----------|-------------| | messages | array | Yes | 1 to 6 chat messages. The last message must be from the user. | | context | string | No | `best_bets`, `ev_bets`, `arbitrage`, `event_best_available_bet`, `parlay`, `line_movement`, `line_shopping`, or `trends`. In most apps, omit this and let MoneyLine infer it from the latest user message. | | referencedBet | object | No | For **line shopping** — the structured `betRef` of a previously-surfaced pick (`{ eventId, market, outcome?, point?, side?, playerId?, playerName? }`). When present on a line-shopping ask, MoneyLine prices that exact selection across every book and returns `presentation.responseType: "line_comparison"` with one `line_quote` per book (best price first). Prices a book hasn't refreshed in 12 hours are left out, as are DFS pick'em lines and exchange placeholder quotes; if every price is that old, the answer says books aren't posting current prices yet. Every surfaced `presentation.primaryPick` includes its own `betRef` for the client to echo back. | | scope | string | No | `small`, `medium`, or `large`. Default: `small`. | | responseFormat | string | No | `natural`, `hybrid`, or `structured`. Default: `hybrid`. | | stream | boolean | No | `true` switches the response to Server-Sent Events. Default: `false` (JSON). | | filters | object | No | Optional safe filters: `league`, `leagues`, `market`, `sourceType`, `bookmakers` (canonical; singular `bookmaker` is accepted as an alias). | **Best practice:** - Default to auto-infer. In most integrations, omit `context`, `filters.league`, and `filters.leagues`. - Let the latest user message drive sport, league, league-family, and event inference. - Use explicit filters only when your app already knows the constraint. - `hybrid` is the best default for most production apps. **Broad sport prompts auto-map to supported league families.** Examples: - `basketball`, `best basketball bet`, or `hoops` → `nba` + `ncaa_basketball` - `football`, `best football bet`, or `pigskin` → `nfl` + `ncaa_football` - `hockey` or `puck` → `nhl` - `baseball` → `mlb` - `soccer` or `futbol` → `soccer_epl` + `soccer_mls` + `soccer_world_cup` If your app already knows the exact multi-league constraint, you can also send `filters.leagues` directly. **Natural-language sportsbook filtering works.** The latest user message can include phrases like: - `Only show FanDuel` - `Use DraftKings only` - `I am only betting on FanDuel this weekend` If both a structured sportsbook filter and a natural-language sportsbook mention are present, the structured filter wins. **Supported contexts:** - `best_bets` — best-odds surfaces for recommendation cards and summaries - `ev_bets` — positive EV edge data - `arbitrage` — cross-book arbitrage opportunities - `event_best_available_bet` — “if I have to bet this game, what should I choose?” plus an optional stronger same-league alternative - `parlay` — build a cross-game multi-leg parlay ("build me a 3-leg parlay tonight", "three Top 25 favorites on Novig with my 20% profit boost"). Every game line on the next slate is priced against the sportsbook fair price, and the whole parlay comes from one book, since a ticket is placed at one book: the book you name, or with no book named the sportsbook whose own prices give the best full parlay. Sportsbooks pay a parlay as its legs multiplied, so the price is bettable. Exchanges and prediction markets (Novig, ProphetX, Kalshi, Polymarket) quote each parlay themselves with their own fee, so a parlay at one of them carries fair odds only (`metrics.bookQuotesParlays: true`, `oddsDisplay` "Fair +229 · 3.29x · 30.4%", no `odds`, price or EV; prices there read in all three formats books print: American, payout multiple, implied chance) for the user to compare with the venue's quote. What the ask names is a hard filter: favorites or underdogs (favorites mean moneylines unless spreads are named), Top N / ranked teams (AP poll), moneyline / spread / total, and the book; a leg that misses one is left out, never swapped in, and fewer than 2 matching games returns 404 with a message naming the ask. "Big games" puts games between two ranked teams first; otherwise the best price against fair leads. `presentation.primaryPick` has `signalType: "parlay"`, a `selection` naming the legs ("#6 Alabama, #13 Oregon, #1 Texas"), `odds`/`oddsDisplay` = the parlay price, `event.matchup` listing every game, and `legs[]` (each with `odds`, `fairOdds`, `evPct`, `rank`, `opponentRank`). `metrics` carries `fairAmerican` and `combinedModelProb` (= `modelProb`), and at a sportsbook also `combinedAmerican`, `impliedProb`, `combinedEvPct`, and with a profit boost in the ask `boostPct`, `boostedAmerican`, `boostedEvPct`. `data.records` are `parlay_leg` records. v1 is cross-game only (legs in the same game are correlated and not combined); same-game parlays are not yet supported. - `line_movement` — how a game or player line moved from open to now ("how has the line moved on the Knicks game", "where did the line open", " line movement"). Computed from MoneyLine consensus odds history. Returns `presentation.primaryPick.signalType: "line_movement"` with `Opened` / `Now` / `Move` chips (the change in no-vig win probability, toward/away). Consensus price history only — no bet-percentage / "sharp money" data. Needs an event with captured history (recently opened, live, or upcoming games); history is deleted 48–72 hours after the game starts. - `trends` — how teams do in a schedule situation, or who is in one tonight ("how do NHL teams do on back-to-backs?", "is anyone on a back-to-back tonight?", "any trends for the Bruins tonight?"). NFL, NBA, NHL, MLB and NCAAF (NCAAF has published systems and schedule facts, no searched trends yet). Read from MoneyLine's searched trends (`GET /v1/trends`) and tonight's situation facts (`GET /v1/events/{eventId}/trends`); the text is a fixed template and the model adds nothing. A trend that held up in testing is cited with its record, games, likely range and break-even (or the pregame-ratings expectation for a results trend), found and held-up seasons as separate rows. A published system a team matches tonight is cited with its rule, the team to bet, its record since 2021, ROI after the vig and each half's ROI, plus its card's label ("Published system — made money 2021–26 after the vig", or the lower tier's label) (general and named-team asks; a back-to-back, 3-in-4 or travel ask doesn't list systems). When none has, the answer says so plainly and lists the next 36 hours' schedule spots (second night of a back-to-back, 3rd game in 4 nights, 2+ time zones from the last game). Returns `presentation.responseType: "trend_summary"` with `headline` and `summary` only: `confidence` is `null`, and there is no `primaryPick` and no `cards`, because a trend or a schedule fact is not a pick and never carries a price. `data.records` are `trend` cards, `trend_system` cards (with `betTeamName`) and `trend_situation` facts. A player's prop on a back-to-back stays a hit-rate ask (see Situational hit-rate splits). Historical, not a prediction. **Soft-fail behavior (intentional — broad and ambiguous prompts still return a useful answer):** - If `event_best_available_bet` is inferred but no specific game can be resolved (no matching team in scope, multiple equally plausible games, or no odds yet for the resolved event), MoneyLine AI degrades to a same-league surface fallback instead of returning a 404. The response still has `data.context.resolvedContext: "event_best_available_bet"` and adds `data.entityResolution.resolutionFallback: true` plus `data.reasoningMode: "event_resolution_fallback_surface"` so callers can detect the degradation. - If a surface request (`best_bets`, `ev_bets`, `arbitrage`) yields zero records under the inferred filters, MoneyLine AI broadens once (drops league/market/sourceType) and retries. The broadened response sets `data.context.broadened: true` and `meta.degraded: true`. **Why-this-bet primitives MoneyLine AI can cite in explanations:** - Arbitrage — guaranteed profit % and the structured legs across both venues - Value — model probability vs implied probability, edge vs market, expected value - +EV — expected value % at the current price plus implied break-even win rate - Hit rate — L5 / L10 / L25 hits-per-games and season hit rate for the player and prop line - Best price — current best line in the eligible market scan and the corresponding break-even rate **Streaming (`stream: true`).** The response becomes `text/event-stream` with these event types: - `step`: emitted first (before any `delta`), one per evaluation stage as `{"label": "...", "detail": "..."}` — a factual trace of the deterministic pipeline (understanding the request, resolving the game, evaluating signals, selecting the top pick, composing the answer). These are pipeline steps, NOT the model's chain-of-thought. Clients that only handle `delta`/`result` can safely ignore them. - `delta`: `{"text": "..."}` chunks of the natural-language answer as it is generated (`natural` and `hybrid` only) - `result`: emitted exactly once at the end; its payload is the exact same JSON envelope a non-streaming call returns. Always render from `result`; treat accumulated `delta` text as a progressive preview. - `error`: only if a non-recoverable error happens after the stream has started; carries `{message, statusCode, code}` `data.reasoningSteps` (present on every successful response, streaming and non-streaming) is the same ordered `{label, detail?}` trace, for rendering "how this was derived" without consuming the stream. Validation and no-data errors that happen before generation starts still return a normal JSON error response with the appropriate HTTP status. Billing is identical to non-streaming calls. **Response caching.** Successful responses are cached for 60 seconds keyed on the full request (messages + context + scope + responseFormat + filters). A cache hit returns the identical payload with `meta.cached: true` and is billed normally. Degraded, broadened, and resolution-fallback responses are never cached. **Multi-turn follow-ups.** The conversation transcript matters: if the latest user message is a follow-up like "what about the under in that game?", MoneyLine AI resolves the game from earlier user messages in the same `messages` array (the intent classifier also resolves pronouns against earlier turns). Carried-forward event resolutions are capped at `resolutionConfidence: "medium"`. **Transparency notes.** When filters were broadened or event resolution fell back, `data.presentation.summary` ends with an explicit note saying so (in addition to the `data.context.broadened` / `data.entityResolution.resolutionFallback` flags). Hit-rate picks based on a small sample (fewer than 5 L10 games and fewer than 10 L25 games) are capped at `confidence: "medium"` and their `humanInsight` includes a small-sample caveat. **Hit-rate signal channel.** When the request involves player props (player name mentioned, or player-prop wording in the latest user message), MoneyLine AI also evaluates a hit-rate channel that surfaces over-direction props with strong recent L5/L10/L25 windows. Hit-rate candidates rank alongside arbitrage, value, EV, and best-bets and produce records with `recordType: "hit_rate_pick"` and `presentation.primaryPick.signalType: "hit_rate"`. Surfaced best bets, edges and hit-rate picks only come from games that haven't started, and a hit-rate pick is always priced at a sportsbook or exchange, never a DFS pick'em line. **Situational hit-rate splits.** A hit-rate request can include a situational qualifier in the prompt: "vs the Spurs" / "against San Antonio", "at home" / "on the road", or "in back-to-backs". When present, the hit-rate pick adds a `{label} Hit Rate` chip (e.g. `vs SAS Hit Rate`, `Home Hit Rate`, `B2B Hit Rate`) computed from the player's game logs filtered to that situation, alongside the standard windows. Requires an active posted prop (the line source); situational samples are often small, so the sample size is always shown. **Stake sizing.** Include a bankroll in the prompt ("$500 bankroll") and MoneyLine adds a `Suggested Stake` chip to EV and value picks: the edge's `stakePct` (a quarter of full Kelly on the after-fee price, capped at 5% of bankroll) applied to that bankroll, e.g. `$10` with the detail `2% of your $500 bankroll`. It is the same stake `/v1/edge` reports, and only appears on picks with an edge after fees. **Free-text intent classification.** When you omit `context`, MoneyLine AI runs a small Haiku-based classifier on the latest message before billing. The classifier handles unstructured prompts the regex layer would miss — phrasings like "Hawks game coming up - what should I bet", "any guaranteed-profit plays right now?", "give me a player prop with a strong hit rate", or "what's the play for tonight". It also extracts a hint about the named entity (team / player / league / sport) when one is present. If the classifier is unavailable or unconfident, MoneyLine AI falls back to deterministic regex inference. The chosen path is exposed on `data.context.inferenceSource` (`"classifier"` or `"regex"`). **AI response formats:** - `natural` — prose answer plus the stable `presentation` contract - `hybrid` — prose answer, normalized MoneyLine records, and the stable `presentation` contract - `structured` — deterministic `analysis`, normalized records, and the same `presentation` contract **AI credit bands:** Surface workflows (`best_bets`, `ev_bets`, `arbitrage`): | Scope | Natural | Hybrid | Structured | |------|---------|--------|------------| | small | 20 | 27 | 17 | | medium | 47 | 60 | 40 | | large | 93 | 113 | 73 | Event recommendation workflow (`event_best_available_bet`): - Uses a higher fixed band than surface lookups because it may resolve an event, inspect event-level odds, and return a same-league alternative. **Response shape:** ```json { "success": true, "data": { "answer": "For the Hawks game, the best available bet is...", "records": [...], "context": { "requestedContext": null, "resolvedContext": "event_best_available_bet", "inferred": true, "scope": "small", "responseFormat": "hybrid", "filters": { "bookmakers": ["fanduel"] } }, "sources": { "primary": "event_recommendation", "label": "Event Recommendation", "filters": { "bookmakers": ["fanduel"] } }, "presentation": { "version": "v1", "responseType": "event_recommendation", "headline": "MoneyLine AI Recommendation for Boston Celtics at Atlanta Hawks", "summary": "For Boston Celtics at Atlanta Hawks, MoneyLine recommends Atlanta Hawks +4.5 in the spread market at -108 from FanDuel.", "confidence": "high", "entity": { "...": "..." }, "primaryPick": { "...": "..." }, "alternativePick": { "...": "..." }, "cards": [{ "...": "..." }] }, "primaryRecommendation": { "...": "..." }, "alternativeRecommendation": { "...": "..." }, "alternativeRecords": [...], "reasoningMode": "hybrid_surface_plus_fallback", "entityResolution": { "resolvedEntityType": "event", "resolvedEventId": "nba-ev-311442", "resolvedLeagueId": "nba", "resolutionConfidence": "medium" } }, "meta": { "creditUsage": { "total": 41, "retrieval": 14, "generation": 27 } } } ``` **Expected integration result:** - `data.records`, `data.context`, `data.sources`, and `data.presentation` are the stable success-path fields. - `data.presentation` is the render-safe contract for product UI. Use it for headlines, summaries, cards, primary picks, and alternative picks. - `data.presentation.primaryPick.event` and `data.presentation.cards[].event` include the normalized matchup label and ISO `startTime` when MoneyLine can resolve the game tied to the recommendation. - For matchup display, use `primaryPick.event.matchup` as the game label and `primaryPick.event.startTime` as the source-of-truth ISO timestamp, then format the date/time in the client with a locale-aware formatter such as `Intl.DateTimeFormat`. - `data.presentation.primaryPick.humanInsight`, `data.presentation.alternativePick.humanInsight`, and `data.presentation.cards[].humanInsight` provide deterministic non-expert explanation text plus ready-to-render stat chips. - EV and value picks include a `Fair Odds` chip in `humanInsight.keyNumbers`. Fair Odds is the price implied by MoneyLine's model probability (the same probability the EV / edge is measured against), so beating Fair Odds is exactly what makes a price positive-EV. - When MoneyLine resolves a specific game (`presentation.responseType: "event_recommendation"`), `presentation.cards` returns up to 5 deduped picks for that game (best of any type: arbitrage, value, EV, hit-rate, best-bet), ranked together. Surface contexts (best_bets / ev_bets / arbitrage) return up to 3. - Hit-rate picks accept an arbitrary "last N games" window phrased in the prompt (e.g. "how many times has gone over his points in his last 7 games"). When detected, the response adds an `L{N}` window to the hit-rate chips and fragments alongside L5 / L10 / L25 / season. This requires the player to have an active posted prop on an upcoming game (the line source); there is no pure no-game career lookup on this endpoint. - `data.answer` is present for `natural` and `hybrid`. - `data.analysis` is present for `structured`. - Event-specific workflows may also include `primaryRecommendation`, `alternativeRecommendation`, `alternativeRecords`, `reasoningMode`, and `entityResolution`. **Recommended auto-infer example:** ```bash curl -X POST https://mlapi.bet/v1/ai/chat \ -H "content-type: application/json" \ -H "x-api-key: ml_live_YOUR_KEY" \ -d '{ "scope": "small", "responseFormat": "hybrid", "messages": [ { "role": "user", "content": "I want to bet on hockey this weekend and I am only using FanDuel. What is the best bet for me?" } ] }' ``` **Event-specific example:** ```bash curl -X POST https://mlapi.bet/v1/ai/chat \ -H "content-type: application/json" \ -H "x-api-key: ml_live_YOUR_KEY" \ -d '{ "scope": "small", "responseFormat": "hybrid", "messages": [ { "role": "user", "content": "What is the best bet for the Braves game today? Only show FanDuel." } ] }' ``` **Example AI response:** ```json { "success": true, "data": { "answer": "For the Braves game, the strongest current option on FanDuel is Atlanta Braves moneyline at +118. If you want the better overall MLB spot instead, look at the Cubs moneyline at +132.", "records": [ { "recordType": "best_bet", "eventId": "mlb-ev-1329189120", "leagueId": "mlb", "sport": "baseball", "calculatedAt": "2026-04-07T01:18:16.945Z", "market": "moneyline", "outcome": "Atlanta Braves", "bestOdds": 118, "bookmakerId": "fanduel", "bookmakerName": "FanDuel", "sourceType": "sportsbook", "sourceRegion": "us" } ], "context": { "requestedContext": null, "resolvedContext": "event_best_available_bet", "inferred": true, "scope": "small", "responseFormat": "hybrid", "filters": { "bookmakers": ["fanduel"] } }, "sources": { "primary": "event_recommendation", "label": "Event Recommendation", "filters": { "bookmakers": ["fanduel"] } }, "presentation": { "version": "v1", "responseType": "event_recommendation", "headline": "MoneyLine AI Recommendation for Atlanta Braves at New York Mets", "summary": "For Atlanta Braves at New York Mets, MoneyLine recommends Atlanta Braves in the moneyline market at +118 from FanDuel. This is the strongest currently surfaced line within your request. MoneyLine is prioritizing line quality here rather than claiming a published model edge. If you want the stronger same-league alternative, look at Chicago Cubs in the moneyline market at +132 from FanDuel.", "confidence": "medium", "entity": { "resolvedEntityType": "event", "resolvedEventId": "mlb-ev-1329189120", "resolvedLeagueId": "mlb", "resolutionConfidence": "medium", "resolutionReason": "Resolved from team/game language in the prompt.", "matchup": "Atlanta Braves at New York Mets" }, "primaryPick": { "signalType": "best_bet", "signalLabel": "Best Bet", "type": "surface", "eventId": "mlb-ev-1329189120", "leagueId": "mlb", "market": "moneyline", "marketLabel": "Moneyline", "selection": "Atlanta Braves", "outcome": "Atlanta Braves", "odds": 118, "oddsDisplay": "+118", "bookmakerName": "FanDuel", "bookmakerId": "fanduel", "sourceType": "sportsbook", "confidence": "medium", "rationale": "Best available line surfaced from MoneyLine best-bets data.", "humanInsight": { "summary": "This is the strongest currently surfaced line within your request. MoneyLine is prioritizing line quality here rather than claiming a published model edge.", "confidenceReason": "Best available price in the current MoneyLine market scan.", "keyNumbers": [ { "label": "Current Line", "value": "+118", "detail": "FanDuel" }, { "label": "Sportsbook", "value": "FanDuel" } ], "supportingPoints": [ "This is a price-quality recommendation, not a published model-edge claim.", "Best currently surfaced price: +118 at FanDuel." ] }, "metrics": {} }, "alternativePick": { "signalType": "ev_bet", "signalLabel": "EV Bet", "type": "surface", "eventId": "mlb-ev-1329189109", "leagueId": "mlb", "market": "moneyline", "marketLabel": "Moneyline", "selection": "Chicago Cubs", "outcome": "Chicago Cubs", "odds": 132, "oddsDisplay": "+132", "bookmakerName": "FanDuel", "bookmakerId": "fanduel", "sourceType": "sportsbook", "confidence": "high", "rationale": "Positive EV opportunity with 6.4% expected value.", "humanInsight": { "summary": "At the current price, MoneyLine expects this bet to return about +6.4% per bet over a large sample.", "confidenceReason": "The current price projects strong positive long-run return.", "keyNumbers": [ { "label": "Current Line", "value": "+132", "detail": "FanDuel" }, { "label": "Expected Value", "value": "+6.4%" }, { "label": "Projected Units", "value": "+0.064", "detail": "Expected profit per 1 unit staked" } ], "supportingPoints": [ "Projected long-run return: +6.4% per bet.", "Expected profit per 1 unit staked: +0.064." ] }, "metrics": { "ev": 0.064, "evPct": 6.4 } }, "cards": [ { "recordIndex": 0, "signalType": "best_bet", "signalLabel": "Best Bet", "selection": "Atlanta Braves", "market": "moneyline", "marketLabel": "Moneyline", "odds": 118, "oddsDisplay": "+118", "bookmakerName": "FanDuel", "confidence": "medium", "reason": "Best currently available market price from FanDuel.", "humanInsight": { "summary": "This is the strongest currently surfaced line within your request. MoneyLine is prioritizing line quality here rather than claiming a published model edge.", "confidenceReason": "Best available price in the current MoneyLine market scan.", "keyNumbers": [ { "label": "Current Line", "value": "+118", "detail": "FanDuel" }, { "label": "Sportsbook", "value": "FanDuel" } ], "supportingPoints": [ "This is a price-quality recommendation, not a published model-edge claim.", "Best currently surfaced price: +118 at FanDuel." ] }, "metrics": {} } ], "reasoningMode": "hybrid_surface_plus_fallback", "sourceLabel": "Event Recommendation" }, "primaryRecommendation": { "type": "surface", "premiumSignalType": "best_bet", "eventId": "mlb-ev-1329189120", "leagueId": "mlb", "market": "moneyline", "selection": "Atlanta Braves", "outcome": "Atlanta Braves", "bookmakerId": "fanduel", "bookmakerName": "FanDuel", "sourceType": "sportsbook", "sourceRegion": "us", "odds": 118, "confidence": "medium", "why": "Best available line surfaced from MoneyLine best-bets data." }, "alternativeRecommendation": { "type": "surface", "premiumSignalType": "ev_bet", "eventId": "mlb-ev-1329189109", "leagueId": "mlb", "market": "moneyline", "selection": "Chicago Cubs", "outcome": "Chicago Cubs", "bookmakerId": "fanduel", "bookmakerName": "FanDuel", "sourceType": "sportsbook", "sourceRegion": "us", "odds": 132, "confidence": "high", "why": "Positive EV opportunity with 6.4% expected value.", "whyBetterThanPrimary": "This same-league option has a stronger surfaced MoneyLine edge than the requested game." }, "alternativeRecords": [ { "recordType": "ev_bet", "eventId": "mlb-ev-1329189109", "leagueId": "mlb", "sport": "baseball", "calculatedAt": "2026-04-07T01:18:13.912Z", "edgeId": "ev-1775523493902-fanduel", "market": "moneyline", "outcome": "Chicago Cubs", "sourceType": "sportsbook", "sourceRegion": "us", "bookmakerName": "FanDuel", "bookmakerId": "fanduel", "odds": 132, "ev": 0.064, "evPct": 6.4 } ], "reasoningMode": "hybrid_surface_plus_fallback", "entityResolution": { "resolvedEntityType": "event", "resolvedEventId": "mlb-ev-1329189120", "resolvedLeagueId": "mlb", "resolutionConfidence": "medium", "resolutionReason": "Resolved from team/game language in the prompt." } }, "meta": { "creditUsage": { "total": 41, "retrieval": 14, "generation": 27 }, "requestId": "ml_req_example123" }, "error": null } ``` **Notes:** - The endpoint is stateless. Send recent visible messages with each request. - Retrieval is driven primarily by the latest user message, which helps follow-up prompts switch sports or games cleanly. - The LLM only sees controlled MoneyLine data selected by the workflow. It does not receive unrestricted database access. --- ## Rate Limiting The rate limiter uses a **fixed window** and resets at the top of each minute. Every rate-limited `/v1` response includes standard rate-limit headers: - `x-ratelimit-limit`: your tier's requests-per-minute allowance - `x-ratelimit-remaining`: requests left in the current minute window - `x-ratelimit-reset`: Unix epoch seconds when the window resets 429 responses also include `Retry-After` (seconds until the window resets). Unlimited tiers receive no rate-limit headers. When you exceed the per-minute limit, the server responds with HTTP 429 and: ``` Retry-After: 60 ``` --- ## Endpoints ### Sports & Leagues #### GET /v1/sports List all sports and their leagues. **Tier:** Free **Response:** ```json { "success": true, "data": [ { "sport": "basketball", "leagues": [{ "leagueId": "nba", "name": "NBA" }] } ] } ``` --- #### GET /v1/leagues List all leagues, optionally filtered by sport. **Tier:** Free **Params:** `?sport=basketball` **Response:** ```json { "success": true, "meta": { "count": 4 }, "data": [ { "leagueId": "nba", "name": "NBA", "sport": "basketball" } ] } ``` --- #### GET /v1/leagues/:leagueId Get a single league by ID. **Tier:** Free **League IDs:** `nba`, `nfl`, `mlb`, `nhl`, `ncaa_basketball`, `ncaa_football`, `soccer_epl`, `soccer_mls`, `soccer_world_cup` --- #### GET /v1/leagues/:leagueId/rankings Get the most recent poll rankings for a league. - **`ncaa_basketball`**: `?poll=ap` or `?poll=coaches` - **`ncaa_football`**: `?poll=ap` (default), `?poll=cfp`, or `?poll=coaches` **Tier:** Free **Response:** ```json { "success": true, "data": { "leagueId": "ncaa_basketball", "pollType": "ap", "season": "2025-26", "fetchedAt": "2026-03-31T06:00:00Z", "rankings": [ { "rank": 1, "teamName": "Duke", "record": "32-4", "points": 1580, "teamId": "ncaab-duke" }, { "rank": 2, "teamName": "Arizona", "record": "30-5", "points": 1490, "teamId": "ncaab-arizona" } ] } } ``` `teamId` is the same team ID events carry in `homeTeamId` / `awayTeamId`, so a ranked team matches its games directly. It is `null` for a ranked team we don't track. NCAAF rankings include a `conference` field on each entry. NCAAB updates twice daily. NCAAF checks for a new AP, Coaches or CFP poll every hour and serves the newest one we have, usually within an hour of release; a poll from that hourly check carries `points: null` and an empty `conference`, and `fetchedAt` is when we picked it up. --- #### GET /v1/leagues/:leagueId/rankings/history Every distinct poll we have saved for the league, newest first. History starts on 2026-10-20: the stats provider serves only the current poll, so we keep each new poll as we see it. **Query params:** `poll` (default `ap`; `ncaa_football`: `cfp`, `ap`, `coaches`; `ncaa_basketball`: `ap`, `coaches`), `season` (e.g. `2025-26`) Each entry has `season`, `pollType`, `firstSeenAt` (when we first saw the poll: the earliest time it was known, never the provider's date), `lastSeenAt` and `rankings` (the same entries as the current-poll route). `meta.historyStartsAt` is `2026-10-20`. Returns 404 for a league with no polls and 400 for a poll the league doesn't have. **Tier:** All plans · **Credits:** 1 --- ### Events & Scores #### Stub Events Some events appear in the API before stats data has been ingested for the game. These **stub events** are seeded from odds data and carry an `isStub: true` flag. Stubs are enriched with team IDs when available and are automatically merged into the canonical event once stats data is ingested. A merge only happens when both teams match and kickoff is within the league's window (48 hours for NFL and NCAAF, where teams play once a week; 12 hours elsewhere). Teams match by team ID, so a club the two feeds name differently ("CF Montreal" / "Montreal Impact") still merges; names decide only where IDs are unknown (a sportsbook's "Virginia Cavaliers" is the stats feed's "Virginia"; "Virginia Tech Hokies" is not). When more than one game fits, such as a doubleheader, the nearest kickoff wins only if it is less than half as far as the next one, and never a game another sportsbook listing already belongs to; otherwise nothing is merged and the stub stays separate. On merge the stub's odds, player props, edges, best bets and odds history all move to the canonical event. A merged stub's ID keeps working on every event route: `GET /v1/events/:eventId` and its `/odds`, `/odds-history`, `/player-props`, `/edge`, `/best-bets` and `/play-by-play`. The response is the canonical event's (200, not 404), its `eventId` is the canonical ID, and `canonicalEventId` names it: on the event object for `GET /v1/events/:eventId`, and in `meta` on every event route. Client code should treat `isStub: true` events as fully usable but potentially missing some boxscore and play-by-play data. #### Start times `startTime` comes from the most reliable source that has it: the live scores feed, then the sportsbooks' kickoff while the game is still scheduled, then the season schedule. `startTimeTBA: true` means the kickoff isn't set yet and `startTime` is a placeholder on the right date (the football schedules list these at 04:00 UTC for college football and 00:00 UTC for the NFL, on the game's date, until a time is announced); it turns false once a real time arrives. Treat a TBA game's time as unknown, not as midnight. #### Home/away and neutral sites Home and away come from the league schedule, not from sportsbooks. When a sportsbook lists a game the other way round (common for neutral-site games), odds for that game are placed on the schedule's home and away sides; outcome names keep the sportsbook's spelling. Odds documents also carry the event's `homeTeamId` and `awayTeamId`, so join sides to `/v1/events` by ID or by home/away position, never by name: the sportsbook's "Georgia Bulldogs" is the event's "Georgia". NFL and NCAAF events carry `neutralSite`: - `true` — played in a different city from the home team's established home stadium (e.g. an international or bowl-site game) - `false` — played at the home team's established home stadium - `null` — not determinable yet: the venue isn't published, the home team hasn't played at least two games at one stadium, or the game is at a different stadium in the home team's own city #### Event status `scheduled`, `in_progress`, `final`, `postponed`, `delayed`, `cancelled`, or `no_result`. `no_result` marks a game with no result we can find — a sportsbook-listed game that never matched a scheduled game, a game still showing as not started 3 days after its start time, or any game (including a postponed one) that has not ended 7 days after its start time — and has no score. Treat it as ungraded, not as a completed game. Event lists leave `no_result` events out unless you filter by `status=no_result`. Events and `type=game` player game logs carry `gameType` where it is known: `preseason` (including spring training), `regular`, `postseason`, or `allstar`. MLB events include inning-by-inning `scores.periods`. #### GET /v1/events List events with filtering and pagination. **Tier:** Free **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Filter by league ID | | sport | string | — | Filter by sport | | date | string | — | Exact date (YYYY-MM-DD) | | from | string | — | Range start (ISO 8601) | | to | string | — | Range end (ISO 8601) | | status | string | — | `scheduled`, `in_progress`, `final`, `postponed`, `cancelled`, or `no_result` | | limit | number | 25 | Max 100 | | page | number | 1 | Page number | Final events also include explicit outcome fields so clients do not need to derive winners from the raw scores: - `outcome`: `home_win`, `away_win`, or `draw` - `winnerTeamId`, `winnerTeamName` - `loserTeamId`, `loserTeamName` **Response:** ```json { "success": true, "meta": { "count": 14, "total": 142, "page": 1, "pages": 6 }, "data": [ { "eventId": "nba-ev-311286", "leagueId": "nba", "sport": "basketball", "homeTeamName": "Boston Celtics", "awayTeamName": "Los Angeles Lakers", "startTime": "2026-03-09T23:30:00.000Z", "startTimeTBA": false, "status": "final", "isStub": false, "scores": { "home": 112, "away": 105 }, "outcome": "home_win", "winnerTeamId": "nba-bos", "winnerTeamName": "Boston Celtics", "loserTeamId": "nba-lal", "loserTeamName": "Los Angeles Lakers" } ] } ``` --- #### GET /v1/events/live Get all in-progress events with live scores (capped at 500 results). **Tier:** Free **Params:** `?league=nba` In-progress events include `period` and `clock` fields. --- #### GET /v1/events/today Get all events on the current `America/New_York` calendar day (capped at 500 results). **Tier:** Free **Params:** `?league=nba` --- #### GET /v1/events/:eventId Get full details for a single event. **Tier:** Free For final events, the response includes `outcome`, `winnerTeamId`, `winnerTeamName`, `loserTeamId`, and `loserTeamName`. An odds-stub ID (`-odds-...`) keeps working after the game is merged into its canonical event: the response is the canonical event, and its `eventId` is the canonical ID. Store that ID going forward. --- #### GET /v1/events/:eventId/play-by-play Get play-by-play data for a specific event. **Tier:** All plans --- #### GET /v1/leagues/:leagueId/scores Get game scores for a league on a specific date. **Tier:** Free **Params:** `?date=2026-03-20` (defaults to today) Returned event objects use the same schema as `/v1/events`. When a game is final, each event also includes `outcome`, `winnerTeamId`, `winnerTeamName`, `loserTeamId`, and `loserTeamName`. --- #### GET /v1/leagues/:leagueId/standings Get current standings for a league: the newest season we hold, one season per response. `meta.season` names it. Each table is filed under the season the league's data feed says it is serving, so when a league starts a new season its new table (every team 0-0 until games are played) becomes the default. **Tier:** Free **Params:** `?conference=Eastern&division=Atlantic`, `?season=2025-26` for an earlier season (`2026` for MLB and MLS) --- ### Teams & Players #### GET /v1/teams List all teams, optionally filtered by league. **Tier:** Free **Params:** `?league=nba`, `?limit=100&page=2` Every team comes back in one response unless you send `limit` or `page`. With either one, results are sorted by `teamId` and paged: `limit` is 1–100 (default 50), `page` starts at 1, and `meta` adds `total`, `page` and `pages`. `GET /v1/leagues/:leagueId/teams` pages the same way. Retired duplicate team ids (old ids kept for history, such as `nba-nyk` for `nba-new-york-knicks`) are not listed; `GET /v1/teams/:teamId` still answers for them. NCAAF includes every team that appears on an FBS schedule, including FCS opponents. NFL and NCAAF teams carry `externalIds.espn` (ESPN's team ID) where one exists, so results can be joined without a name table. **Response:** ```json { "success": true, "data": [ { "teamId": "ncaaf-virginia", "name": "Virginia", "leagueId": "ncaa_football", "externalIds": { "espn": "258" } } ], "meta": { "count": 1, "league": "ncaa_football" } } ``` --- #### GET /v1/leagues/:leagueId/teams List all teams in a league. **Tier:** Free **Response:** ```json { "success": true, "meta": { "count": 30, "league": "nba" }, "data": [ { "teamId": "nba-bos", "name": "Boston Celtics", "abbreviation": "BOS", "leagueId": "nba" } ] } ``` --- #### GET /v1/teams/:teamId Get detailed info for a team. **Tier:** Free --- #### GET /v1/teams/:teamId/roster Get the current roster for a team. **Tier:** Free **Response includes:** Array of `{ playerId, name, position, number }` --- #### GET /v1/teams/:teamId/injuries Get the injury report for a team. Refreshed every 6 hours league-wide, and every 30 minutes for teams with a game starting within the next 24 hours. **Coverage: NFL, NBA and NHL only.** MLB, NCAAF, NCAAB and soccer teams return 404 with an explicit "not available for this league" message — that is a coverage boundary, not a gap in a covered league. A covered team with nobody hurt returns 200 with an empty `players` array. **Tier:** All plans **Response includes:** Array of `{ playerId, name, position, status, injury, returnDate, firstSeenAt, lastChangedAt }`. `status` is one of `Out`, `IR`, `Suspended`, `NFI`, `PUP`, `Doubtful`, `Questionable`, `Day-to-Day`, `Probable` (MLB-style lists also appear as `10-Day IL`, `60-Day IL` and similar), or `Unknown` when the report uses a wording we do not recognise (including a row whose only state is a note about one specific week's game, such as "Inactive for Week 2"). `firstSeenAt` is when this player first appeared on the report; `lastChangedAt` is when their status, injury description, or return date last changed. Both are observation timestamps recorded by MoneyLine's ingestion pipeline (ISO 8601) — use them to prove a status was known before a given kickoff time. `playerId` links entries to `/v1/teams/:teamId/injuries/history` change events. --- #### GET /v1/teams/:teamId/injuries/history Injury report history for a team. Every status change is recorded permanently as a change event (history accrues from the feature's launch forward). Same coverage as the report itself: NFL, NBA and NHL. **Tier:** All plans **Params:** `?asOf=2026-08-12T19:00:00Z` (optional), `?limit=100` (optional, max 500, ignored with asOf) **Response includes:** With `asOf` (must carry an explicit timezone, e.g. `Z`) — the reconstructed injury report as it stood at that moment: `{ teamId, leagueId, asOf, players: [{ playerId, name, position, status, injury, returnDate, lastChangedAt }] }` (`players` is empty for moments before history began accruing). Without `asOf` — the change log, most recent first: `{ teamId, leagueId, changes: [{ changeType: "added"|"updated"|"removed", changedAt, playerId, name, position, status, previousStatus?, injury, returnDate, teamId, leagueId }] }`. --- #### GET /v1/teams/:teamId/stats Get aggregated stats for a team. **Tier:** Free **Params:** `?season=2025` --- #### GET /v1/teams/:teamId/schedule Get the schedule (past and upcoming) for a team. **Tier:** Free --- #### GET /v1/players List players, optionally filtered by league or team. Sorted by `name`, then `playerId`, so paging returns every player exactly once. **Tier:** Free **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Filter by league ID | | team | string | — | Filter by team ID | | limit | number | 50 | Max 100 | | page | number | 1 | Page number | **Response:** ```json { "success": true, "data": [ { "playerId": "nba-p-2544", "name": "LeBron James", "teamId": "nba-lal", "leagueId": "nba", "position": "SF" } ], "meta": { "count": 1, "total": 1, "page": 1, "pages": 1, "league": "nba" } } ``` --- #### GET /v1/players/:playerId Get detailed info for a player. **Tier:** Free **Notes:** - Response includes all stored player fields plus `teamAbbr` (e.g. `"NYK"`) and `teamName` (e.g. `"New York Knicks"`) looked up from the teams collection via the player's `teamId`. --- #### GET /v1/players/:playerId/stats Get stats for a player. **Tier:** Free **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | type | string | season | `season` or `game` | | season | string | current | Season year (e.g. "2025" or "2025-26") | | eventId | string | — | For `type=game` only. Filter to one exact event ID | | date | string | — | For `type=game` only. Exact date (`YYYY-MM-DD`) | | from | string | — | For `type=game` only. Range start (`YYYY-MM-DD` or ISO 8601) | | to | string | — | For `type=game` only. Range end (`YYYY-MM-DD` or ISO 8601) | **Notes:** - If `type` is omitted, the API returns season summaries. - `type=season` rejects `date`, `from`, and `to`. - `type=season` rejects `eventId`. - `date` cannot be combined with `from` or `to`. - `type=career` is not currently supported. - Player stats are refreshed daily. - `type=game` game log entries include `gameDateDisplay` (formatted date string, e.g. `"Mar 14"`) and `opponentAbbr` (opponent team abbreviation, e.g. `"LAL"`) for display purposes. --- #### GET /v1/players/:playerId/hit-rates Get hit rates for a player against a specific prop line — how often the player has cleared the line in recent games. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | **Required.** Prop market key (e.g. `player_points`, `player_assists`, `player_rebounds`) | | line | number | — | Required for standard line-based markets. Omit it for yes/no or over-only markets; the API will treat those as `line=0` | **Notes:** - Binary yes/no markets (e.g. `player_anytime_td`, `player_anytime_goal_scorer`) use `line=0`, meaning "at least one". `hits`/`rate` are the Yes side; `underHits`/`underRate` are the No side. - Every window is graded at the exact line. `hits`/`rate` are the Over; `underHits`/`underRate` are the Under; `pushes` counts games where the stat landed exactly on the line (a win for neither side); `misses` counts games the requested side lost. `games` = hits + misses + pushes, and rates divide by it. `noData` counts games the player played but the feed has no value for the stat; they are not in `games`. - Windows count only games the player took part in: MLB batters need a plate appearance and pitchers a batter faced, NBA/NCAAB players need minutes and NHL players time on ice (or, when the feed drops those, a shot, rebound, assist or similar), football players any recorded stat (a football player who played but has no line in a category recorded zero there), and soccer players minutes on the pitch (an unused substitute is left out). A pinch-runner appearance or a DNP is left out, so L5 is the last five games he actually played. - Hit rates count regular-season and postseason games only. Preseason, spring training and All-Star games are left out of every window. - Football touchdown markets count touchdowns the player **scored**: rushing, receiving, and kick/punt return, fumble-return and interception-return touchdowns. A quarterback throwing a touchdown pass does not count, since the receiver is the scorer. This applies to `player_anytime_td` and `player_tds_over`; use `player_pass_rush_reception_tds` for the market that includes passing touchdowns. - Markets that no box score settles (first/last scorer, single-quarter markets, fantasy points, longest completion, pitcher win, soccer shots, since books count blocked attempts that the feed's player totals leave out), the World Cup (no game logs), and a player listed in the wrong role for the market (a pitcher under a batter market) return `hitRateSupported: false` with a `hitRateReason` code and a `reason` sentence, and no `hitRates` object. `GET /v1/markets` lists `hitRateSupported` and `hitRateReason` for every market. - Hit rates for currently offered lines are precomputed and refreshed whenever new game logs land; other lines are computed on request. Requests never store anything. **Response (standard market):** ```json { "success": true, "data": { "playerId": "nba-p-4065648", "market": "player_points", "line": 14.5, "direction": "over", "hitRateSupported": true, "hitRates": { "L5": { "games": 5, "hits": 4, "rate": 0.800, "misses": 1, "pushes": 0, "noData": 0, "underHits": 1, "underRate": 0.200 }, "L10": { "games": 10, "hits": 6, "rate": 0.600, "misses": 4, "pushes": 0, "noData": 0, "underHits": 4, "underRate": 0.400 }, "L25": { "games": 25, "hits": 15, "rate": 0.600, "misses": 10, "pushes": 0, "noData": 0, "underHits": 10, "underRate": 0.400 }, "season": { "games": 62, "hits": 37, "rate": 0.597, "misses": 25, "pushes": 0, "noData": 0, "underHits": 25, "underRate": 0.403 } } } } ``` **Response (uncomputable market):** ```json { "success": true, "data": { "playerId": "nfl-p-12345", "market": "player_1st_td", "hitRateSupported": false, "reason": "Settled by the order of events in the game (first or last scorer), which box scores do not record.", "hitRateReason": "in_game_order" } } ``` --- #### GET /v1/players/trending Get players sorted by hit rate, paired with their best available prop line and odds. Designed for discovery surfaces that rank players by recent performance against the market. Covers games that are not final and start within the next 24 hours (or started within the last 12). `direction=under` ranks by the Under hit rate at each player's best Under line, and `hitRates.*.hits` counts Under hits (a push is never an Under win); yes/no markets have no Under side and return no rows for it. Windows carry the same fields as `/hit-rates` (misses, pushes, noData, underHits, underRate). Ranking shrinks each window toward 50% — (hits + 3) / (games + 6) — and a window needs at least 5 (L5, season), 8 (L10) or 15 (L25) graded games to rank, so a 3-for-3 never outranks a 20-for-25; players below the minimum sort last. `bestOdds` is a sportsbook or exchange price; DFS pick'em lines are never the best odds. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | **Required.** League ID (`nba`, `nfl`, `mlb`, `nhl`) | | market | string | — | **Required.** Prop market key (e.g. `player_points`) | | sortBy | string | `l5` | Hit-rate window to sort by: `l5`, `l10`, `l25`, or `season` | | direction | string | `over` | `over` or `under` | | limit | number | 25 | Max 50 | | page | number | 1 | Page number | **Response:** ```json { "success": true, "data": [ { "playerId": "nba-p-4065648", "playerName": "Coby White", "teamId": "nba-cha", "teamAbbr": "CHA", "teamName": "Charlotte Hornets", "position": "PG", "eventId": "nba-ev-311286", "market": "player_points", "direction": "over", "bestLine": 14.5, "bestOdds": -108, "bookmakerName": "DraftKings", "bookmakerId": "draftkings", "sourceType": "sportsbook", "hitRates": { "L5": { "games": 5, "hits": 4, "rate": 0.800 }, "L10": { "games": 10, "hits": 6, "rate": 0.600 }, "L25": { "games": 25, "hits": 15, "rate": 0.600 }, "season": { "games": 62, "hits": 37, "rate": 0.597 } } } ], "meta": { "count": 25, "total": 87, "page": 1, "pages": 4, "league": "nba", "market": "player_points", "sortBy": "l5", "direction": "over" } } ``` --- #### GET /v1/players/trends Get each player's highest-profit active prop trend over a rolling game window. This endpoint is designed for trends/discovery pages that need matchup context, the best current bet, and flat-stake profit in one response. Covers games that are not final and start within the next 8 days (or started within the last 12 hours). Profit is computed only at sportsbook and exchange prices; DFS pick'em lines and exchange placeholder quotes are never used, so `sourceType=dfs` returns no trends. Trends are graded exactly like `/hit-rates`: the window is the player's last N games he took part in, a stat landing on the line is a push (no win, no loss), and `hitRate` is wins / (wins + losses + pushes). **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Optional league ID filter (`nba`, `nfl`, `mlb`, `nhl`, `ncaa_basketball`, `ncaa_football`, `soccer_epl`, `soccer_mls`, `soccer_world_cup`) | | window | number | `25` | Rolling game window size. Integer from `1` to `100` | | bookmaker | string | — | One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi) | | sourceType | string | `all` | `all`, `sportsbook`, `dfs`, or `exchange` | | limit | number | `25` | Max 50 | | page | number | `1` | Page number | **Response:** ```json { "success": true, "data": [ { "player": { "playerId": "nba-p-4065648", "name": "Coby White", "teamId": "nba-chi", "teamAbbr": "CHI", "teamName": "Chicago Bulls", "team": "CHI", "matchup": "CHI @ NYK" }, "eventId": "nba-ev-311286", "leagueId": "nba", "bet": { "market": "player_points", "marketName": "Player Points", "direction": "under", "line": 24.5, "price": 125, "bookmakerId": "bovada", "bookmakerName": "Bovada", "sourceType": "sportsbook" }, "sampleSize": 25, "performance": { "wins": 20, "losses": 5, "pushes": 0, "hitRate": 0.8, "stake": 100 }, "profit": 2000 } ], "meta": { "count": 25, "total": 73, "page": 1, "pages": 3, "window": 25, "stake": 100, "league": "nba", "sourceType": "all" } } ``` --- #### GET /v1/players/:playerId/analysis Get an integrated analysis for a player: current best bet, game-by-game chart data, and hit rates in a single response. Designed for player detail screens. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | **Required.** Prop market key (e.g. `player_points`) | | window | string | `l5` | Time window for the chart: `l5`, `l10`, `l25`, or `season` | | season | string | current season when `window=season` | Optional season filter for the chart + hit rates (e.g. `2025` or `2025-26`) | | eventId | string | — | Optional exact event filter for chart + hit rates | | date | string | — | Optional exact game date filter for chart + hit rates (`YYYY-MM-DD`) | | from | string | — | Optional range start for chart + hit rates (`YYYY-MM-DD` or ISO 8601) | | to | string | — | Optional range end for chart + hit rates (`YYYY-MM-DD` or ISO 8601) | **Notes:** - `date` cannot be combined with `from` or `to`. - With no game-log filters, the endpoint behaves like a fast current player detail view. - `window=season` returns the full selected season's game logs in the chart, not just L25. - If `season`, `eventId`, `date`, `from`, or `to` are provided, the chart and hit rates are computed from that filtered game-log set. - `bestBet` still reflects the current best available line for the player + market, even when historical chart filters are applied. **Response:** ```json { "success": true, "data": { "player": { "playerId": "nba-p-4065648", "playerName": "Coby White", "teamId": "nba-cha", "leagueId": "nba", "position": "PG" }, "currentEvent": { "eventId": "nba-ev-311286", "homeTeamId": "nba-cha", "awayTeamId": "nba-nyk", "startTime": "2026-03-26T23:10:00.000Z" }, "bestBet": { "market": "player_points", "line": 14.5, "odds": -108, "bookmakerId": "draftkings", "bookmakerName": "DraftKings", "sourceType": "sportsbook" }, "hitRates": { "L5": { "games": 5, "hits": 4, "rate": 0.800 }, "L10": { "games": 10, "hits": 6, "rate": 0.600 }, "L25": { "games": 25, "hits": 15, "rate": 0.600 }, "season": { "games": 62, "hits": 37, "rate": 0.597 } }, "chart": { "window": "l5", "line": 14.5, "filters": { "season": "2025-26" }, "games": [ { "gameDate": "2026-03-14T00:00:00.000Z", "gameDateDisplay": "Mar 14", "opponent": "San Antonio Spurs", "opponentAbbr": "SAS", "value": 18, "hit": true }, { "gameDate": "2026-03-17T00:00:00.000Z", "gameDateDisplay": "Mar 17", "opponent": "Miami Heat", "opponentAbbr": "MIA", "value": 24, "hit": true }, { "gameDate": "2026-03-19T00:00:00.000Z", "gameDateDisplay": "Mar 19", "opponent": "Orlando Magic", "opponentAbbr": "ORL", "value": 27, "hit": true }, { "gameDate": "2026-03-21T00:00:00.000Z", "gameDateDisplay": "Mar 21", "opponent": "Memphis Grizzlies", "opponentAbbr": "MEM", "value": 12, "hit": false }, { "gameDate": "2026-03-24T00:00:00.000Z", "gameDateDisplay": "Mar 24", "opponent": "Sacramento Kings", "opponentAbbr": "SAC", "value": 27, "hit": true } ] } } } ``` --- ### Odds & Bookmakers #### GET /v1/odds Browse odds with filtering. Returns odds from sportsbooks, DFS platforms, and exchanges by default. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Filter by league ID | | market | string | — | `moneyline`, `spread`, `total`, or any supported prop market such as `player_points` | | bookmaker | string | — | One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi) | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | limit | number | 25 | Max 50 | | page | number | 1 | Page number | **Notes:** - Default venue ordering is sportsbook, then DFS, then exchange, then unknown. - All plans can access the full returned venue set. - `sourceType`, `bookmaker`, and `market` filters are applied before the response is returned. - Every market carries `lastUpdate` and `isStale`. `isStale: true` means the book has not refreshed that price in 12 hours, so it may no longer be available. Stale prices stay in the response so you can show them labeled; they never count toward summaries, best bets, or edges. - Every outcome and market carries the bet identity fields described in [Outcome fields](#outcome-fields-odds-and-player-props). **Response:** ```json { "success": true, "meta": { "count": 25, "page": 1 }, "data": [ { "eventId": "nba-ev-311310", "leagueId": "nba", "bookmakers": [ { "bookmakerId": "draftkings", "bookmakerName": "DraftKings", "sourceRegion": "us", "sourceType": "sportsbook", "markets": [...] }, { "bookmakerId": "prizepicks", "bookmakerName": "PrizePicks", "sourceRegion": "us_dfs", "sourceType": "dfs", "markets": [...] }, { "bookmakerId": "kalshi", "bookmakerName": "Kalshi", "sourceRegion": "us_ex", "sourceType": "exchange", "markets": [...] } ] } ] } ``` --- #### Outcome fields (odds and player props) Pass `include=outcomeFields` on `/v1/odds`, `/v1/events/:eventId/odds`, `/v1/player-props` or `/v1/events/:eventId/player-props` and every outcome (odds) or offer (player props) carries these fields next to its existing ones. They are opt-in because they roughly double an uncompressed odds response; without the parameter responses are unchanged. Market fields (`isAlternate`, `mainPoint`) and summary fields are always included. - `betKey` (string): the bet's identity, `market|participant|point|side` in lowercase. The same bet has the same `betKey` on odds, player props, summaries, best bets and edges, so you can join them. A spread's point is the home team's line on both sides: `spread||-3|home` and `spread||-3|away` are the two sides of home -3. - `side` (string or null): `home`, `away`, `draw`, `over`, `under`, `yes` or `no`. `null` when the selection name is not a known side or one of the game's teams; such a price is never priced (it is never guessed as Over or Yes). - `participantId` (string or null): the MoneyLine `playerId` for player props, the `teamId` for team selections (moneyline, spread, team totals), otherwise `null`. - `isPriceable` (boolean): `true` when this price counts for best line, fair price, EV, value and arbitrage: a known side at a sportsbook or exchange, not a placeholder, refreshed in the last 12 hours, and the game has not started. DFS pick'em lines and venues missing from the catalog are always `false`. - `isPlaceholder` (boolean, present only when `true`): an exchange contract-bound quote (±9900 and beyond) or a missing price. - `netPrice` (number, present only when a venue fee changes the price): American odds after the fee. When it is absent, the price is already net. - `venueKind` (string): `sportsbook`, `exchange`, `prediction_market`, `dfs` or `unknown`. On `/v1/odds` it is on each bookmaker; on player props it is on each offer. Every market also carries: - `isAlternate` (boolean): an alternate-line market (for example `player_pass_yds_alternate`). - `mainPoint` (number or null): the line the most books quote on both sides, one vote per brand (a book's regional feeds count once); ties go to the line closest to even money. For spreads it is the home team's point. It counts every sportsbook and exchange price, including old ones, so far-out games still have a main line. `null` when no book quotes both sides of any line (moneylines, Yes-only props, Over-only ladders). On `/v1/odds`, markets that hold many players (player props) have `mainPoint: null`; use `/v1/player-props`, where each player's market has its own. It uses every book for the game, except on `/v1/odds` with a `bookmaker` or `sourceType` filter, where it uses the filtered books. ```json { "marketType": "spread", "isAlternate": false, "mainPoint": -3, "isStale": false, "outcomes": [ { "name": "Jacksonville Jaguars", "point": -3, "price": -107, "betKey": "spread||-3|home", "side": "home", "participantId": "nfl-jacksonville-jaguars", "isPriceable": true } ] } ``` --- #### GET /v1/events/:eventId/odds Get odds for a specific event. Includes a `summary` object with fair odds (no-vig), best odds, and average odds per market and outcome for cross-book comparison. The summary uses only prices refreshed in the last 12 hours; it is empty when every price for the event is stale. Markets carry `isStale` as on `GET /v1/odds`. Summary rows are one per selection: market, player (`description`, on player props), line, and side. Only sportsbook and exchange prices count; DFS pick'em lines, venues missing from the catalog, exchange placeholder quotes (±9900 and beyond), and selections that are not a known side or one of the game's teams are left out. `fairOdds` is the average of each sportsbook's own no-vig price (margin removed by the odds-ratio method, the same fair price edges use), over the sportsbooks that quote every side of the bet (both sides of a spread or total, all three soccer moneyline outcomes); exchanges don't vote. It is `null` when no sportsbook prices the other side, such as a Yes-only prop. `avgOdds` is the average price of those same sportsbooks with the margin left in. Both count each brand once (regional feeds of one book vote once) and leave out a book whose prices for the bet imply less than 98% or more than 115% in total, a broken line. Exchanges and prediction markets count toward neither, so `avgOdds` is `null` whenever `fairOdds` is. Each row also carries `betKey` and `side` (see [Outcome fields](#outcome-fields-odds-and-player-props)), `bestSportsbook` (`{ bookmakerId, price, netPrice }`, the best net price at a sportsbook, or `null`) and `bestExchange` (`{ bookmakerId, price, netPrice, venueKind }`, the best net price at an exchange or prediction market, or `null`). `bestOdds` is unchanged: the best price across both. **First-half markets (NFL, NBA).** From 36 hours before the start, NFL and NBA games also carry the first-half moneyline, spread and total under the keys `h2h_h1`, `spreads_h1` and `totals_h1`: in each book's `markets` (US sportsbooks only, next to that book's full-game markets) and in `summary` with the same row fields. The first-half moneyline is two-way: a tied half is a push. They are refreshed every 3 hours, every 30 minutes in the last 3 hours and every 10 minutes in the last hour, so a first-half price can be older than the full-game one (check `isStale` and `lastUpdate`). `market=spreads_h1` returns one of them alone. Other leagues and `GET /v1/odds` are unchanged. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | market | string | — | Optional exact market filter such as `moneyline`, `spread`, `total`, or (NFL, NBA) `h2h_h1`, `spreads_h1`, `totals_h1` | | bookmaker | string | — | One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi). Narrows `bookmakers`; the `summary` still compares every book | **Response includes:** ```json { "summary": { "moneyline": [ { "name": "Charlotte Hornets", "betKey": "moneyline|||home", "side": "home", "fairOdds": -109.7, "bestOdds": -113, "avgOdds": -118.8, "bestSportsbook": { "bookmakerId": "draftkings", "price": -115, "netPrice": -115 }, "bestExchange": { "bookmakerId": "novig", "price": -113, "netPrice": -113, "venueKind": "exchange" } }, { "name": "New York Knicks", "betKey": "moneyline|||away", "side": "away", "fairOdds": 109.7, "bestOdds": 115, "avgOdds": 102, "bestSportsbook": { "bookmakerId": "fanduel", "price": 115, "netPrice": 115 }, "bestExchange": null } ], "player_points": [ { "name": "Over", "description": "LaMelo Ball", "point": 24.5, "fairOdds": 104.2, "bestOdds": 110, "avgOdds": -104.8 } ], "spread": [ ... ], "total": [ ... ] }, "bookmakers": [ ... ] } ``` --- #### GET /v1/events/:eventId/odds-history Consensus odds history for a specific event — one snapshot per refresh tick, showing how the line has moved over time. Each snapshot contains one row per `(marketType, outcome, point)` with the **average**, **best**, and **no-vig fair** price at that moment. Game markets (moneyline/spread/total) and player props are both included. Snapshots are written on a tiered cadence based on time-to-game so storage stays small: | Time to event | Snapshot interval | |---|---| | > 7 days | every 24 hours | | 24 hours – 7 days | every 12 hours | | 3 – 24 hours | every 60 minutes | | < 3 hours | every 20 minutes | Game-market rows (moneyline, spread, total) are the sportsbook consensus: sportsbooks that updated the market in the last 12 hours, one vote per brand (a book's regional feeds count once), each counted only when it prices every side with a real two- or three-way line. A row needs 3 or more sportsbooks and is left out otherwise. `avgPrice` and `avgImpliedProb` are their average price, `fairOdds` is their no-vig price (the sides sum to 100%; odds-ratio method, as `fairProb` on edges), and `bookCount` is how many sportsbooks that is. Exchanges and prediction markets never move the average, but `bestPrice` / `bestBook` is the best current price at any sportsbook or exchange. Player-prop rows count books that updated the prop in the last 12 hours: `avgPrice` averages each book's price for that side (a book's regional feeds count once) and `bookCount` is how many books that is. `fairOdds` is the no-vig price of the sportsbooks that quote both sides of that player's line with a real two-way price, even one, and is `null` when none does, such as an anytime-scorer Yes or an Over with no Under at that line: a one-sided price still includes the book's margin. Unlike game rows, a prop's `avgPrice` can include books that quote only that side, so `avgPrice` minus `fairOdds` is not a book's margin. DFS operators are always excluded because their prices are indicative, not tradeable. Only snapshots built this way are returned, so history for games listed before 2026-10-21 (the switch to the odds-ratio fair price) starts on that date. History for an event is deleted 48–72 hours after the game starts. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | Optional exact market filter (e.g. `moneyline`, `spread`, `total`, `player_points`) | | playerId | string | — | Optional canonical player ID — returns only rows for that player's props within the event | | from | ISO date | — | Return snapshots at or after this time | | to | ISO date | — | Return snapshots at or before this time | | limit | integer | 500 | Max snapshots returned (capped at 2000) | Prop-market rows include `player` (the player name) and `playerId` (the canonical ID used elsewhere in the API) when resolvable, alongside the `outcome` side (`Over`/`Under`/etc). **Response:** ```json { "eventId": "nba-ev-lakers-celtics-2026-04-15t1900", "count": 14, "snapshots": [ { "eventId": "nba-ev-lakers-celtics-2026-04-15t1900", "leagueId": "nba", "sport": "basketball", "snapshotAt": "2026-04-08T19:00:00.000Z", "markets": [ { "marketType": "moneyline", "outcome": "Los Angeles Lakers", "avgPrice": -118, "avgImpliedProb": 0.5413, "bestPrice": -112, "bestBook": "fanduel", "fairOdds": -109.7, "bookCount": 12 }, { "marketType": "spread", "outcome": "Boston Celtics", "point": 2.5, "avgPrice": -110, "avgImpliedProb": 0.5238, "bestPrice": -105, "bestBook": "draftkings", "fairOdds": -100.9, "bookCount": 12 } ] } ] } ``` Snapshots are sorted ascending by `snapshotAt`, so the first entry is the opening consensus line captured for that event and the last is the most recent. --- #### GET /v1/players/:playerId/odds-history Cross-event consensus odds history for a single player. Each snapshot's `markets` array contains only rows belonging to that player, so the response plugs directly into a player detail page that charts how the market has moved on their props over time. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | Optional exact prop market filter (e.g. `player_points`, `player_rebounds`) | | eventId | string | — | Optional exact event filter — scope to a single game | | from | ISO date | — | Return snapshots at or after this time | | to | ISO date | — | Return snapshots at or before this time | | limit | integer | 500 | Max snapshots returned (capped at 2000) | **Response:** same shape as `/v1/events/:eventId/odds-history`, but the top-level object is keyed by `playerId` instead of `eventId`, and every row in every snapshot will have `playerId` equal to the requested ID. --- #### GET /v1/odds/bookmakers List all tracked sportsbooks, DFS platforms, and exchanges. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | Lists every book with prices in the last 30 days, sorted by `name` (the book's current title, as on `GET /v1/odds`). Each entry describes how MoneyLine treats the venue: | Field | Description | |-------|-------------| | bookmakerId | Key used on every odds, props and edge response | | name | Display name | | sourceType | `sportsbook`, `dfs`, `exchange`, or `unknown` (a book not yet in the catalog) | | sourceRegion | `us`, `us2`, `us_dfs`, `us_ex`, or `unknown` | | venueKind | `sportsbook`, `exchange`, `prediction_market`, `dfs`, or `unknown` | | priceIsMarket | `true` when the listed price is a real bettable price; `false` for DFS pick'em multipliers and unknown books | | feeModel | `{ type, rate, source }`: `type` is `none`, `commission_on_winnings` (`rate` is the share of profit kept), `commission_on_payout` (`rate` is the share of stake plus winnings kept), `per_contract` (fee per $1 contract = `rate` x P x (1 - P)), or `unknown`; `source` is the published fee schedule | | eligibility | `{ fairConsensus, edges, arbitrage, bestLine }`: whether the venue sets the fair price, can be scored for value/EV, can be an arbitrage leg, and can be a best line | | propsEnabled | Whether player props are collected from this venue | | brand | Feeds that copy one book share a brand (e.g. `hardrockbet_fl` and `hardrockbet_oh` are `hardrockbet`); a brand counts once in the fair price | | logoKey | Stable key for the venue's logo | ```json { "success": true, "data": [ { "name": "DraftKings", "sourceType": "sportsbook", "sourceRegion": "us", "venueKind": "sportsbook", "priceIsMarket": true, "feeModel": { "type": "none", "rate": null, "source": null }, "eligibility": { "fairConsensus": true, "edges": true, "arbitrage": true, "bestLine": true }, "propsEnabled": true, "brand": "draftkings", "logoKey": "draftkings", "bookmakerId": "draftkings" }, { "name": "Kalshi", "sourceType": "exchange", "sourceRegion": "us_ex", "venueKind": "prediction_market", "priceIsMarket": true, "feeModel": { "type": "per_contract", "rate": 0.07, "source": "https://kalshi.com/docs/kalshi-fee-schedule.pdf" }, "eligibility": { "fairConsensus": false, "edges": true, "arbitrage": true, "bestLine": true }, "propsEnabled": false, "brand": "kalshi", "logoKey": "kalshi", "bookmakerId": "kalshi" }, { "name": "PrizePicks", "sourceType": "dfs", "sourceRegion": "us_dfs", "venueKind": "dfs", "priceIsMarket": false, "feeModel": { "type": "none", "rate": null, "source": null }, "eligibility": { "fairConsensus": false, "edges": false, "arbitrage": false, "bestLine": false }, "propsEnabled": true, "brand": "prizepicks", "logoKey": "prizepicks", "bookmakerId": "prizepicks" } ], "meta": { "count": 3 } } ``` **Bookmaker key aliases:** Some bookmakers arrive under more than one key — e.g. `hardrockbet` and `hardrock_bet`, or the state feeds `hardrockbet_fl` and `hardrockbet_oh`. They share a `brand`. --- ### Player Props Player props are normalized onto the same canonical event namespace used by Events and Odds. The `eventId` returned by `/v1/player-props` is always the join-safe event identifier for `/v1/events`, `/v1/events/:eventId/odds`, and `/v1/events/:eventId/player-props`. Each props event object also includes: - `canonicalEventId` (same value as `eventId`, explicit join key), - `homeTeamName`, - `awayTeamName`, - `startTime`. Every player entry in a props response includes a `playerId` that is the same canonical ID used by `/v1/players/:playerId` and `/v1/players/:playerId/stats`. This means you can filter props by player ID and join prop lines directly against game logs or season stats without any name-matching on your end. Edge and best-bet responses also use that same canonical `eventId`. If you discover a bet via `/v1/edge`, `/v1/edge/value`, `/v1/edge/ev`, `/v1/edge/arbitrage`, or `/v1/best-bets`, you can use the returned `eventId` directly with the event, odds, player-props, and event-edge endpoints. #### GET /v1/player-props Browse player props grouped by event, player, market, and line. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Filter by league ID | | market | string | — | Exact prop market key such as `player_points`, `player_pass_yds`, or `pitcher_strikeouts` | | player | string | — | Case-insensitive player-name substring filter | | playerId | string | — | Exact internal player ID (e.g. `nba-p-4065648`). Faster and unambiguous — use this instead of `player` when you have the ID | | bookmaker | string | — | One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi) | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | includeUnresolved | boolean | `false` | `true` also returns players we could not match to a canonical player, with `playerId: null` | | limit | number | 25 | Max 50 | | page | number | 1 | Page number | **Notes:** - Results are paginated at the event level. - `eventId` is canonicalized to the Events namespace; use it directly to join with `/v1/events`. - `canonicalEventId` is provided as an explicit stable join key (same value as `eventId`). - Event-level metadata (`homeTeamName`, `awayTeamName`, `startTime`) is included for defensive matching and display. - Each player entry includes a `playerId` matching the ID returned by `/v1/players` and `/v1/players/:playerId/stats`. - Each player entry includes `teamAbbr` (e.g. `"NYK"`) and `teamName` (e.g. `"New York Knicks"`) for display purposes. - Players that could not be resolved onto a canonical `playerId` are omitted by default so every returned player remains joinable; `unresolvedPlayersOmitted` on each event says how many were left out. Pass `includeUnresolved=true` to get them with `playerId: null`. - Each player entry includes `resolutionStatus`: `resolved`, or for unresolved players `unmatched` (nobody by that name on either team's roster), `ambiguous` (two players fit equally) or `unknown_teams` (the event's teams could not be identified). A player is only ever matched to someone on one of the two teams in the game, and one `playerId` appears at most once per event. - Spellings that differ only by accents or punctuation ("André Gomes" / "Andre Gomes") are one player; the other spellings are listed in `nameVariants` and the `player` filter matches any of them. - Each player entry includes `availability`: `out`, `doubtful`, `questionable`, `probable` (from the latest injury report on file for their team), `active` (their team's report does not list them and the league's reports have changed within the last 36 hours) or `unknown` (no injury report for their team or league, or the league's reports have not changed in over 36 hours so absence from them proves nothing — MLB, college and soccer are always `unknown`). - `playerId` and `player` can be combined with `market`, `bookmaker`, and `sourceType`. - Every offer carries the [outcome fields](#outcome-fields-odds-and-player-props) (`participantId` is the player's `playerId`), and every player market carries `isAlternate` and that player's `mainPoint`. - `isBest` is `true` on the top price per side (Over and Under separately) among offers with `isPriceable: true`. **Response:** ```json { "success": true, "meta": { "count": 1, "page": 1 }, "data": [ { "eventId": "nba-ev-311310", "canonicalEventId": "nba-ev-311310", "leagueId": "nba", "sport": "basketball", "homeTeamName": "Boston Celtics", "awayTeamName": "New York Knicks", "startTime": "2026-03-26T23:10:00.000Z", "fetchedAt": "2026-03-25T00:10:00.000Z", "players": [ { "playerName": "Jayson Tatum", "playerId": "nba-p-4065648", "teamAbbr": "BOS", "teamName": "Boston Celtics", "markets": [ { "marketType": "player_points", "marketName": "Points", "format": "over_under", "isAlternate": false, "mainPoint": 29.5, "lines": [ { "point": 29.5, "offers": [ { "bookmakerId": "fanduel", "bookmakerName": "FanDuel", "sourceType": "sportsbook", "sourceRegion": "us", "selection": "Over", "price": 120, "impliedProbability": 0.455, "isBest": true, "betKey": "player_points|jayson tatum|29.5|over", "side": "over", "participantId": "nba-p-4065648", "isPriceable": true, "venueKind": "sportsbook" } ] } ] } ] } ] } ] } ``` --- #### GET /v1/events/:eventId/player-props Get player props for a specific event using an `eventId` from `/v1/events`. The endpoint resolves legacy/mismatched stored props IDs server-side and returns a response keyed to the requested canonical event ID. Each line entry includes a `summary` with fair odds, best odds, and average odds per selection (over/under, yes/no) for easy cross-book comparison. `fairOdds` is the sportsbook no-vig consensus over offers with `isPriceable: true`, and is `null` when no sportsbook prices every side of the line (a Yes-only or Over-only line). `bestOdds` and `avgOdds` cover every quoted price on that selection, DFS included; the best price you can actually bet at a sportsbook or exchange is the offer with `isBest: true`. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | Exact prop market key | | player | string | — | Case-insensitive player-name substring filter | | playerId | string | — | Exact internal player ID | | bookmaker | string | — | One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi) | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | includeUnresolved | boolean | `false` | `true` also returns unresolved players with `playerId: null` (see `/v1/player-props`) | **Line summary example:** ```json { "point": 14.5, "summary": { "over": { "fairOdds": 103, "bestOdds": -108, "avgOdds": -114.3 }, "under": { "fairOdds": -103, "bestOdds": -110, "avgOdds": -121.8 } }, "offers": [ ... ] } ``` --- #### GET /v1/player-props/markets List supported player prop markets by league. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Optional league ID to return one league only | **Response:** Array of `{ leagueId, sport, markets[] }` where each market includes `marketType`, `marketName`, `format`, `isAlternate`, and `supportsPoint`. --- #### GET /v1/markets The market registry: every game market and player-prop market by league, with how it is settled. 1 credit per request, like other data endpoints. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Optional league ID to return one league only | **Response:** Array of market entries: - `key`, `leagueId`, `name` — our market key (e.g. `moneyline`, `player_points`) and display name. - `providerKeys` — odds-provider keys that map to it (e.g. `h2h` → `moneyline`). - `scope` — `game` or `player`. `period` — `full`, or `q1` for first-quarter markets. `isAlternate` — alternate-line ladder. - `outcomeShape` — `two_way`, `three_way` (soccer moneyline), `one_sided`, or `yes_no`. `pairing` — how outcomes pair: `over_under`, `home_away`, `home_draw_away`, `yes_no`, or `none`. - `stat` — `{ fields[], group }`: the box-score fields summed to settle it (derived fields such as `hitting.total_bases` or `double_double` are computed from the feed), or `null`. - `hitRateSupported` / `hitRateReason` — whether `/hit-rates` can compute it, and a code when not (`in_game_order`, `no_box_score_field`, `period_stats_unavailable`, `proprietary_formula`, `not_a_player_market`, `no_game_logs`). `meta.hitRateReasons` maps each code to a sentence; `/hit-rates` can also return `role_mismatch` for a player in the wrong role. --- ### Edge Data & Analysis #### GET /v1/edge Browse edge opportunities (arbitrage, value bets, positive EV). **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | type | string | — | `arbitrage`, `value`, or `ev` | | league | string | — | Filter by league ID | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | market | string | — | Optional exact market filter | | minProfit | number | — | Min profit % (arbitrage only) | | minEdge | number | — | Min edge % (value bets only) | | limit | number | 25 | Max 50 | | page | number | 1 | Page number | **sourceType behavior for edge endpoints:** - `sportsbook` — sportsbook-only arbs + sportsbook value/EV bets. - `dfs` — returns no edges. DFS pick'em prices are indicative, not tradeable lines, so they are never scored for value, EV, or arbitrage. - `exchange` — exchange value/EV bets, plus exchange-only arbitrage when the after-fee prices still make one. - `all` (default) — all value/EV bets plus all arbitrage edges, including `mixed` sportsbook/exchange arbitrage when present. **How edges are computed:** - Pregame only. Edges exist only for games whose `startTime` is in the future; once a game starts its edges disappear from every edge endpoint, whatever its `status`. - Only prices a book refreshed in the last 12 hours are used, and an edge drops out when its price passes 12 hours old even before the next recalculation. - `fairProb` (the no-vig fair win probability) removes each sportsbook's margin across every side of the bet (both sides of a 2-way market, all three of a 3-way) by the odds-ratio method: every side's odds (p / (1 − p)) are divided by one ratio chosen so the sides sum to 100%, so a long shot gives up more of the margin than a favorite, as books price it. Before 2026-10-21 the margin was split in proportion to each side's probability, which left long underdogs too likely: on 2024-26 closing prices, moneylines at +200 or longer that it called +5.0% EV returned -14.2%. It then averages the sportsbooks that quote every side, leaving out the book being scored (a book is never scored against its own price). Feeds that copy one book count once, and a book whose own prices add up to less than 98% or more than 115% is skipped. At least three such sportsbooks are required. `modelProb` equals `fairProb` rounded to 3 decimals; `fairOdds` is `fairProb` as American odds; `consensusBooks` is how many sportsbooks it was built from. - Bets quoted on one side only (for example anytime-TD "Yes" or alternate lines with no "Under") have no fair price and never produce value or EV edges. - A player whose team's current injury report lists them as out (the prop's `availability` is `out`: Out, IR or injured list, PUP, NFI, suspended or paternity) has no value, EV or arbitrage edges on any of their props; questionable, doubtful and probable players are unchanged, and nothing is removed while the league's reports have not changed in over 36 hours. - DFS pick'em and unrecognized books are never scored or counted in the fair price. Exchange placeholder quotes (such as ±9900) are ignored everywhere. - Every number is computed on `netPrice`: the price after the venue's published fee (ProphetX keeps a share of winnings, BetOpenly a share of the whole payout; Kalshi and Polymarket charge per contract; sportsbooks and Novig pre-game charge nothing, so `netPrice` equals `odds`). `odds` stays the quoted price. Venues whose fee can't be documented are never scored or used in arbitrage. - A value bet needs `edgePct` (no-vig fair minus implied probability, in points) above 1.5; an EV bet needs `evPct` above 1. Offers implying more than 20% EV are suppressed as stale or broken quotes, and an arbitrage leg must pass the same check. A price of +400 or longer counts only when `consensusBooks` is 5 or more (five other sportsbooks quote both sides). - `/v1/edge/ev` and `/v1/edge/value` accept `group=bet`: one row per bet per game (the book with the best after-fee price, `netPrice`), with `otherBooks` (`[{ bookmakerId, bookmaker, odds, netPrice, fairOdds, fairProb, evPct|edgePct, stakePct, sourceType, priceLastUpdate }]`, plus `edgePct` and `isValue` on EV rows) listing the other books where the same bet is also an EV (or value) edge under the same filters, best price first. Each book's `fairOdds` leaves that book out, so a lower price can show a higher `evPct`; the row is ranked by its lead book's. It is not every book that offers the bet; use `/v1/events/:eventId/odds` for that. `meta.total` then counts bets, not offers. The stable key of a grouped row is `eventId` + `betKey` (its `edgeId` is the best book's and can change). Without `group`, each book's offer is its own row, as before. - `kellyCriterion` is full Kelly sized from `fairProb` and `netPrice`. For a bet size, use `stakePct` instead. - Value and EV edges carry `tier`: `strong`, `fair` or `risk`. EV edges use `evPct` (strong at 5 or more, fair at 2 or more); value edges use `edgePct` (strong at 3 or more points, fair at 2 or more). Arbitrage edges carry no tier. - Value and EV edges carry `stakePct`: a suggested stake as a percent of bankroll, a quarter of full Kelly from `fairProb` and the net price, capped at 5. It is 0 when the bet has no edge after fees. - Every value bet is also an EV bet, so EV edges say which ones are: `evBet.edgePct` is the value measure (no-vig fair minus the net price's implied probability, in points) and `isValue` is true when it is above 1.5, the same bar that puts the bet on `/v1/edge/value`. `evPct` and `edgePct` measure the same bet two ways (return per bet vs points of win probability), so they differ. - Value and EV edges carry `betKey`, the same key the bet's outcome has on `/v1/odds` and `/v1/player-props`. - `edgeId` is stable: the same bet at the same book keeps the same id across recalculations (`value-…`, `ev-…`, `arb-…` followed by 16 hex characters). `GET /v1/edge` returns an array of event-grouped documents: ```json [ { "eventId": "nba-ev-311286", "leagueId": "nba", "sport": "basketball", "calculatedAt": "2026-03-26T14:05:00.000Z", "edges": [ ... ] } ] ``` Every edge also carries `startTime` (the game's start, ISO). Value and EV edges add `side` (`home`, `away`, `draw`, `over`, `under`, `yes`, `no`, or null), `team` (team name for team selections, else null), `playerId` (MoneyLine player ID for player props when known, else null), and `priceLastUpdate` (when the book last refreshed that price, ISO). Arbitrage edges carry `playerId` (same rule) and `priceLastUpdate` (the oldest of their legs) too. **Arbitrage edge payload** (each leg carries its own `side`, `team`, and signed `point` for spreads and totals): ```json { "type": "arbitrage", "venueType": "sportsbook", "market": "moneyline", "arbitrage": { "books": [ { "bookmaker": "DraftKings", "bookmakerId": "draftkings", "sourceType": "sportsbook", "sourceRegion": "us", "outcome": "Team A", "side": "home", "team": "Team A", "odds": -110, "stake": 523.81 } ], "profitPct": 2.5, "guaranteedProfit": 25.0, "totalStake": 1000 } } ``` **Value edge payload:** ```json { "type": "value", "sourceType": "sportsbook", "sourceRegion": "us", "market": "moneyline", "outcome": "Team A", "startTime": "2026-03-27T00:00:00.000Z", "side": "home", "team": "Team A", "playerId": null, "betKey": "moneyline|||home", "priceLastUpdate": "2026-03-26T14:03:12.000Z", "tier": "strong", "stakePct": 1.45, "valueBet": { "bookmaker": "FanDuel", "bookmakerId": "fanduel", "odds": +145, "impliedProb": 0.408, "modelProb": 0.442, "fairProb": 0.4415, "fairOdds": 126.5, "consensusBooks": 8, "edgePct": 3.33, "kellyCriterion": 0.0563 } } ``` **Ranked lists (`/v1/edge/ev`, `/v1/edge/value`, `/v1/edge/arbitrage`):** rows are ranked best-first across every pregame game in the league (or all leagues): EV by `evBet.evPct`, value by `valueBet.edgePct`, arbitrage by `arbitrage.profitPct`; ties go to the sooner game, then `eventId`, then `edgeId`. `page` (1-based) and `limit` (1–50, default 25) page through the whole ranking, and `meta` returns `count` (rows on this page), `page`, `limit`, `total` (all matching rows) and `pages`. --- #### GET /v1/edge/arbitrage Get arbitrage opportunities. **Tier:** All plans **Params:** `?league=nba&minProfit=2&sourceType=all&limit=25&page=1` Default `sourceType=all`. Use `sourceType=sportsbook` or `exchange` to narrow to one venue type. DFS operators are excluded from arbitrage regardless of `sourceType` because their prices are indicative, not tradeable lines. --- #### GET /v1/edge/value Get value bets where odds exceed fair probability. **Tier:** All plans **Params:** `?league=nba&minEdge=5&sourceType=all&group=bet&limit=25&page=1` (`group=bet` is optional: one row per bet) Default `sourceType=all`. Edges are emitted as `type: 'value'` with a `valueBet` field. --- #### GET /v1/edge/ev Get positive expected value bets (below the value-bet edge threshold). **Tier:** All plans **Params:** `?league=nba&sourceType=all&group=bet&limit=25&page=1` (`group=bet` is optional: one row per bet) --- #### GET /v1/events/:eventId/edge Get edge data for a specific event. Returns 404 once the game has started (edges are pregame only). **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | market | string | — | Optional exact market filter | --- ### Best Bets Best bets surface the most favorable available line per market outcome across all tracked venues. In American odds, a numerically higher number is always better for the bettor (e.g. -100 is better than -110, +150 is better than +120). Best-bets endpoints can include both game markets and player prop markets. Each outcome is one selection: market, player (`description`, on player props), line, and side, so every player gets their own row. `bookCount` is the number of distinct venues pricing that selection. Separately, every offer in `/v1/player-props` responses includes an `isBest` field indicating whether it is the top-priced offer for that selection (Over and Under separately) at that line. Only sportsbook and exchange prices can be best. DFS pick'em lines, venues missing from the catalog, exchange placeholder quotes (±9900 and beyond), selections that are not a known side or one of the game's teams, and prices older than 12 hours are never best, so `sourceType=dfs` returns no best bets and DFS offers always carry `isBest: false`. Each best-bet outcome also carries `betKey` and `side` (see [Outcome fields](#outcome-fields-odds-and-player-props)), `priceLastUpdate` (when the venue behind `bestOdds` last refreshed it, ISO), `bestSportsbook` (`{ bookmakerId, price, netPrice }` or `null`) and `bestExchange` (`{ bookmakerId, price, netPrice, venueKind }` or `null`), each the best net price for that venue kind. `bestOdds` and `bookmakerId` are unchanged: the best price across both. #### GET /v1/best-bets Browse best available lines across all supported markets. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Filter by league ID | | market | string | — | Filter by market type (e.g. `moneyline`, `spread`, `total`, `player_points`) | | bookmaker | string | — | Return the best line from these venues only. One or more bookmaker keys or names, comma-separated (e.g. draftkings,kalshi) | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | | limit | number | 25 | Max 50 | | page | number | 1 | Page number | **Notes:** - Only prices a venue refreshed in the last 12 hours count. An event whose prices are all older than that has no best bets until it is priced again. - Only games that have not started are listed; best bets stop being recalculated when a game starts. - Without `bookmaker` or `sourceType` filters, results are served from a precomputed snapshot refreshed after each odds fetch. - When `bookmaker` or `sourceType` is provided, best odds are computed on-demand scoped to the filtered set. **Response:** ```json { "success": true, "meta": { "count": 14, "page": 1 }, "data": [ { "eventId": "nba-ev-311310", "leagueId": "nba", "sport": "basketball", "calculatedAt": "2026-03-25T00:10:00.000Z", "markets": [ { "marketType": "moneyline", "outcomes": [ { "name": "Boston Celtics", "betKey": "moneyline|||home", "side": "home", "bestOdds": -115, "bookmakerId": "draftkings", "bookmakerName": "DraftKings", "sourceType": "sportsbook", "sourceRegion": "us", "priceLastUpdate": "2026-03-25T00:08:41.000Z", "bestSportsbook": { "bookmakerId": "draftkings", "price": -115, "netPrice": -115 }, "bestExchange": { "bookmakerId": "kalshi", "price": -120, "netPrice": -120, "venueKind": "prediction_market" } }, { "name": "Los Angeles Lakers", "bestOdds": 105, "bookmakerId": "fanduel", "bookmakerName": "FanDuel", "sourceType": "sportsbook", "sourceRegion": "us" } ] }, { "marketType": "spread", "outcomes": [ { "name": "Boston Celtics", "point": -7.5, "bestOdds": -108, "bookmakerId": "betmgm", "bookmakerName": "BetMGM", "sourceType": "sportsbook", "sourceRegion": "us" } ] } ] } ] } ``` --- #### GET /v1/events/:eventId/best-bets Get best available lines for a specific event. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | market | string | — | Filter by market type | | bookmaker | string | — | Return best line from a specific sportsbook only | | sourceType | string | `all` | `sportsbook`, `dfs`, `exchange`, or `all` | --- ### Trends Situation trends for NFL, NBA, NHL and MLB from a discovery search, not a hand-picked list. We search every combination of up to 3 situation buckets (rest, back-to-backs, travel, venue, line band, total band, previous result and cover, streaks, form, the opponent's situation, time slot) on older seasons, send each sport's top 10 to later seasons the search never saw (a sealed holdout, opened once), and publish only what held up there. Most situations don't beat the closing line, so expect few or none per sport; the search report says so either way. Every number is historical, not a prediction: - Records are W-L-P; every rate excludes pushes and carries a 95% range. `n` is decided games. - ROI is profit per unit staked at the **closing consensus** price (not the best price). `breakEvenRate` is the average vig-inclusive implied probability of those prices; `fairRate` is the no-vig rate. - `found` is the discovery seasons and `heldUp` the holdout seasons; they are never merged. `found.shrunkRoi` / `found.shrunkRange` is the discovery ROI shrunk toward the sport and market average, with its likely range; `heldUp.roiRange` is the holdout ROI's clustered 95% range. `shrunkRoiAtClose` combines both and is the number to lead with. - `search.summary` says how big the search was: "1 of {judged} situations we could judge, from {searched} searched." - `live` is the record since the search, graded at our captured close and counting only games that still qualified at the close. `live.roiRange` is an always-valid 95% range (it stays honest when read every week). - Results facts (`kind: "results"`) count how often teams in a spot won against what pregame ratings expected (`expectedRate`). They never carry a price. - Aggregates only: no trend response includes per-game lines, prices or dollar amounts. `meta.sources` names the data behind each response. **Systems** (`kind: "system"`). Betting systems, each written as a fixed rule and tested on our 2021–26 closing consensus lines (NFL, NBA, NHL, MLB and NCAAF; NCAAF covers FBS games, with closing lines from 2022). `origin` says who wrote the rule: `published` (published elsewhere, on sports betting sites and in books; `published.sourceUrls` links the source) or `moneyline` (our own rule, no outside source). Each shown system has a tier, given as both `status` and `tier`: - `made_money`: made money after the vig overall **and** in both halves of our data (2021–23 seasons and 2024–26 seasons), on at least 50 decided bets. - `small_sample`: made money in both halves too, but on 20 to 49 decided bets. `tierLabel`: "Small sample". - `recent_only`: made money overall and in the recent half (2024-25 on; MLB 2024 on) but lost in the early half (2021-22 to 2023-24; MLB 2021 to 2023), on at least 50 decided bets. `tierLabel`: "Recent seasons only". They were not found by our search and did not go through a sealed holdout: with many systems tested some make money by luck, so each card says how many of how many did (`search.summary`). A system that stops meeting every tier on a rerun is no longer shown. Records, ROI, `seasons`, `bySeason` and the bets list update every night (about 4:30 AM ET) with the current season's finals, so a system's record includes this season. The nightly update also applies the tiers: a system moves to the tier its updated numbers earn, a system that no longer meets any tier leaves the list (its record is kept, and it returns if it earns a tier again), and a smaller system that reaches 50 bets moves up. If an unusually large share of one sport's systems would leave in a single night, those changes wait for a check by hand. When two systems of one sport back nearly the same bets (same market, period and side, and at least 80% of all the games either one bets are bets both make on the same team or side), only one is listed: the better tier, then more decided bets, then higher ROI. The other is never served (its bets list returns 404) and its picks no longer match games; its earlier live record is kept. If the two drift apart, it is listed again at its tier after the next nightly update. **Live record (probation).** Every system is on probation once published: its picks on later games are frozen at kickoff and graded at our closing consensus by the same rule and grading as the backtest (full game and first half; a pick counts only when the rule still holds at the close; each bet once; a side game both teams qualify for is no bet; a total is one bet per game; a push returns the stake). Records start on 2026-10-20: picks shown before then are not counted. The live ROI carries an always-valid 95% range (valid however often it is read). A system is `proven` when the range's low end is above 0, `removed` when its high end is below 0 on at least 30 decided bets, otherwise `unproven`. A removed system is no longer listed or matched to games, and a later rerun does not bring it back. If our translation of a system's rule changes (`ruleVersion`), its live record starts again (a removed system stays removed). Proof takes many bets: at -110, a system that keeps returning +3% needs about 11,000 graded bets to show as proven (a 60% hit rate about 400); a losing one is removed after about 74 bets at a 30% hit rate, 176 at 40%. Expect nearly every system to stay `unproven` for a long time. A system's rule reads only what was known before the game: schedule, rest, travel, earlier results and covers, the closing (or today's) line, and: - First-half form (NFL, NBA): the previous game's first-half margin, points, 1st-half spread and total result; average first-half margin and points over the last 3, last 5 and the season so far; the season's 1st-half spread record. - MLB starting pitchers: each team's starter (from our stats provider's box scores) and throwing hand, his season-to-date ERA, WHIP, strikeouts and strikeouts minus walks per 9 innings, innings per start, days of rest and his last start's line, all from his earlier starts that season. For tonight's games the starter is the one sportsbooks post pitcher props for, so a pitcher system matches once props are up (usually the day before); with no announced starter the side is unknown and no pitcher system matches it. - NHL starting goalies: each team's starter (the first goalie in the box score), his season-to-date save percentage and goals-against average from earlier starts, whether he started the night before, and whether he is not the team's most-used starter. No source we use names tonight's starting goalie before the game, so goalie systems are backtested but never match an upcoming game. - Expected value (EV) at one book: for the team's moneyline, its spread at the main line and the game's over/under at the main total (and the same for the first half, NFL and NBA), the best EV any eligible book offered against the other books' no-vig consensus price, after that book's fee, with the book and its price. Historical games read each book's closing quote (a book quoted more than 30 minutes before the close is left out); upcoming games read the current odds, from books that updated in the last 12 hours. **EV systems.** A system can be priced at that one book instead of the consensus: it is then graded on the same result at that book's price (after its fee), and its record, ROI and bets list use that price. When it matches an upcoming game, its event card carries `quote`: `{ "book": "bovada", "bookName": "Bovada", "price": 115, "point": null }` (`point` is the spread or total; `quote` is absent on every other card). The quote is that book's current price when the game was last matched (every 15 minutes); it can go away before the start, and the live record grades the pick at the close, at the close's best-EV book, only if the rule still holds then. Books named may be offshore and not available in your state. The EV systems we test are "Favorite at 4%+ EV, priced -200 to +200" (NBA) and "Away team at 4%+ EV, priced -200 to +200" (each league), one system per market; a market's system is listed only once it meets a tier on its own (`GET /v1/trends?kind=system` shows which are). **+EV prices on any system pick.** Every matched system pick, not only EV systems', carries `quote` when a book offers that exact bet (same market and side, and for spreads and totals the same point as the pick's line) at 3% EV or more against the other books' no-vig price, after the book's fee, from books updated in the last 12 hours: `{ "book": "bovada", "bookName": "Bovada", "price": 105, "point": -3, "evPct": 5.1 }`. `evPct` is present only at 3% or more (an EV system's own `quote` can be below it, then without `evPct`). Within a team's `trends[]`, and in the AI trends answer, picks with `quote.evPct` come first, then best tier and ROI. The system's record and ROI were earned at the consensus close; `evPct` is the price's own edge today. They are separate numbers and are not meant to be added. Pitchers' throwing hands for 2021–2025 come from Retrosheet. The information used here was obtained free of charge from and is copyrighted by Retrosheet. Interested parties may contact Retrosheet at "www.retrosheet.org". System cards carry: - `name`, `rule` (the plain-English rule), `bet` ("bet their opponent on the moneyline"), `market`, `period`, `side` (`team` / `opponent` / `over` / `under`). - First-half systems (NFL, NBA): `market` is `spread_h1`, `moneyline_h1` or `total_h1`, `period` is `h1` (`full` for every other system), and `bet` names the half ("back them on the 1st half spread", "bet the 1st half under"). They are graded at our first-half closing consensus on first-half points (1st + 2nd quarter; overtime never counts; a tied half pushes the moneyline), from 2023-24 on, so their `seasons` start in 2023-24, their early half is 2023-24 and their recent half 2024-25 on, the same recent seasons as every other system. A team's match on an event card needs that game's first-half price, which we have from 36 hours before the start. - `record` (W-L-P), `n` (decided bets), `roi` (profit per unit at the closing consensus price, after the vig), `roiRange` (clustered 95% range), `breakEvenRate`, `pValue`, `since` ("since 2021"). - `early` and `recent`: each half's `seasons`, `label`, `record`, `n` and `roi`. `bySeason[]`: each season's record and ROI. - `tier` (`made_money`, `small_sample` or `recent_only`) and `tierLabel` (`null` for `made_money`, else the plain label above, for apps that tag lower tiers). - `title` and `label` start with "Published system" or, for `origin: "moneyline"`, "MoneyLine system". `label`: "Published system — made money 2021–26 after the vig. Past results, not a guarantee." A `small_sample` label adds "on a small sample (N bets)"; a `recent_only` label reads "made money in 2024-25 to 2025-26 after the vig but lost in 2021-22 to 2023-24" (each half's seasons, as in `early` / `recent`; MLB: "2024 to 2026", "2021 to 2023"). - `published`: the source's own `claim` and `sourceUrls`. `ruleVersion` changes when our translation of the rule changes. - `proof`: `status` (`unproven`, `proven` or `removed`), `label` ("Unproven", "Proven"; `null` for removed), `live` (`wins`, `losses`, `pushes`, `bets`, `roi` over decided bets or `null`, `since`: the ET date of the first graded pick, `null` before one) and `liveText` ("Live: 3-1 since Oct 20", a push adds a third number; "Live: no picks graded yet" before the first). - The trend-card fields too: `title`, `found` (the whole 2021–26 sample: record, n, rate and its range, ROI, break-even), `heldUp: null`, `search`, `live` (the live record: `since` = when the current rule was published, `record`, `n` decided bets, `rate`, `roi`, and `roiRange`, the always-valid range, `null` under 2 decided bets). #### GET /v1/trends Searched trends that held up, ranked held up first, then by shrunk ROI; then published systems, `made_money` first, then `small_sample`, then `recent_only`, each by highest ROI. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | `nfl`, `nba`, `nhl`, `mlb` or `ncaa_football` (published systems only so far) | | kind | string | — | `line` (graded at closing lines), `results` (wins vs pregame ratings) or `system` (published systems only) | | market | string | — | `moneyline`, `spread`, `total` or `win`; first-half systems (NFL, NBA): `moneyline_h1`, `spread_h1`, `total_h1` | | status | string | — | Omitted: held-up trends and published systems of every tier. `held_up` (searched trends only), or a system tier: `made_money`, `small_sample` or `recent_only` (that tier's systems only). `watching` and `did_not_hold_up` return 400 unless enabled for this deployment | | limit | number | 25 | Max 100 | | page | number | 1 | Page number; pages run across the trends, then the systems | `meta.searches` lists each stored search: league, target, protocol version, combinations searched, judged, sent to the holdout, and held up. `meta.systems` is the number of published systems in the list. **Example card** (illustrative, from our synthetic test set): ```json { "trendId": "nhl-e5d84e489080", "league": "nhl", "kind": "line", "market": "moneyline", "side": "opponent", "status": "held_up", "title": "Teams on a back-to-back: the opponent's moneyline", "conditions": [{ "feature": "rest", "bucket": "b2b" }], "found": { "seasons": ["2021-22", "2022-23", "2023-24"], "record": { "wins": 1344, "losses": 1017, "pushes": 0 }, "n": 2361, "rate": 0.5693, "rateRange": [0.5492, 0.5891], "roi": 0.0881, "roiRange": null, "breakEvenRate": 0.5227, "fairRate": 0.5002, "shrunkRoi": 0.0453, "shrunkRange": [0.0124, 0.0781] }, "heldUp": { "seasons": ["2024-25", "2025-26"], "record": { "wins": 908, "losses": 736, "pushes": 0 }, "n": 1644, "rate": 0.5523, "rateRange": [0.5282, 0.5762], "roi": 0.0611, "roiRange": [0.0135, 0.1087], "breakEvenRate": 0.5242, "pValue": 0.0059, "qValue": 0.0416 }, "shrunkRoiAtClose": 0.0504, "search": { "protocolVersion": 2, "searchedAt": "2026-12-15T00:00:00.000Z", "searched": 10278, "judged": 228, "summary": "1 of 228 situations we could judge, from 10,278 searched." }, "live": { "since": "2026-12-15T00:00:00.000Z", "record": { "wins": 0, "losses": 0, "pushes": 0 }, "n": 0, "rate": null, "roi": null, "roiRange": null }, "disclaimer": "Historical results, not a prediction. Records are graded at closing consensus prices; past results do not guarantee future ones. 21+. Gambling problem? Call 1-800-GAMBLER." } ``` **Example system card** (from our 2021–26 data): ```json { "trendId": "system-nhl-011", "systemId": "nhl-011", "league": "nhl", "kind": "system", "market": "spread", "side": "team", "status": "made_money", "tier": "made_money", "tierLabel": null, "title": "Published system: Revenge after 4-goal loss, back them on the spread", "name": "Revenge after 4-goal loss", "rule": "Road team lost the previous meeting with this opponent by 4+.", "bet": "back them on the spread", "label": "Published system — made money 2021–26 after the vig. Past results, not a guarantee.", "since": "since 2021", "record": { "wins": 309, "losses": 230, "pushes": 0 }, "n": 539, "roi": 0.0345, "roiRange": [-0.0458, 0.1148], "breakEvenRate": 0.5563, "pValue": 0.3996, "early": { "seasons": ["2021-22", "2022-23", "2023-24"], "label": "2021-22 to 2023-24", "record": { "wins": 169, "losses": 134, "pushes": 0 }, "n": 303, "roi": 0.0304 }, "recent": { "seasons": ["2024-25", "2025-26"], "label": "2024-25 to 2025-26", "record": { "wins": 140, "losses": 96, "pushes": 0 }, "n": 236, "roi": 0.0398 }, "bySeason": [{ "season": "2021-22", "record": { "wins": 47, "losses": 30, "pushes": 0 }, "n": 77, "roi": 0.172 }, ...], "found": { "seasons": ["2021-22", "2022-23", "2023-24", "2024-25", "2025-26"], "record": { "wins": 309, "losses": 230, "pushes": 0 }, "n": 539, "rate": 0.5733, "rateRange": [0.5312, 0.6144], "roi": 0.0345, "roiRange": [-0.0458, 0.1148], "breakEvenRate": 0.5563 }, "heldUp": null, "shrunkRoiAtClose": null, "published": { "claim": "49-21 PL; 38-32 ML; 2021-22", "sourceUrls": ["https://thehockeynews.com/..."] }, "search": { "protocolVersion": null, "searchedAt": "2026-10-19T12:00:00.000Z", "searched": 192, "judged": 192, "summary": "Made money after the vig in 2021-22 to 2023-24 and in 2024-25 to 2025-26: one of 29 published systems that did, of 192 we tested on our closing lines." }, "live": { "since": "2026-10-19T12:00:00.000Z", "record": { "wins": 3, "losses": 1, "pushes": 0 }, "n": 4, "rate": 0.75, "roi": 0.4318, "roiRange": [-5.8166, 6.6803] }, "proof": { "status": "unproven", "label": "Unproven", "live": { "wins": 3, "losses": 1, "pushes": 0, "bets": 4, "roi": 0.4318, "since": "2026-10-20" }, "liveText": "Live: 3-1 since Oct 20" }, "ruleVersion": "cd11487793b5", "disclaimer": "Historical results, not a prediction. ..." } ``` --- #### GET /v1/trends/report The per-sport search report: what we searched, what had enough games to judge, what went to the holdout and what held up. It is served even when nothing held up. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Required. `nfl`, `nba`, `nhl` or `mlb` | `data.searches[]` has one entry per stored search (line trends and results facts are separate searches): `discoverySeasons`, `holdoutSeasons`, `holdoutOpened`, `cleanTest` (false for a holdout opened a second time, labelled "re-opened, not a clean test"; such a search confirms nothing) and `groups[]` with `searched`, `judged`, `sentToHoldout`, `heldUpCount`, `heldUp` (trend cards), `chance` (what the same search finds on shuffled outcomes, when run) and a plain `summary`. With no stored search, `searches` is empty and `meta.note` says so. ```json { "group": "nhl", "markets": ["moneyline", "spread", "total"], "searched": 10278, "judged": 228, "sentToHoldout": 7, "heldUpCount": 1, "heldUp": [ ... ], "chance": null, "summary": "We searched 10,278 situation and bet-type combinations on closing lines from 2021-22 to 2023-24. 228 had enough games to judge. Our top 7 went to 2024-25 to 2025-26 games the search never saw: 1 held up." } ``` --- #### GET /v1/trends/season This season's splits: simple situations (favorites by spread size, home and road underdogs, overs and unders by total, division games, primetime, off a loss or win, rest edges, after a blowout) graded at our closing consensus over the current regular season, the same grading the published systems use. Recomputed every 30 minutes. Small samples, not a prediction. **Tier:** All plans **Params:** | Param | Type | Default | Description | |-------|------|---------|-------------| | league | string | — | Required. `nfl`, `ncaa_football`, `nhl` or `nba` | `data` has `league`, `season`, `asOf`, `gamesGraded`, `disclaimer` and `splits[]`, each with `splitId`, `title`, `market` (`spread`, `moneyline`, `total`), `record` (`wins`, `losses`, `pushes`), `bets` (decided), `winPct`, `roi` (flat 1 unit at the consensus close price), `breakEven`, `fadeRoi` (betting the other side of the same games), `direction` (`hot` ROI > 0, `cold` ROI < 0, else null), `notable` and `pickRule` (`back` hot, `fade` cold: bet the other side). A split is notable with at least 15 (NFL) or 30 (NCAAF, NHL, NBA) decided bets and |ROI| of 10% or more; a cold split also needs a fade that made money. Only notable splits list `upcoming`: games in the next 7 days the split applies to at today's consensus line, each with `eventId`, `startTime`, both team ids and names, and `pick` (`betTeamId`, null on a total; `market`; `side`: `team`, `over` or `under`; `point`, null on a moneyline). A game is listed only when it is both teams' next game and both sides are priced. Picks that oppose each other on one game (an over and an under, or picks backing different teams in any market, within the same period) are all left out; picks that agree stay. Non-notable splits are returned with an empty `upcoming`. With nothing stored yet `splits` is empty and `meta.note` says so. ```json { "splitId": "nfl-fav-6plus-ats", "title": "Favorites of 6+", "market": "spread", "record": { "wins": 8, "losses": 16, "pushes": 4 }, "bets": 24, "winPct": 0.333, "roi": -0.364, "breakEven": 0.52, "fadeRoi": 0.269, "direction": "cold", "notable": true, "pickRule": "fade", "upcoming": [ { "eventId": "nfl-…", "startTime": "2026-10-25T17:00:00Z", "homeTeamId": "nfl-houston-texans", "awayTeamId": "nfl-new-york-giants", "homeTeamName": "Houston Texans", "awayTeamName": "New York Giants", "pick": { "betTeamId": "nfl-new-york-giants", "market": "spread", "side": "team", "point": 9.5 } } ] } ``` --- #### GET /v1/events/:eventId/trends One game's situation facts and the searched trends and published systems it matches. Games are tagged every 15 minutes from 36 hours before start, with the same feature code the search used; the current line is today's sportsbook consensus main line (never an in-play price). A published system is matched by the same rule its backtest ran, on pregame facts and today's consensus line, on games up to 7 days out; a game is judged only when it is both teams' next game with their previous games final (a team whose previous game is still in progress waits), and a game with no posted line yet has no system match. **Tier:** All plans `data.teams.home` / `data.teams.away` each carry: - `situation`: `restDays`, `backToBack`, `threeInFour` (NBA), `homestandGame` / `roadTripGame`, `seriesGame` (MLB), `travel` (`direction` east/west/none, `timeZonesMoved`), `divisionGame`, `seasonPhase`, `form` (`wins`, `losses`, `lastResult`, `lastMargin`, `streak`, `recordThird`) and the `opponent`'s rest, travel and last result. A last result is `null` while the team's previous game is still in progress. - `trends`: held-up line trends whose situation the team is in, each a trend card plus `qualifiesAtCurrentLine` (`true`, `false` when today's line sits outside the trend's line band, `null` before a line exists) and `betTeamId`; then published systems whose rule the team meets (`kind: "system"` cards, see above) with `betTeamId` (null for a total). As in the backtest, a side system that both teams meet is no bet and isn't listed, and a total is listed once, on the home team. Each system card also carries `pickKey` (`eventId|market|side`, where side is the backed team id or `over`/`under`, e.g. `nfl-123|spread|nfl-kansas-city-chiefs` or `nfl-123|total_h1|under`; identical for systems backing the identical bet, so group by it; it is a grouping key for system picks and differs from the odds `betKey`) and `agreeing` (how many other systems back that same bet). Systems that oppose each other on one game are all left out (an over and an under on the same period's total, or systems backing different teams in any spread or moneyline of the same period; full game and first half are separate periods); systems that agree stay. A system pick already shown that a later conflict removes still counts in that system's live record. - `resultsFacts`: matching results facts with their comparison rate (`expectedRate`). No price. `data.available` is `false` (with `meta.note`) for a game that has not been tagged: other leagues, games more than 7 days out, or games 36 hours to 7 days out that no published system matches. A game 36 hours to 7 days out that a published system matches carries both teams' `situation` and only system cards in `trends` (searched trends are matched from 36 hours before start). ```json { "eventId": "nhl-ev-67575", "league": "nhl", "startTime": "2026-10-17T01:00:00.000Z", "available": true, "computedAt": "2026-10-16T19:44:56.390Z", "teams": { "home": { "teamId": "nhl-colorado-avalanche", "teamName": "Colorado Avalanche", "venue": "home", "situation": { "restDays": 1, "backToBack": false, "threeInFour": null, "homestandGame": 2, "roadTripGame": null, "seriesGame": null, "travel": { "direction": "none", "timeZonesMoved": 0 }, "divisionGame": false, "seasonPhase": "early", "form": { "wins": 4, "losses": 3, "lastResult": "L", "lastMargin": -1, "streak": -1, "recordThird": null }, "opponent": { "restDays": 2, "backToBack": false, "travel": "west", "lastResult": "L" } }, "trends": [], "resultsFacts": [] }, "away": { "teamId": "nhl-pittsburgh-penguins", "teamName": "Pittsburgh Penguins", "venue": "away", "situation": { ... }, "trends": [], "resultsFacts": [] } }, "disclaimer": "Historical results, not a prediction. ..." } ``` --- #### GET /v1/events/:eventId/closing-line The game's consensus closing line: the last pregame consensus we fetched in the 3 hours before start (`quality` `ok` within 30 minutes of start, `stale` earlier; an in-play price is never a close). `close.main` is the main spread, total and moneyline (the line most books quote on both sides), `close.rows` every consensus row (`avgPrice`, `avgImpliedProb`, `fairOdds`, `bookCount`), and `firstSeen` the earliest consensus we observed, which is not the market opener. Returns 404 with a hint when there is no close: games that have not started yet, and games from before our capture began. Per-book closes are not included for API customers (`meta.booksWithheld: true`). **Tier:** All plans --- #### Line licensing on the history routes `GET /v1/history/games` and `GET /v1/trends/systems/:systemId/bets` serve per-game lines. Lines from our own pregame capture (`moneyline_capture`, `moneyline_capture_h1`) go to every key. Lines from the historical import (`oddsapi_historical`, `oddsapi_historical_h1`) go only to keys licensed for raw lines. For any other key, those games and bets carry `lineAccess: "restricted"`: the line, price and profit fields are `null`, and so are the spread-cover and over/under grades (they reveal the line). Scores, winners, starters and moneyline results stay. `lineAccess: "none"` means the game has no close. `meta.lineAccess` is `capture_only` or `all_sources`, and `meta.restricted` counts the restricted items on the page. Every price is the consensus average across books, never one book's price, except an EV system's bets, which carry the book (`book`, also `null` when restricted) and its price. Our own capture started in October 2026, so for most keys almost every earlier game is restricted. #### GET /v1/history/games Past finals (NFL, NBA, NHL, MLB, NCAAF), one entry per game, newest first. Read from our stored complete seasons (`meta.seasons`). A season not stored as one complete build is left out and named in `meta.seasonsLeftOut`. **Query params:** `league` (required: `nfl`, `nba`, `nhl`, `mlb`, `ncaa_football`), `season` (e.g. `2024-25`, MLB `2025`), `team` (team ID, home or away), `from` / `to` (ET dates `YYYY-MM-DD`, inclusive), `limit` (default 50, max 200), `cursor` (`meta.nextCursor` from the previous page; `null` on the last page) A game as a key licensed for raw lines sees it (other keys get `lineAccess: "restricted"`, `close: null` and null spread/total grades here): ```json { "eventId": "nba-ev-305575", "league": "nba", "season": "2024-25", "seasonType": "postseason", "startTime": "2025-06-23T00:00:00.000Z", "date": "2025-06-22", "neutralSite": false, "homeTeam": { "id": "nba-oklahoma-city-thunder", "name": "Oklahoma City Thunder", "abbreviation": "OKC" }, "awayTeam": { "id": "nba-indiana-pacers", "name": "Indiana Pacers", "abbreviation": "IND" }, "score": { "home": 103, "away": 91 }, "firstHalfScore": { "home": 47, "away": 48 }, "lineAccess": "full", "close": { "source": "oddsapi_historical", "quality": "ok", "minutesBeforeStart": 4.38, "spread": { "home": { "point": -7, "price": -106.2 }, "away": { "point": 7, "price": -114 } }, "total": { "point": 215.5, "overPrice": -109.3, "underPrice": -109.8 }, "moneyline": { "home": -255.3, "away": 210.1 } }, "grades": { "winner": "home", "spread": "home", "total": "under" }, "firstHalf": { "lineAccess": "full", "close": { "...": "same shape" }, "grades": { "winner": "away", "spread": "away", "total": "under" } } } ``` - `grades.spread` is the team that covered (`home` / `away`) or `push`. `grades.total` is `over`, `under` or `push`. `grades.winner` is `home`, `away` or `tie`. - `firstHalfScore` and `firstHalf` (NFL, NBA only): the half is Q1+Q2, and overtime never counts. First-half closes exist from 2023-24. - `starters` (MLB starting pitchers, NHL starting goalies): `{ home, away }`, each `{ playerId, name, hand }` or `null` when unknown. NHL `hand` is `null`. MLB responses carry `meta.notice`, Retrosheet's notice: pitchers' throwing hands for 2021-2025 come from Retrosheet. - Lines follow the licensing rule above. **Tier:** All plans · **Credits:** 4 #### GET /v1/trends/systems/:systemId/bets Every bet behind a published system's record (`systemId` from a `kind: "system"` card), newest first. `book` is the book an EV system's bet was priced at (`null` for every other system, whose price is the consensus average). The same backtester computes them on our stored seasons at the consensus close each time the systems are published and every night with the current season's finals, so the count matches the card's record. The live picks graded since the system was published come with them, marked `live: true`. Returns 404 for an unknown, inactive, removed or duplicate system, and 503 `ERR_SYSTEM_BETS_PENDING` while a system's bets for its current rule have not been computed yet (retry later). **Query params:** `season`, `limit` (default 50, max 200), `cursor` A bet as a key licensed for raw lines sees it: ```json { "eventId": "nfl-ev-pittsburgh-steelers-houston-texans-2026-01-13-0115", "date": "2026-01-12", "startTime": "2026-01-13T01:15:00.000Z", "season": "2025-26", "homeTeam": { "id": "nfl-pittsburgh-steelers", "name": "Pittsburgh Steelers", "abbreviation": "PIT" }, "awayTeam": { "id": "nfl-houston-texans", "name": "Houston Texans", "abbreviation": "HOU" }, "market": "total_h1", "period": "h1", "side": "under", "betTeamId": null, "line": 19, "price": -108.5, "book": null, "result": "W", "profit": 0.9217, "live": false, "lineAccess": "full" } ``` - `market` is `spread`, `moneyline`, `total` or the first half's `spread_h1`, `moneyline_h1`, `total_h1`. `side` is `team` / `opponent` (relative to the team that met the rule) or `over` / `under`. `betTeamId` is the backed team (`null` on a total). - `line` is the backed side's spread or the total (`null` for a moneyline). `price` is the consensus average American price at the close (an EV system's: the price at `book`), and `profit` is the units won at 1 unit staked (a push returns 0; an EV system's after that book's fee). - Restricted bets keep a moneyline's `result`, since the score decides it. - `meta`: `total`, `backtestBets`, `livePicks`, `seasons`, `computedAt` (when the backtest was computed), `lineAccess`, `restricted`, `nextCursor`. **Tier:** All plans · **Credits:** 4 --- ## Quick-Start Examples ### Fetch today's NBA games ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/today?league=nba" ``` ### Get live scores ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/live" ``` ### Get odds for a game ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/nba-ev-311310/odds" ``` ### Get best available lines across all NFL games ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/best-bets?league=nfl" ``` ### Get DraftKings' best lines for an NBA game ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/nba-ev-311310/best-bets?bookmaker=draftkings" ``` ### Get best sportsbook lines only ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/best-bets?league=nba&sourceType=sportsbook" ``` ### Get arbitrage opportunities ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/edge/arbitrage?league=nba&minProfit=1" ``` ### Get all arbitrage opportunities (including sane mixed arbs) ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/edge/arbitrage?league=nba&sourceType=all" ``` ### List DFS platforms only ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/odds/bookmakers?sourceType=dfs" ``` ### List exchanges only ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/odds/bookmakers?sourceType=exchange" ``` ### Get exchange odds for a game ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/nba-ev-311310/odds?sourceType=exchange" ``` ### Get player props for a game using the same event ID ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/events/nba-ev-311310/player-props?market=player_points&sourceType=all" ``` ### List supported NBA player prop markets ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/player-props/markets?league=nba" ``` ### Get team roster ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/teams/nba-bos/roster" ``` ### Get player season stats ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/nba-p-12345/stats?type=season" ``` ### Get trending players by hit rate ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/trending?league=nba&market=player_points&sortBy=l5" ``` ### Get top player trends by flat-stake profit ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/trends?league=nba&window=25&limit=10" ``` ### Get hit rates for a player against a line ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/nba-p-12345/hit-rates?market=player_points&line=14.5" ``` ### Get integrated player analysis with chart data ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/nba-p-12345/analysis?market=player_points&window=l5" ``` ### Get full-season player analysis chart data ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/nba-p-12345/analysis?market=player_points&window=season&season=2025-26" ``` ### Get date-range player analysis chart data ```bash curl -H "x-api-key: ml_live_YOUR_KEY" \ "https://mlapi.bet/v1/players/nba-p-12345/analysis?market=player_points&window=season&from=2026-01-01&to=2026-02-01" ``` ### Use MoneyLine AI with auto-infer ```bash curl -X POST https://mlapi.bet/v1/ai/chat \ -H "content-type: application/json" \ -H "x-api-key: ml_live_YOUR_KEY" \ -d '{ "scope": "small", "responseFormat": "hybrid", "messages": [ { "role": "user", "content": "What is the best bet that I can do today? Only show me FanDuel." } ] }' ``` --- ## Endpoint Summary | Method | Path | Access | Description | |--------|------|--------|-------------| | GET | /v1/sports | All plans | List sports and leagues | | GET | /v1/leagues | All plans | List leagues | | GET | /v1/leagues/:leagueId | All plans | Get single league | | GET | /v1/events | All plans | List events (paginated) | | GET | /v1/events/live | All plans | In-progress events | | GET | /v1/events/today | All plans | Today's events | | GET | /v1/events/:eventId | All plans | Single event | | GET | /v1/events/:eventId/play-by-play | All plans | Play-by-play data | | GET | /v1/leagues/:leagueId/scores | All plans | Scores by date | | GET | /v1/leagues/:leagueId/standings | All plans | League standings | | GET | /v1/leagues/:leagueId/teams | All plans | Teams in league | | GET | /v1/teams/:teamId | All plans | Team details | | GET | /v1/teams/:teamId/roster | All plans | Team roster | | GET | /v1/teams/:teamId/injuries | All plans | Injury report with observation timestamps | | GET | /v1/teams/:teamId/injuries/history | All plans | Injury change log + point-in-time reconstruction | | GET | /v1/teams/:teamId/stats | All plans | Team stats | | GET | /v1/teams/:teamId/schedule | All plans | Team schedule | | GET | /v1/players/:playerId | All plans | Player details | | GET | /v1/players/:playerId/stats | All plans | Player stats by season, exact event, or game/date range | | GET | /v1/players/:playerId/hit-rates | All plans | Hit rates (L5/L10/L25/season) against a prop line | | GET | /v1/players/:playerId/analysis | All plans | Integrated player detail: best bet + hit rates + chart data, with optional season/date/event filters | | GET | /v1/players/trending | All plans | Players sorted by hit rate with best available line | | GET | /v1/players/trends | All plans | Highest-profit active player prop trend per player over a rolling window | | GET | /v1/odds | All plans | Browse odds | | GET | /v1/events/:eventId/odds | All plans | Event odds | | GET | /v1/events/:eventId/odds-history | All plans | Consensus odds history (line movement) for an event | | GET | /v1/players/:playerId/odds-history | All plans | Consensus odds history for a player's props across events | | GET | /v1/odds/bookmakers | All plans | List bookmakers | | GET | /v1/player-props | All plans | Browse player props | | GET | /v1/events/:eventId/player-props | All plans | Event player props | | GET | /v1/player-props/markets | All plans | Supported player prop markets | | GET | /v1/markets | All plans | Market registry: shape, pairing, settling stat, hit-rate support | | GET | /v1/best-bets | All plans | Best available line per outcome across all sportsbooks | | GET | /v1/events/:eventId/best-bets | All plans | Best lines for a specific event | | GET | /v1/edge | All plans | Browse edge data | | GET | /v1/edge/arbitrage | All plans | Arbitrage opportunities | | GET | /v1/edge/value | All plans | Value bets | | GET | /v1/edge/ev | All plans | Positive EV bets | | GET | /v1/events/:eventId/edge | All plans | Event edge data | | GET | /v1/trends | All plans | Searched situation trends that held up and published systems that made money, with honest stats | | GET | /v1/trends/report | All plans | Per-sport trend search report | | GET | /v1/trends/season | All plans | This season's splits at the close, with this week's picks for notable ones | | GET | /v1/events/:eventId/trends | All plans | A game's situation facts, matching trends and published systems | | GET | /v1/events/:eventId/closing-line | All plans | Consensus closing line for a played game | | GET | /v1/history/games | All plans | Past games with our consensus close and grades (historical-import lines for licensed keys only) | | GET | /v1/trends/systems/:systemId/bets | All plans | Every bet behind a published system's record, plus its graded live picks | | GET | /v1/leagues/:leagueId/rankings/history | All plans | Saved NCAA polls with when we first saw each | | POST | /v1/ai/chat | All plans | MoneyLine-grounded AI responses and recommendations |