get_line_at_time
Last updated 4 hours ago · updates daily at about 10:00 UTC · Fresh · status
A sportsbook's line and prices at a chosen time, the closing line, and the change in points and implied probability; or a player prop's line and price at a chosen time
Use it when you want what a sportsbook's spread, total or moneyline was at a moment before tip-off (say, six hours out), the closing line, and how far the two are apart in points and in implied probability. For a player prop pass player_id and a prop market (player_points, say) with an optional line: you get each book's prop line and price at that moment and at the close, and with line the last capture that posted exactly it.
Parameters
game_idstringrequired- Game id from list_games or get_schedule.
marketenum: moneyline | spread | total | player_points | player_rebounds | player_assists | player_threes | player_points_rebounds_assists | player_blocks | player_steals | player_points_rebounds | player_points_assists | player_rebounds_assists | player_double_double | player_triple_doublerequired- The market: moneyline = moneyline (home, away); spread = spread (the home side's line, and a price for each side); total = total (the line, and an over and an under price). Or a player prop (with player_id): player_points (points), player_rebounds (rebounds), player_assists (assists), player_threes (three-pointers made), player_points_rebounds_assists (points + rebounds + assists), player_blocks (blocks), player_steals (steals), player_points_rebounds (points + rebounds), player_points_assists (points + assists), player_rebounds_assists (rebounds + assists), player_double_double (double-double (over = yes)), player_triple_double (triple-double (over = yes)).
atstringrequired- The moment, ISO 8601 with its zone, e.g. 2026-12-01T23:00:00Z. A time with no zone is read as UTC.
bookmakerstringoptional- One bookmaker, e.g. draftkings, fanduel, pinnacle. Default: every book with a capture.
player_idstring | numberoptional- Player id from search_players. Required for a player prop market.
linenumberoptional- A player prop's line, e.g. 24.5: also returns each book's last capture at or before the time that posted exactly this line. Props only.
estimate_onlybooleanoptional- Return what this call would cost, without charging or running it.
leagueenum: nba | wnba | ncaam | ncaaw | nbloptional- League. Defaults to nba. One of: nba, wnba, ncaam, ncaaw, nbl.
Notes
- Over MCP, ask for it in plain English and the client calls
get_line_at_timeitself. Point any MCP client athttps://mcp.dunkapi.com/mcp?key=YOUR_API_KEY. - Each call costs 5 credits, taken before it runs and refunded if the server errors.
- Not the call you need? Find the right call by what you are trying to answer.
Request
curl -X POST https://mcp.dunkapi.com/v1/get_line_at_time \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"game_id": "401910089",
"market": "spread",
"at": "2026-12-03T20:00:00Z"
}'Response
{
"game": {
"game_id": "401910089",
"home": "POR",
"away": "UTAH",
"scheduled_start": "2026-12-04T03:00:00.000Z"
},
"market": "spread",
"label": "spread (the home side's line, and a price for each side)",
"requested_time": "2026-12-03T20:00:00.000Z",
"books": [
{
"bookmaker": "BetMGM",
"at_time": {
"captured_at": "2026-12-03T19:05:45.528Z",
"minutes_before_time": 54.2,
"line": -10.5,
"prices": "{...}"
},
"closing": {
"captured_at": "2026-12-04T03:05:44.105Z",
"minutes_before_start": -5.7,
"line": -10.5,
"prices": "{...}"
},
"line_change": 0,
"implied_probability_change": {
"home": 0,
"away": 0
},
"same_capture": false
}
],
"count": 8,
"note": "Implied probability is the posted price converted as it stands, the sportsbook's margin still in it; the changes are closing minus at-time."
}Response fields
gameobjectgame.game_idstringgame.homestringgame.awaystringgame.scheduled_startstringmarketstringlabelstringrequested_timestringbooks[]array- List of objects
books[].bookmakerstringbooks[].at_timeobjectbooks[].at_time.captured_atstringbooks[].at_time.minutes_before_timenumberbooks[].at_time.linenumberbooks[].at_time.pricesstringbooks[].closingobjectbooks[].closing.captured_atstringbooks[].closing.minutes_before_startnumberbooks[].closing.linenumberbooks[].closing.pricesstringbooks[].line_changenumberbooks[].implied_probability_changeobjectbooks[].implied_probability_change.homenumberbooks[].implied_probability_change.awaynumberbooks[].same_capturebooleancountnumbernotestring
Related endpoints
Returns the game_id this one takes.
Games with scores by season, date, range or team
Returns the game_id this one takes.
Upcoming games with the median line across sportsbooks
Takes the game_id this one returns.
One game: both box scores, every player's line, each book's line, win probability
Takes the game_id this one returns.
What the market thinks of a game: average implied and fair probability for the moneyline, spreads and totals
Try it
500 free credits every month: 100 calls to get_line_at_time, and no card.