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.
Updated
{
"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 }
}
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.
Layout in the HTML, no prices
Zenrows captures the XHR calls and their JSON
Different markets, or none, by visitor location
Geotargeting loads it from your target country
Challenges after repeat requests
Zenrows' stealth gets through Cloudflare, Akamai, Imperva and similar, with retries
Polling misses changes between requests
A Browser session stays on the page, reading each update
"Man Utd" here, "Manchester United" there
Store raw names and event IDs; map to your own
How to scrape odds data with Zenrows
- Find the feed: render one event page and find the background call holding prices.
- Poll pre-match markets, faster near kickoff, or send the event list to Batch.
- Stay on live events with a Browser session reading the market every few seconds.
- Timestamp and normalise: capture time, book update time, decimal odds, implied probability.
# 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)// 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();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# 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.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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.