get_line_at_time
Last updated 30 days ago · updates daily at about 10:00 UTC · No games since 2016-11-02 · 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 run line, total or moneyline was at a moment before first pitch, 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 (batter_hits, say) with an optional line: you get each book's prop line and price at that moment and at the close.
Parameters
game_idstringrequired- Game id from get_games or get_schedule.
marketenum: moneyline | spread | total | batter_hits | batter_home_runs | batter_total_bases | batter_rbis | pitcher_strikeouts | pitcher_outsrequired- The market: moneyline = moneyline (home, away); spread = run line (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): batter_hits (hits), batter_home_runs (home runs), batter_total_bases (total bases), batter_rbis (runs batted in), pitcher_strikeouts (pitcher strikeouts), pitcher_outs (pitcher outs recorded).
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: mlb | ncaabaseoptional- League. Defaults to mlb. One of: mlb, ncaabase.
Notes
- Over MCP, ask for it in plain English and the client calls
get_line_at_timeitself. Point any MCP client athttps://mcp.fastballapi.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.fastballapi.com/v1/get_line_at_time \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"game_id": "401908046",
"market": "total",
"at": "2026-10-28T12:00:00Z"
}'Response
{
"game": {
"game_id": "401908046",
"home": "TB",
"away": "MIL",
"scheduled_start": "2026-10-29T00:00:00.000Z"
},
"market": "total",
"label": "total (the line, and an over and an under price)",
"requested_time": "2026-10-28T12:00:00.000Z",
"books": [
{
"bookmaker": "BetMGM",
"at_time": {
"captured_at": "2026-10-28T11:55:36.000Z",
"minutes_before_time": 4.4,
"line": 6.5,
"prices": "{...}"
},
"closing": {
"captured_at": "2026-10-28T23:50:36.000Z",
"minutes_before_start": 9.4,
"line": 6,
"prices": "{...}"
},
"line_change": -0.5,
"implied_probability_change": {
"over": 0.004,
"under": -0.005
},
"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.overnumberbooks[].implied_probability_change.undernumberbooks[].same_capturebooleancountnumbernotestring
Related endpoints
Returns the game_id this one takes.
Games with runs, hits and errors 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: every batting and pitching line, each book's line, win probability
Takes the game_id this one returns.
Snapshots of each sportsbook's line before first pitch
Try it
500 free credits every month: 100 calls to get_line_at_time, and no card.