sports-odds-api
Fetches sports betting odds from Pinnacle, DraftKings, ESPN and Kalshi, then calculates arbitrage and value bets across bookmakers for NFL, NBA, MLB, soccer and other leagues.
Instructions
Sports Betting Odds API β Pinnacle, DraftKings & Arbitrage. Moneyline, spread and total odds per book β Pinnacle sharp lines with the risk limit it accepts, DraftKings, Kalshi β plus arbitrage and value bets calculated across books, opening lines, props and futures. NFL, NBA, MLB, NHL, college, soccer, UFC, tennis. No API key.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sports-odds-api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | π§ What to get β Odds β moneyline, spread and total for every game, per book, with opening lines and movement. Props β player and game props from DraftKings for every game. Futures β championship, division, award and season-win markets. Prediction markets β Kalshi game contracts with traded probabil | odds |
| books | No | π Sources β Pinnacle β the sharp reference book the rest of the market prices against, with the risk limit it will accept on each market. DraftKings β live prices straight from the sportsbook feed. ESPN β every provider ESPN carries for the game (DraftKings, Bet365 where present) with opening lines | |
| dateTo | No | π To date β YYYY-MM-DD, UTC. Optional; at most 60 days after the start. | |
| leagues | No | π Leagues β One or more leagues. Odds, props and Kalshi contracts are matched game by game. For a league that is not in this list, put its ESPN path (for example soccer/eng.2) in Custom leagues below. | |
| markets | No | π Markets β Odds mode: which game lines to output. Spread is the run line in MLB and the puck line in NHL; soccer moneylines carry a draw price. | |
| dateFrom | No | π From date β YYYY-MM-DD, UTC. Optional. Games are kept by their kick-off time in UTC. | |
| eventIds | No | π― Only these games β ESPN event ids (the eventId field of any row, or the number in an ESPN game URL). Leave empty for every game in the date range. | |
| maxItems | No | π― Maximum rows β Stop after this many rows in the run. The default of 18 keeps a first trial run at about $0.05 β raise it once you like the output. | |
| daysAhead | No | π Days ahead β Games from today (UTC) up to this many days ahead (ignored when dates are set below). 0 = today only. | |
| oddsFormat | No | π’ Odds format β How the homePrice/awayPrice/overPriceβ¦ fields are written. Decimal odds and implied probabilities are always included as separate fields. | american |
| concurrency | No | Parallel requests β How many requests run at once. | |
| includeEdges | No | π° Find arbitrage and value bets β Adds edge rows on top of the prices: arbitrage β the best price on each side, taken from whichever book offers it, when together they guarantee a profit; value β a book paying more than Pinnacleβs vig-free probability says the outcome deserves. Needs at least two s | |
| kalshiSeries | No | π² Kalshi series tickers β Prediction-markets mode: series tickers to pull directly, e.g. KXNFLGAME, KXUCLGAME, KXATPMATCH. Leagues selected above are added automatically. | |
| outputFormat | No | π§± Row layout β Flat β one row per game Γ market Γ book, spreadsheet-friendly. Nested β one row per game with all books inside and the best price per outcome. | flat |
| customLeagues | No | Custom leagues (ESPN paths) β Any ESPN league path not in the list above, e.g. soccer/eng.2 (Championship), soccer/ger.2, basketball/nbl. The game list comes from ESPN; DraftKings, Pinnacle and Kalshi prices are added when they carry that league. | |
| minEdgePercent | No | π Smallest edge worth reporting, % β Prices move by a tick constantly, so anything under half a percent is noise a bettor would pay away in the spread. Raise it to see only the big disagreements. | |
| propCategories | No | π§βπ€βπ§ Prop categories β Props mode: keep only categories whose name contains one of these, e.g. Passing, TD Scorers, Points, Batter. Empty = every player and game prop category (this can be thousands of rows per game). | |
| includeFinished | No | π Include finished games β Odds mode: keep games that are already final (closing lines, if a source still carries them). Prediction-markets mode: keep settled contracts. | |
| maxPropsPerGame | No | Props per game cap β Stop after this many prop rows for one game. | |
| futuresCategories | No | π Futures categories β Futures mode: keep only categories whose name contains one of these, e.g. Futures, Awards, Wins, Playoffs. Empty = every futures-type category. | |
| includeRunSummary | No | π§Ύ Add a free summary row at the end of the run β One extra free row with the run's totals: rows delivered, free rows, what was charged and how much in US dollars. It carries type "notice", so a filter on your data rows skips it. | |
| proxyConfiguration | No | Proxy configuration β Not needed: every source answers Apify's own servers directly. Set only if a source starts refusing. Leave it off unless a source starts refusing you: DraftKings answers Apify's own servers but blocks datacenter proxies, so switching the proxy on can cost you its prices rather | |
| includeOpeningLines | No | π Opening lines and movement β Fetch the opening line and price for each game (one extra request per game) and compute how far the line and prices have moved. | |
| includeAlternateLines | No | β Alternate spreads and totals β Add DraftKings' alternate lines as extra rows (market alternate-spread / alternate-total). |