Skip to content

get_line_at_time

5 creditsStats + aggregationPOST /v1/get_line_at_time

Last updated 5 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 an NFL player prop's line and price at a chosen time. Game lines also for FBS college football

Use it when you want what a sportsbook's spread, total or moneyline was at a moment before kickoff (say, Wednesday noon), 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_pass_yds, say) with an optional line: you get each book's prop line and price at that moment and at the close. College football (league ncaaf) takes the same game markets, from the odds archive's snapshots.

Parameters

game_idstringrequired
Game id from get_games or get_schedule.
marketenum: moneyline | spread | total | player_pass_yds | player_pass_tds | player_pass_completions | player_pass_attempts | player_pass_interceptions | player_rush_yds | player_rush_attempts | player_receptions | player_reception_yds | player_anytime_td | player_tds_over | player_1st_td | player_pass_longest_completion | player_rush_longest | player_reception_longestrequired
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_pass_yds (passing yards), player_pass_tds (passing touchdowns), player_pass_completions (pass completions), player_pass_attempts (pass attempts), player_pass_interceptions (interceptions thrown), player_rush_yds (rushing yards), player_rush_attempts (rush attempts), player_receptions (receptions), player_reception_yds (receiving yards), player_anytime_td (anytime touchdown (over = scores)), player_tds_over (touchdowns scored), player_1st_td (first touchdown scorer (over = scores the game's first touchdown)), player_pass_longest_completion (longest completion), player_rush_longest (longest rush), player_reception_longest (longest reception).
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.

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.endzoneapi.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.endzoneapi.com/v1/get_line_at_time \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
  "game_id": "2026_13_KC_LA",
  "market": "spread",
  "at": "2026-12-02T18:00:00Z"
}'

Response

json
{
  "game": {
    "game_id": "2026_13_KC_LA",
    "home": "LA",
    "away": "KC",
    "scheduled_start": "2026-12-04T01:15:00.000Z"
  },
  "market": "spread",
  "label": "spread (the home side's line, and a price for each side)",
  "requested_time": "2026-12-02T18:00:00.000Z",
  "books": [
    {
      "bookmaker": "betmgm",
      "at_time": {
        "captured_at": "2026-12-02T17:05:47.507Z",
        "minutes_before_time": 54.2,
        "line": 2,
        "prices": "{...}"
      },
      "closing": {
        "captured_at": "2026-12-04T01:05:47.384Z",
        "minutes_before_start": 9.2,
        "line": -1,
        "prices": "{...}"
      },
      "line_change": -3,
      "implied_probability_change": {
        "home": -0.007,
        "away": -0.012
      },
      "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.homenumber
books[].implied_probability_change.awaynumber
books[].same_captureboolean
countnumber
notestring

Related endpoints

Try it

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