This page is about getting the betting lines that ESPN publishes as rows: moneyline, spread and over/under for each game, with the opening line and how far the line has moved. It is not an API from ESPN. It reads the odds ESPN shows for NFL, NBA, MLB, NHL, college sports and the big soccer leagues. The odds are information, not betting advice, and the rows contain no links to sportsbooks.
People who build their own odds history for models and backtests, newsletter and dashboard makers, and anyone who watches a line move want the numbers on a schedule. ESPN only shows today's line; the history comes from your own runs.
Short version: one game's line now → the game page on espn.com. Many leagues, the opening line, a line movement tracker that gives you only the lines that moved → Sports Odds Tracker on Apify. No login, no API key.
leagues takes nfl, nba, mlb, nhl, wnba, college-football, soccer codes such as eng.1 and names such as epl or mls. days sets the window (1 to 14, default 3).homeMoneyline, awayMoneyline, spread, overUnder, and the opening line in openHomeMoneyline, openSpread and openOverUnder.moneylineMoveSinceOpen, spreadMoveSinceOpen and totalMoveSinceOpen are the current line minus the opening line.changedSinceLastRun, previousSpread, moneylineMove, spreadMove and totalMove.output to changes and run every 15 to 60 minutes: only new or moved lines are returned and charged, and a run with none costs nothing.homeImpliedProbability, bookMarginPercent and homeFairProbability are worked out from each moneyline.The input on the Actor's page is already filled in: NFL and NBA games of the next 3 days came back with their odds in about 4 seconds, 19 odds rows (the Actor's run on 22 November 2026; the count follows the schedule). The first rows:
| league | name | provider | homeMoneyline | awayMoneyline | spread | overUnder | moneylineMoveSinceOpen |
|---|---|---|---|---|---|---|---|
| nfl | Arizona Cardinals at Kansas City Chiefs | DraftKings | -1440 | 850 | -15.5 | 40.5 | -840 |
| nfl | Baltimore Ravens at Carolina Panthers | DraftKings | -145 | 123 | -3 | 44.5 | -125 |
| nfl | Miami Dolphins at Buffalo Bills | DraftKings | -1460 | 860 | -16.5 | 44.5 | -860 |
Good to know:
Price: pay per event (each run start and each odds row); the current prices are on the Actor's page. Note and error rows are free, and a run that returns nothing costs nothing.
curl -X POST "https://api.apify.com/v2/acts/northbell~sports-odds-tracker/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"leagues":["nfl","nba"]}'
Rows have type odds, note or error. For only the lines that moved add "output":"changes".
Source: the odds shown on espn.com, what anyone sees without signing in. Not affiliated with or endorsed by ESPN.