Skip to content

get_line_at_time

5 creditsStats + aggregationPOST /v1/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_time itself. Point any MCP client at https://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

json
{
  "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

gameobject
game.game_idstring
game.homestring
game.awaystring
game.scheduled_startstring
marketstring
labelstring
requested_timestring
books[]array
List of objects
books[].bookmakerstring
books[].at_timeobject
books[].at_time.captured_atstring
books[].at_time.minutes_before_timenumber
books[].at_time.linenumber
books[].at_time.pricesstring
books[].closingobject
books[].closing.captured_atstring
books[].closing.minutes_before_startnumber
books[].closing.linenumber
books[].closing.pricesstring
books[].line_changenumber
books[].implied_probability_changeobject
books[].implied_probability_change.overnumber
books[].implied_probability_change.undernumber
books[].same_captureboolean
countnumber
notestring

Related endpoints

Try it

500 free credits every month: 100 calls to get_line_at_time, and no card.