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.

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:

LeaguePeriod keys
NFL, NCAAF, CFL, NBA, WNBAfull_game, 1h, 2h, 1q to 4q
NCAAB, soccerfull_game, 1h, 2h
MLBfull_game, f5 (first five innings)
NHLfull_game, 1p to 3p
Tennisfull_game, set1 to set3
UFCfull_game, r1 to r5
LoL, CS2, Valorant, Dota 2, Call of Dutyfull_game, map1 to map3, maps1_2
PGAfull_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

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

What teams build with it

Related reading

More products

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.