What is line shopping?
Line shopping means comparing every sportsbook’s price before you bet and taking the best one. Why it matters, what it is worth and how to do it with data.
Comparing prices across books to bet at the best available number.
The same bet can be −110 at one book and +100 at another. Always taking the best price is the simplest way to lower the vig you pay — and it’s exactly what an odds screen automates.
Sportsbooks do not agree on prices. On any given game, the same side of the same market can carry noticeably different odds from one book to the next, and occasionally a different number altogether. Line shopping, or shopping for the best odds, is the practice of lining those prices up side by side and identifying the best one available for each outcome. It is the core job of every odds screen and comparison widget, and from a data point of view it is a normalization and comparison problem across many sources.
Why line shopping matters
Price differences between books exist for ordinary reasons. Books set margins differently, react to news at different speeds, manage their own exposure, and run promotions on popular games. The result is a spread of prices for the same proposition at any given moment.
For users, seeing that spread makes the market transparent and shows which of their sportsbook accounts has the best number. For builders, it is the basis for a whole category of products:
- Odds screens that show every book's spread, total and moneyline in one table with the best price highlighted.
- Media and affiliate widgets that put the current best number next to a game preview.
- Market research comparing how each book prices the same game, and how wide their margins are.
- Pricing tools at trading desks that compare their own number with the rest of the market.
Line shopping is a comparison of prices. It does not predict outcomes, and the best available price on a side tells you nothing about whether that side will win.
How line shopping works
Same line, different prices
Take an NFL point spread where three books all have the home team at -3:
| Book | Home -3 | Away +3 | Implied total | Hold |
|---|---|---|---|---|
| Book A | -115 | -105 | 104.71% | 4.50% |
| Book B | -108 | -112 | 104.75% | 4.54% |
| Book C | -105 | -115 | 104.71% | 4.50% |
| Best of each side | -105 (C) | -105 (A) | 102.44% | 2.38% |
Each row's implied total is the sum of both sides' implied probabilities. Book A's -115 implies 115 / 215 = 53.49% and its -105 implies 105 / 205 = 51.22%, so the two sides sum to 104.71%. The hold is 1 − 1 / 1.0471 = 4.50%.
Every individual book carries a margin of about 4.5%. Taking the best price on each side from different books gives -105 on both, which sums to 102.44% and a combined hold of 2.38%. That gap between a single book's margin and the best-of-market margin is exactly what a line-shopping view makes visible.
In decimal odds, the home side is 1.8696 at -115 versus 1.9524 at -105, a gap of about 0.083 for exactly the same proposition.
A simpler illustration
The classic example is the same side quoted at -110 at one book and +100 at another. -110 implies 52.38% and is 1.9091 in decimal; +100 implies 50% and is 2.0000 in decimal. Nothing about the game is different. Only the price is.
Different lines
Sometimes books disagree on the number itself: one has the home side at -3 -110 and another at -2.5 -120. Those are different propositions, because a 3-point win lands differently on each. A comparison should either group prices by line, showing -3 and -2.5 as separate rows, or convert between lines with an explicit, sport-specific model. Treating -2.5 -120 and -3 -110 as the "same" market is one of the most common errors in comparison tools.
Margins and reference prices
Line shopping pairs naturally with no-vig fair odds. De-vigging a reference book, often a sharp book such as Pinnacle, gives an estimate of fair probability to set next to the best available price. The sportsbook hold comparison shows how margins differ by book and market.
How line shopping shows up in data
A comparison is only as good as the alignment of its inputs:
- Normalized identities. Every book must map to the same event, market key, period and side. PreciseAPI returns shared event ids, market keys and outcome
sidevalues (home,away,draw,over,under) across all sources, so you are not matching team names by hand. - Lines and prices separately. Each market has a
line, and each outcome has its ownpointandprice. Group by line before comparing prices. - Freshness. Each market carries
updated_at, the time of the last change to that market. A price that has not changed in a while is not necessarily stale, but you should know how old it is. - Suspensions. A market flagged
suspendedis not available. REST responses drop suspended markets by default so a screen never shows a price the book has pulled.
How the PreciseAPI API helps
/v1/best-lines: the comparison, done for you
/v1/best-lines returns, for every comparable market, the best price per outcome, every book offering that price (ties included) and how many books are quoting the market. Prices are grouped by market key, period and line, so -3 and -3.5 never get mixed, and a group needs at least two books quoting it to appear. Suspended markets, alternate ladders and DFS apps are excluded. It defaults to the main markets (moneyline, spread, total) for the full game and costs 3 credits per request on every paid plan. See the best lines reference.
curl "https://api.preciseapi.com/v1/best-lines?league=nfl&markets=spread&books=pinnacle,draftkings,fanduel,betmgm,caesars" \
-H "Authorization: Bearer $PRECISEAPI_KEY"
{
"data": [
{
"id": "evt_0uuc6p2dsqa",
"league": "nfl",
"start_time": "2026-10-18T17:00:00.000Z",
"home": { "id": "nfl_jax", "name": "Jacksonville Jaguars", "abbr": "JAX" },
"away": { "id": "nfl_hou", "name": "Houston Texans", "abbr": "HOU" },
"markets": [
{
"key": "spread",
"period": "full_game",
"line": -3,
"books_quoting": 4,
"outcomes": [
{ "name": "Jacksonville Jaguars", "side": "home", "point": -3, "best_price": -105, "best_books": ["fanduel"] },
{ "name": "Houston Texans", "side": "away", "point": 3, "best_price": -105, "best_books": ["draftkings", "betmgm"] }
]
}
]
}
]
}
/v1/odds: the full board
When you need every book's price rather than just the best one, /v1/odds returns each event with a bookmakers array. Use books= (or bookmakers=) to choose sources, markets= and periods= to narrow the request, and format=decimal if your comparison logic works in decimal odds. It costs 2 credits per request.
const res = await fetch(
'https://api.preciseapi.com/v1/odds?league=nfl&markets=spread&books=pinnacle,draftkings,fanduel,betmgm',
{ headers: { Authorization: `Bearer ${process.env.PRECISEAPI_KEY}` } },
);
const { data } = await res.json();
for (const event of data) {
const rows = new Map(); // line -> [{ book, home, away, updated_at }]
for (const bk of event.bookmakers) {
for (const m of bk.markets) {
const home = m.outcomes.find((o) => o.side === 'home');
const away = m.outcomes.find((o) => o.side === 'away');
if (!home || !away) continue;
const list = rows.get(m.line) ?? [];
list.push({ book: bk.id, home: home.price, away: away.price, updated_at: m.updated_at });
rows.set(m.line, list);
}
}
console.log(`${event.away.abbr} @ ${event.home.abbr}`, Object.fromEntries(rows));
}
Matching outcomes by side rather than by array position keeps the comparison correct even if books list outcomes in a different order.
Keep it live
An odds screen that refreshes every few minutes will show prices books have already moved. The WebSocket stream pushes only the markets that change, so a screen can update one cell at a time. It is available on the Syndicate plan, with 10 concurrent sockets. For notifications when a specific book moves a main-market price past a threshold, line-move webhooks send a signed line.moved event.
Wide coverage
PreciseAPI tracks 36 sources, including 23 sportsbooks, 7 exchanges and 6 DFS apps, across 17 leagues. Exchanges arrive in the same schema as sportsbooks, with their exchange liquidity, so they can sit in the same comparison table. The best lines API page summarises the feature.
Common mistakes in code
- Comparing across lines. Group by
linebefore picking a best price. - Comparing American odds numerically. -105 is better than -115, and +120 is better than +110, but naive numeric sorting across the plus/minus boundary gets this wrong. Convert to decimal first, or request
format=decimal. - Matching outcomes by position. Use
side. - Including suspended markets. A pulled price is not available. Leave
include_suspendedoff for display. - Ignoring freshness. Show
updated_ator an age indicator so users know how recent each price is. - Mixing periods. A first-half spread and a full-game spread share a key but not a period.
Related terms and guides
- Vig, hold, no-vig fair odds, line movement and futures, where price differences between books tend to be widest.
- Build one end to end with how to build an odds screen, and see normalizing odds across sportsbooks and the odds screen use case.
Frequently asked questions
What is the difference between line shopping and an odds screen?
Line shopping is the comparison itself: finding the best available price for each outcome across books. An odds screen is the product that automates it, displaying every book's numbers side by side and highlighting the best one.
Does /v1/best-lines compare different spreads, like -3 and -3.5?
No. It groups prices by market, period and line, so each distinct number is its own group with its own best prices. This avoids presenting a different proposition as a better price.
How many books does PreciseAPI compare?
The catalog covers 36 sources across 17 leagues. /v1/best-lines compares sportsbooks and exchanges and excludes DFS apps. You can restrict any request to a subset with books.
Why does the best price change so often?
Books move at different times and for different reasons, so the book offering the best price can change several times before an event. On busy game days, streaming is the practical way to keep a comparison current.
Can I compare prices in decimal or probability format?
Yes. Add format=decimal or format=probability to /v1/odds or /v1/best-lines. Lines and points are unaffected; only prices change format.
Related reading
- Line Shopping API: Finding the Best Prices Across Every Book: How to find the best available price for every outcome across sportsbooks and exchanges in code. Matching outcomes, comparing prices and numbers, /v1/best-lines versus computing it yourself, freshness and credit budgets.
- How to Build an Odds Screen in Real Time (Architecture and Code): A production architecture for a live odds screen with a REST snapshot, WebSocket deltas, best-line highlighting in React and handling of stale prices.