Sports Betting — Cloudflare Report
Data sources
What we use now (NBA truth data), what we need next (odds/props markets), and what context sources improve accuracy.
Sources we’re using today
NBA stats via nba_api: game lists, box scores, and (optionally) play-by-play via stats endpoints.
pbpstats (optional): alternate play-by-play normalization and caching when needed.
Sources we need next (to support FanDuel-style betting)
To cover “all markets you can bet in the app,” we need a market/odds feed that includes:
- Pre-game lines: spreads, totals, moneylines
- Player props: points/assists/rebounds/3PM + combinations
- In-game markets (optional later): live spreads/totals/props
- Historical archive (for backtesting) if available
Practical note: the best path is usually a paid, normalized odds provider with clear terms. If we must scrape, we’ll add a dedicated ingestion tool with rate limits, caching, and schema drift detection.
Context sources (improves projections)
- Injuries / availability
- Starting lineups / rotation signals
- Team pace + offensive/defensive efficiency
- Schedule density (back-to-backs, travel)
These are “adjusters” to the baseline minutes × per-minute model.