---
title: "Sports odds data"
description: "Odds data from sportsbooks and odds comparison sites: pre-match and live lines, spreads, totals and line movement, as timestamped JSON for pricing models."
canonical: https://www.zenrows.com/use-cases/odds-data
updated: 2026-10-18
---

# Sports odds data

Odds data is the price a sportsbook offers on each outcome: moneylines, spreads, totals and props, pre-match and live, with the time each line changed. Zenrows collects it from sportsbooks and odds comparison sites, captures the JSON feeds their pages load, and returns timestamped records for pricing models, research and sports data products.

## Sample output: one market across books

```json
{
  "event_id": "example-league-2026-10-24-home-away",
  "sport": "soccer",
  "competition": "Example League",
  "home": "Home Club",
  "away": "Away Club",
  "start_time": "2026-10-24T19:00:00Z",
  "market": "match_result",
  "odds_format": "decimal",
  "captured_at": "2026-10-16T09:15:04Z",
  "books": [
    { "book": "Book A", "home": 2.10, "draw": 3.40, "away": 3.60, "updated_at": "2026-10-16T09:14:51Z" },
    { "book": "Book B", "home": 2.05, "draw": 3.50, "away": 3.75, "updated_at": "2026-10-16T09:13:20Z" },
    { "book": "Book C", "home": 2.12, "draw": 3.30, "away": 3.55, "updated_at": "2026-10-16T09:15:00Z" }
  ],
  "best_price": { "home": 2.12, "draw": 3.50, "away": 3.75 },
  "overround": { "Book A": 1.048, "Book B": 1.021, "Book C": 1.056 }
}
```

Illustrative. Overround, the sum of implied probabilities (1 divided by each price), is each book's margin.

## What odds data teams collect

Modellers, data vendors and integrity analysts need the series, not one price: how a line opened, moved and closed across books.

| Job | Data you collect | Typical sources |
|---|---|---|
| Line movement history | Opening, current and closing prices, timestamped | bet365, DraftKings, FanDuel, Pinnacle, Betfair Exchange |
| Cross-book comparison | Best available price per outcome, margin per book | Oddschecker, OddsPortal, sportsbooks |
| Pricing model inputs | Odds joined to results, lineups, injuries, xG | FBref, Transfermarkt, ESPN, league and club sites |
| Live in-play odds | Price, suspension, score at each change | Sportsbook live event pages |
| Horse racing markets | Runners, prices, non-runners, results | Racing Post, Sportsbet.com.au, tote sites |
| Integrity monitoring | Sharp cross-book moves, especially on lower-tier events | Several books, polled often |

## Why scraping sportsbooks breaks

Sportsbook pages are shells around live feeds, restricted by who and where.

| What breaks | What it looks like | How Zenrows handles it |
|---|---|---|
| Odds load from a background feed | Layout in the HTML, no prices | Zenrows captures the XHR calls and their JSON |
| Country restrictions | Different markets, or none, by visitor location | Geotargeting loads it from your target country |
| Bot protection | Challenges after repeat requests | Zenrows' stealth gets through Cloudflare, Akamai, Imperva and similar, with retries |
| Live prices move in seconds | Polling misses changes between requests | A Browser session stays on the page, reading each update |
| Names differ between books | "Man Utd" here, "Manchester United" there | Store raw names and event IDs; map to your own |

## How to scrape odds data with Zenrows

1. **Find the feed**: render one event page and find the background call holding prices.
2. **Poll pre-match markets**, faster near kickoff, or send the event list to Batch.
3. **Stay on live events** with a Browser session reading the market every few seconds.
4. **Timestamp and normalise**: capture time, book update time, decimal odds, implied probability.

```python Python
# pip install requests
import json
import requests

params = {
    "apikey": "YOUR_ZENROWS_API_KEY",
    "url": "EVENT_PAGE_URL",
    "js_render": "true",
    "premium_proxy": "true",
    "proxy_country": "gb",
    "wait_for": ".market",  # example selector for the odds panel
    "json_response": "true",
}
data = requests.get("https://api.zenrows.com/v1/", params=params).json()

# Keep the background call that carries the odds and parse its body
odds_call = next(call for call in data["xhr"] if "odds" in call["url"])
markets = json.loads(odds_call["body"])
print(markets)
```

```javascript Node.js
// npm install puppeteer-core
import puppeteer from "puppeteer-core";

const browser = await puppeteer.connect({
  browserWSEndpoint: "wss://browser.zenrows.com?apikey=YOUR_ZENROWS_API_KEY",
});
const page = await browser.newPage();
await page.goto("LIVE_EVENT_URL", { waitUntil: "domcontentloaded" });
// Example selectors: match them to the book's event page
await page.waitForSelector(".market");

// Read the market every 10 seconds for 5 minutes
for (let i = 0; i < 30; i++) {
  const prices = await page.$$eval(".selection", (rows) =>
    rows.map((row) => ({
      outcome: row.querySelector(".name")?.textContent.trim(),
      odds: row.querySelector(".price")?.textContent.trim(),
    }))
  );
  console.log(new Date().toISOString(), prices);
  await new Promise((resolve) => setTimeout(resolve, 10_000));
}
await browser.close();
```

```bash CLI
npx -y @zenrows/cli init
# Pre-match snapshot from the UK, once the odds panel has loaded
zenrows extract EVENT_PAGE_URL --proxy-country gb --wait-for ".market" \
  --css '{"outcomes":".selection .name","odds":".selection .price"}'
# Every event on the fixture list as one job
zenrows batch create events.jsonl --wait
```

```text Claude Code (MCP)
# Connect once
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

# Then ask:
Use Zenrows to open the Oddschecker page for Arsenal v Chelsea, wait for the match
result market to load, and return every bookmaker's decimal odds for home, draw and
away as JSON, with the time you read them.
```

## Which Zenrows product fits

| If you need to | Use | Why |
|---|---|---|
| Snapshot pre-match odds for an event | [Fetch](/products/fetch) | The page, or its odds feed from background calls |
| Follow a live event minute by minute | [Browser](/products/browser) | One session reads each update on the page |
| Snapshot a whole fixture list at once | [Batch](/products/batch) | All events in one job, results by webhook |

## What success looks like

| Measure | What good looks like | How to check it |
|---|---|---|
| Capture latency | Seconds between a live update and your record | Book update time against `captured_at` |
| Snapshot completeness | Every book prices every market, each cycle | Missing book and market pairs per cycle |
| Closing line capture | A final pre-match price for every event | A snapshot within your cutoff before `start_time` |
| Mapping accuracy | Every event and team mapped to your IDs | Unmapped names per run |
| Stale prices | No open-market price older than one poll interval | Alert on pairs with no snapshot in one interval |

## Odds data FAQ

### What is odds data?

Timestamped prices bookmakers and exchanges offer on sporting outcomes: moneylines or match result, spreads and handicaps, totals, props and futures, pre-match and in play. As implied probability, it is the market's estimate.

### Is there an odds data API?

Commercial feeds cover fixed books and markets. Zenrows is the API over the books you choose: send an event page, get odds as JSON, regional books included.

### Is it legal to scrape betting odds?

Odds are public prices, commonly collected for analysis and data products. Sportsbooks set terms, some jurisdictions restrict gambling sites, and official league data can carry licensing. Check those, and your use with your legal team.

### How often should I collect odds?

Pre-match: hourly early in the week, every few minutes near the start, when lines move fastest. Live markets change in seconds, so use a Browser session that stays on the page.

### How do I build line movement data?

Store every snapshot: event, book, market, outcome, decimal odds, capture time. Sorted per outcome and book, the first is the opening line, the last before the start the closing line. Flag big moves on several books within minutes; those usually carry information.

### Can I collect odds from sportsbooks in other countries?

Yes. Geotargeting picks the country (the UK for UK books, Australia for Australian racing) so each book shows local markets and prices. Store the market per record: prices differ by country.

### What is the difference between odds data and sports data?

Sports data is what happens: fixtures, scores, lineups, stats. Odds data is what the market expects. Models join both on event and time; Zenrows collects both the same way.

## Related use cases

- [Financial data scraping](https://www.zenrows.com/use-cases/financial-data-scraping.md): Rate tables, IR pages, filings, fund data and central bank releases, as JSON tables and Markdown documents.
- [Alternative data for investors](https://www.zenrows.com/use-cases/alternative-data.md): Hiring, pricing, app ranks, reviews and store counts per ticker, collected weekly as point-in-time series.
- [Competitor price scraping](https://www.zenrows.com/use-cases/price-scraping.md): Competitor prices, promotions, shipping and stock per SKU from retailers and marketplaces, refreshed on your schedule.
- [News scraping](https://www.zenrows.com/use-cases/news-scraping.md): Full-text articles, headlines, bylines and dates from publishers, Google News and wires, as clean Markdown or JSON.
- [Web scraping stock prices](https://www.zenrows.com/use-cases/web-scraping-stock-prices.md): Quotes, historical prices, fundamentals and ticker news from finance portals, as JSON for dashboards and backtests.
- [Website change monitoring](https://www.zenrows.com/use-cases/website-change-monitoring.md): Pricing pages, policies, stock status and IR pages fetched on a schedule and diffed to catch real changes.

Start free: https://app.zenrows.com/register. Docs: https://docs.zenrows.com

## Structured data



<script type="application/ld+json">
{"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":"https://www.zenrows.com/use-cases/odds-data#webpage","url":"https://www.zenrows.com/use-cases/odds-data","name":"Sports odds data","description":"Odds data from sportsbooks and odds comparison sites: pre-match and live lines, spreads, totals and line movement, as timestamped JSON for pricing models.","isPartOf":{"@id":"https://www.zenrows.com/#website"},"inLanguage":"en","datePublished":"2026-10-18","dateModified":"2026-10-18","about":{"@type":"Thing","name":"odds data"},"keywords":"odds data, sports odds data, sports betting data, odds scraper, odds data api, scraping sports data, web scraping betting odds, sports data api, line movement data","publisher":{"@type":"Organization","name":"Zenrows","url":"https://www.zenrows.com/"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zenrows.com/"},{"@type":"ListItem","position":2,"name":"Use cases","item":"https://www.zenrows.com/use-cases"},{"@type":"ListItem","position":3,"name":"Sports odds data","item":"https://www.zenrows.com/use-cases/odds-data"}]},{"@type":"FAQPage","@id":"https://www.zenrows.com/use-cases/odds-data#faq","mainEntity":[{"@type":"Question","name":"What is odds data?","acceptedAnswer":{"@type":"Answer","text":"Timestamped prices bookmakers and exchanges offer on sporting outcomes: moneylines or match result, spreads and handicaps, totals, props and futures, pre-match and in play. As implied probability, it is the market's estimate."}},{"@type":"Question","name":"Is there an odds data API?","acceptedAnswer":{"@type":"Answer","text":"Commercial feeds cover fixed books and markets. Zenrows is the API over the books you choose: send an event page, get odds as JSON, regional books included."}},{"@type":"Question","name":"Is it legal to scrape betting odds?","acceptedAnswer":{"@type":"Answer","text":"Odds are public prices, commonly collected for analysis and data products. Sportsbooks set terms, some jurisdictions restrict gambling sites, and official league data can carry licensing. Check those, and your use with your legal team."}},{"@type":"Question","name":"How often should I collect odds?","acceptedAnswer":{"@type":"Answer","text":"Pre-match: hourly early in the week, every few minutes near the start, when lines move fastest. Live markets change in seconds, so use a Browser session that stays on the page."}},{"@type":"Question","name":"How do I build line movement data?","acceptedAnswer":{"@type":"Answer","text":"Store every snapshot: event, book, market, outcome, decimal odds, capture time. Sorted per outcome and book, the first is the opening line, the last before the start the closing line. Flag big moves on several books within minutes; those usually carry information."}},{"@type":"Question","name":"Can I collect odds from sportsbooks in other countries?","acceptedAnswer":{"@type":"Answer","text":"Yes. Geotargeting picks the country (the UK for UK books, Australia for Australian racing) so each book shows local markets and prices. Store the market per record: prices differ by country."}},{"@type":"Question","name":"What is the difference between odds data and sports data?","acceptedAnswer":{"@type":"Answer","text":"Sports data is what happens: fixtures, scores, lineups, stats. Odds data is what the market expects. Models join both on event and time; Zenrows collects both the same way."}}]}]}
</script>
