Betting odds API for moneylines, spreads & totals
Betting odds API for moneylines, spreads and totals from 36 sources, for every period, plus alternate lines and team totals in one normalized schema.
Main lines are the backbone of every odds product. PreciseAPI returns each book’s moneyline, spread and total for the full game, halves and quarters, keyed to the same event and outcome ids everywhere.
- Moneyline, spread and total for every period
- Alternate spread and total ladders
- Home and away team totals
- American, decimal or implied-probability format
Moneylines, spreads and totals are the first thing most odds products show and the last thing they can afford to get wrong. A betting odds API for main lines has to return every book's number for every game in one shape, keep a line move apart from a price move, and cover the halves, quarters and periods that bettors actually trade. PreciseAPI does this for 17 leagues from 36 sources, on event, market and outcome ids that are the same at every book.
Below is the detail behind the game odds API: the fields in a response, the periods each league carries, how alternates and team totals are shaped, what a refresh costs and how the feed compares with collecting lines yourself.
What the betting odds API returns
Game lines come from GET /v1/odds. One call returns a league's upcoming games, up to 200 of them, each with a bookmakers array; on Syndicate it also returns games in progress. Pass markets=main for moneyline, spread and total, periods for anything beyond the full game, and books to keep the response to the sources you show.
curl "https://api.preciseapi.com/v1/odds?league=nba&markets=main&periods=full_game,1h,1q&books=fanduel,betmgm,circa,pinnacle" \
-H "Authorization: Bearer $PRECISEAPI_KEY"
A trimmed response:
{
"data": [{
"id": "evt_1iazqk4srnb",
"league": "nba",
"start_time": "2026-11-12T02:00:00.000Z",
"status": "scheduled",
"home": { "id": "nba_phx", "name": "Phoenix Suns", "abbr": "PHX" },
"away": { "id": "nba_sas", "name": "San Antonio Spurs", "abbr": "SAS" },
"score": null,
"clock": null,
"bookmakers": [{
"id": "circa",
"name": "Circa",
"type": "sportsbook",
"markets": [{
"id": "mkt_19gvfk2ks6p",
"key": "spread",
"period": "1h",
"line": -2.5,
"outcomes": [
{ "id": "sel_1d92w0erhd2", "name": "Phoenix Suns", "side": "home", "point": -2.5, "price": -112 },
{ "id": "sel_1lhzilnwepp", "name": "San Antonio Spurs", "side": "away", "point": 2.5, "price": -108 }
],
"suspended": false,
"updated_at": "2026-11-11T21:14:05.120Z"
}]
}]
}],
"meta": { "count": 1, "periods": ["full_game", "1h", "1q"], "format": "american", "credits_used": 2 }
}
The fields worth knowing: line is the market's main number (from the home side for spreads), point is each outcome's own handicap or total, and price comes in the format you ask for (American, decimal or probability). Outcome ids are shared, so the same side at the same number has the same selection id at every book and a comparison table needs no name matching. Exchange outcomes add liquidity, and markets carry the book's own ids plus event_url and betslip_url where the source publishes them.
First half, quarter and period odds
There is no separate first half odds API or quarter odds API to integrate. Part-game markets use the same three keys with a different period, and they come back as their own markets next to the full game. Each league carries the periods its books trade:
| League | Period keys |
|---|---|
| NFL, NCAAF, CFL, NBA, WNBA | full_game, 1h, 2h, 1q to 4q |
| NCAAB, soccer | full_game, 1h, 2h |
| MLB | full_game, f5 (first five innings) |
| NHL | full_game, 1p to 3p |
| Tennis | full_game, set1 to set3 |
| UFC | full_game, r1 to r5 |
| LoL, CS2, Valorant, Dota 2, Call of Duty | full_game, map1 to map3, maps1_2 |
| PGA | full_game (head-to-head matchups) |
So the hockey version of a period odds API call is /v1/odds?league=nhl&periods=1p,2p,3p. GET /v1/leagues and GET /v1/markets are free and list each league's periods and market keys, so build your menus from them rather than hard-coding this table. Not every book posts every period, so part-game markets usually have fewer sources than the full game.
Alternate lines and team totals
Main lines are one number per book; alternates are the rest of the ladder. alternate_spread and alternate_total hold every rung a book posts as outcome pairs, each with its own point and price, so read the numbers from the outcomes rather than a market-level line. Developers searching for an alternate lines API, or an alt lines API, usually want exactly this: the whole ladder per book, so the same number can be found at several books even when their main lines differ.
Alternates are separate keys, so ask for them by name with markets=main,alternate_spread,alternate_total. For a single game page, GET /v1/events/{id}/odds returns every market for every period in one call. /v1/best-lines compares main lines only and leaves alternate ladders out, so compare rungs in your own code.
team_total is an over/under on one side's score, with the team in the market's team object, and it takes periods like the main markets. It is each book's main line; the book's other lines on that team are alternate_team_total, one market per line. It is the team prop in the catalog. If you need a team props API for other team markets, such as first team to score, those aren't in the feed today; GET /v1/markets lists what is.
Books and leagues in the feed
Game lines come from 23 sportsbooks and 7 exchanges. That includes regulated US books such as FanDuel, DraftKings, BetMGM and Caesars, sharp books such as Pinnacle and Circa, offshore books such as BetOnline and Bovada, and venues such as Kalshi and Novig, which arrive in the same structure with liquidity attached. Many builders use a low-margin book as the reference column; the Pinnacle odds API page explains why. DFS pick'em apps don't post game lines, so they appear only in props responses.
All 17 leagues carry main lines, from the NFL and NBA to tennis, UFC and five esports titles. Soccer moneylines are three-way, with a draw outcome, and golf is priced as head-to-head matchups. League pages such as the NFL odds API and NBA odds API list the sources that have priced each league recently.
Plans and credit cost
Game lines are on every paid plan. A /v1/odds call costs 2 credits and covers up to 200 events whatever the number of books or periods, and /v1/events/{id}/odds also costs 2. Edge ($49.99 a month) includes 100,000 credits, so refreshing one league's board every two minutes, around the clock, uses about 43,200 credits in a 30-day month.
Sharp ($199.99) and Syndicate ($249.99) have unlimited credits, and Syndicate adds prices for games in progress plus the WebSocket stream. Requests that include player props are served 25 events at a time, so keep boards to game-line keys to get the full 200. The free Sandbox's 50 credits work on /v1/odds too, with your free key, at 20 requests a minute. Plan details are on odds API pricing.
Collecting lines yourself vs. a betting odds API
Scraping main lines from a dozen books is simple until you maintain it: every book names teams and periods its own way and changes its site without notice, and you need a rule for stale prices. The feed handles that layer: names map to stable team ids, spreads are stated from the home side, and a market whose source stops reporting is suspended and left out of responses unless you pass include_suspended=true.
As checked in October 2026, The Odds API publishes 60-second pre-match intervals for featured markets and covers far more sports and bookmakers, while SharpAPI prices its plans by the number of sportsbooks; PreciseAPI includes every source on every paid plan. Our The Odds API alternative page and the best odds API overview set the details side by side.
What developers build with game lines
- A real-time odds screen with a column per book and a tab per period, with best prices from the odds comparison API.
- Game cards for scoreboards and team pages: odds API for betting apps.
- Previews and comparison tables for publishers: odds API for affiliates.
- Pricing models that store each book's number and grade it against the close with the historical odds API; see sports betting model data.
- Line-move alerts for Discord or Slack: odds API for Discord bots.
For games in progress, the live odds API page covers in-play prices, and the player props API page covers player markets. The guides to the moneyline odds API, the spread odds API and the totals odds API go deeper on each market key.
Frequently asked questions
Which markets does the betting odds API include?
Moneyline, spread and total for every period a league offers, plus alternate_spread, alternate_total, team_total and alternate_team_total. Player props come from /v1/props and futures from /v1/futures. Same-game parlays aren't priced.
Can I get first half and quarter lines in one request?
Yes. Pass periods=full_game,1h,1q, or any list the league supports, to /v1/odds. Each period comes back as its own market with its own id, and the call still costs 2 credits.
How do I tell a line move from a price move?
Watch line and point separately from price. When a book moves a spread from -3 to -3.5, its -3 market is replaced by a new market, with its own id, at -3.5; a move from -110 to -120 at -3 changes only price on the same market. On the Syndicate WebSocket stream, the replaced market is removed with the reason line_moved.
Is there a free plan for the betting odds API?
The Sandbox is free, with 50 credits you can spend on plain-English questions in the dashboard chat or on pre-game lines through the API with your free key. Edge at $49.99 a month adds 100,000 credits a month.
What a request returns
Ask /v1/odds for a league and you get its upcoming games, plus games in progress on Syndicate, with each source's markets grouped by book. markets=main is shorthand for moneyline, spread and total, and periods selects halves, quarters, periods, innings or maps where the league has them. Each outcome carries a price and, for spreads and totals, the line, so a line move and a price move show up as separate changes.
Comparing books on main lines
Books often post different lines on the same game, so compare spreads and totals at the same number before comparing prices. Alternate spreads and totals fill the gaps: they are their own market keys, so the same number can often be found at several books even when their main lines differ. /v1/best-lines does this comparison for you and returns the best price per outcome.
Example request
GET /v1/odds?league=nfl&markets=moneyline,spread,total&books=fanduel,draftkings,pinnacle
Endpoint
- GET /v1/odds: Get odds
What teams build with it
- Odds screens: Build a real-time odds screen: every book’s price side by side, the best line highlighted and updates in under a second, from one normalized odds API.
- Odds alerts & notifications: An odds API for Discord bots and alerts: signed webhooks on line moves, or a WebSocket feed for steam and best-price logic, so your bot posts the move as it happens.
- Trading & market making: An odds API for sportsbooks and trading desks: every competitor’s price, sharp books and exchanges in real time, with line history, to price and manage risk.
- Media & affiliates: An odds API for affiliates, media and tipsters: live odds tables, best-price widgets and deep links to each book’s bet slip, from one normalized feed.
Related reading
- Moneyline Odds API: Pull, Compare and Convert Moneylines in Code: How moneylines are modeled in an odds API, two-way and three-way markets, periods, pulling them across books, converting between American, decimal and probability, measuring margin and charting moneyline history.
- Spread Odds API Guide: Point Spread Lines, Prices, Alternates and Key Numbers: How point spreads are represented in odds data, the home-handicap sign convention, run lines, puck lines and handicaps, alternate spread ladders, key numbers, comparing spreads across books and separating line moves from price moves in history.
- Totals Odds API: Over/Under Game, Period and Team Totals Data: How over/under totals are modeled in odds data, game totals by period, team totals with their team object, alternate total ladders, consistency checks between them, comparing totals across books, grading pushes and reading totals history.
More products
- Player props API: Player props API with real-time prop odds from every sportsbook and DFS pick’em app: points, rebounds, passing yards, strikeouts and more, on stable player ids.
- Live odds API: Live odds API with in-play prices pushed in under 500 ms over WebSocket on Syndicate, plus live scores, the game clock and automatic suspension of stale prices.
- Futures odds API: Futures odds API for championship, conference, division and award boards from FanDuel, DraftKings and Pinnacle, normalized with participant ids across books.
- Historical odds API: Historical odds API with timestamped line history for every market and book: opening prices, every move and the closing line, for backtests, CLV and research.
Responses use the same event, market and outcome ids as every other endpoint. Prices are American odds by default, with format=decimal and format=probability for the other two, and a market whose source has stopped reporting is flagged suspended instead of being shown as live.
Every source and league is on the coverage page, and what each request costs is on the pricing page.