Skip to content

Guides

How do I compare NFL player prop lines across sportsbooks?

The closing passing-yards line for one quarterback in one game at every book that posted it, with the over and under prices.

Code verified October 10, 2026. One call to get_player_props, 10 credits.

The call

game_id looks like 2025_01_BAL_BUF and comes from get_games. Add snapshot_type: opening for the first line.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.endzoneapi.com/v1/get_player_props",
    headers={"x-api-key": API_KEY},
    json={
        "game_id": "2025_01_BAL_BUF",
        "player_id": "00-0034857",
        "market": "player_pass_yds",
    },
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]

props = pd.DataFrame(data["props"])
print(props[["bookmaker", "line", "over_odds", "under_odds"]].sort_values("line"))
print("spread between books:", props["line"].max() - props["line"].min(), "yards")

Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.

What comes back

The data object of the response, trimmed to the first rows. Every field is real output from the run above.

{
  "snapshot_type": "closing",
  "games": 1,
  "props": [
    {
      "game_id": "2025_01_BAL_BUF",
      "player_name": "Josh Allen",
      "gsis_id": "00-0034857",
      "market": "player_pass_yds",
      "bookmaker": "betmgm",
      "line": 231.5,
      "over_odds": -115,
      "under_odds": -115,
      "captured_at": "2025-09-07 21:53:37+00",
      "source": "the_odds_api"
    },
    {
      "game_id": "2025_01_BAL_BUF",
      "player_name": "Josh Allen",
      "gsis_id": "00-0034857",
      "market": "player_pass_yds",
      "bookmaker": "betonlineag",
      "line": 229.5,
      "over_odds": -114,
      "under_odds": -114,
      "captured_at": "2025-09-07 21:53:37+00",
      "source": "the_odds_api"
    },
    "...5 more"
  ],
  "count": 7
}

What to do next

  • get_player_stats (5 credits). The yards the player actually threw for, to grade the line.
  • get_alt_lines (10 credits). Alternate spreads and totals for the same game.

More guides

Start with 500 free credits

No card. REST or MCP.